Mars
IBM's 128-bit block AES finalist, with a variable-length key and the 1999 key-setup tweak
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–2001NIST calls for a successor to DES
AES selection processMARS published by IBM team including Don Coppersmith
15 candidates accepted
AES selection processFive finalists: MARS, RC6, Rijndael, Serpent and Twofish
AES selection processRijndael selected
AES selection processAES published as FIPS 197
AES selection process
How it works
- The key is expanded into a schedule of 32-bit subkeys, including the tweak's changes to the key setup.
- Forward mixing, a keyed core and backward mixing process the 128-bit block over fixed rounds.
- 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
Sizes
| Field | Bytes | Meaning |
|---|---|---|
| key | 16 – 56 | Secret key |
| block | 16 | Block |
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]
nextssl_root_blockcipher_encrypt("mars", NULL, key, block, out); /* exactly one block */
use nextssl_core::Params;
use nextssl_registry::{self as reg, Policy};
let alg = reg::new_blockcipher_in(reg::all(), Policy::Any, "mars", &Params::new())?;
let out = alg.encrypt_block(&key, &block)?;
Calls follow the NextSSL C ABI and its language bindings. Buffer sizes are validated against the sizes above.
Similar names
Looking for something else?More block ciphers
All 84Frequently 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).
Related families
The Advanced Encryption Standard: the world's default 128-bit block cipher
CAST-128 and CAST-256Carlisle Adams and Stafford Tavares's Feistel ciphers, once default in PGP
SerpentThe conservative AES finalist with 32 rounds of bit-sliced 4-bit S-boxes
SquareDaemen, Knudsen and Rijmen's 1997 128-bit substitution-permutation cipher, a precursor to Rijndael
TwofishSchneier and colleagues' AES finalist with key-dependent S-boxes