Block ciphers

Mars

IBM's 128-bit block AES finalist, with a variable-length key and the 1999 key-setup tweak

unverified Root API only
Unverified tier.

Source found and wired, correctness not fully proven. Root API only. Reach it with NextSSL(root=True) in Python or the nextssl_root_* functions in C.

About Mars

Mars is a block cipher. It uses a 16–56-byte key and a 16-byte (128-bit) block. Its registry entry cites MARS (IBM, AES finalist, with the 1999 key-setup tweak), Crypto++ implementation. NextSSL lists it in the unverified tier and exposes it through the root API only (NextSSL(root=True) in Python, nextssl_root_* in C).

Overview

MARS is a 128-bit block cipher designed at IBM and one of the five finalists in the AES competition. It accepts keys from 16 to 56 bytes. NextSSL carries the version that includes the 1999 key-setup tweak, as a Crypto++ implementation, marked unverified.

MARS was submitted to the AES competition by a team at IBM that included Don Coppersmith. It is a 128-bit block cipher with a key that can run from 16 to 56 bytes, and its design mixes keyed multiplication, data-dependent rotations and S-box lookups. It was one of the five AES finalists, with Rijndael selected as AES.

NextSSL carries the variant mars with the 1999 key-setup tweak, following a Crypto++ implementation. The tweak was introduced after the original submission, so the archive's version differs from the 1998 submission in its key schedule.

The unverified tier reflects the archive's review status rather than a finding of weakness. For new work, AES is the standard choice, and MARS is kept for research and comparison with the other finalists.

History

1997–2001
  1. NIST calls for a successor to DES

    AES selection process
  2. MARS published by IBM team including Don Coppersmith

  3. 15 candidates accepted

    AES selection process
  4. Five finalists: MARS, RC6, Rijndael, Serpent and Twofish

    AES selection process
  5. Rijndael selected

    AES selection process
  6. AES published as FIPS 197

    AES selection process

How it works

  1. The key is expanded into a schedule of 32-bit subkeys, including the tweak's changes to the key setup.
  2. Forward mixing, a keyed core and backward mixing process the 128-bit block over fixed rounds.
  3. Decryption runs the inverse operations in reverse order.

Security notes

Unverified in NextSSL. MARS was not selected for AES and has had reduced-round analysis in the literature, so use AES for new designs.

Typical uses

Comparing AES finalistsResearch into keyed-multiplication block cipher designCrypto++ compatibility testing

Sizes

FieldBytesMeaning
key16 – 56Secret key
block16Block

Use it

from nextssl_demo import NextSSL

root = NextSSL(root=True)   # tier 'unverified' is reachable from the root API only
block = root.call("blockcipher_encrypt", "mars", None, key, plaintext_block)[0]

Calls follow the NextSSL C ABI and its language bindings. Buffer sizes are validated against the sizes above.

Similar names

Looking for something else?

Frequently asked questions

What is Mars?

Mars is a block cipher in the MARS family. MARS is a 128-bit block cipher designed at IBM and one of the five finalists in the AES competition.

What are the Mars sizes?

In NextSSL, Mars uses: key 16 to 56 bytes, block 16 bytes.

Who designed Mars and when?

Mars belongs to the MARS family, first published in 1998 by IBM team including Don Coppersmith. Its origin: AES competition finalist (1998 submission, 1999 key-setup tweak).

Which standards define Mars?

Mars is referenced by MARS (IBM, AES finalist, with the 1999 key-setup tweak), Crypto++ implementation.

Is Mars safe to use?

Mars is in the unverified tier. Source found and wired, correctness not fully proven. Root API only. It is only reachable through the root API (NextSSL(root=True) in Python, nextssl_root_* in C).