Serpent-192
The conservative AES finalist with 32 rounds of bit-sliced 4-bit S-boxes
About Serpent-192
Serpent-192 is one of 3 Serpent variants in the NextSSL registry, a block cipher. It uses a 24-byte (192-bit) key and a 16-byte (128-bit) block. Its registry entry cites AES finalist (Serpent) and NESSIE. NextSSL lists it in the standard tier and exposes it through the safe API.
Overview
Serpent is a 128-bit block cipher designed by Ross Anderson, Eli Biham and Lars Knudsen. It finished second in the AES competition and is widely regarded as having the largest security margin of the finalists, at the cost of speed.
Serpent is a 32-round substitution–permutation network. Each round XORs a round key, applies one of eight 4-bit S-boxes 32 times in parallel, and then a linear transformation of shifts, rotations and XORs on the four 32-bit words. The S-boxes are designed to be computed in bit-sliced form with logical operations, which makes constant-time software implementation natural.
NextSSL includes Serpent with 128-, 192- and 256-bit keys. Serpent is offered in disk-encryption tools such as VeraCrypt and in the Linux kernel. Serpent's designers chose 32 rounds, roughly twice what they estimated was needed, to stay secure against future advances in cryptanalysis. That conservatism is the reason for its slower speed, and it is often cited when comparing it with the leaner Rijndael.
History
1997–2003NIST calls for a successor to DES
AES selection processSerpent published by Ross Anderson, Eli Biham, Lars Knudsen
15 candidates accepted
AES selection processFive finalists: MARS, RC6, Rijndael, Serpent and Twofish
AES selection processRijndael selected
AES selection processEuropean NESSIE project opens its call for primitives
NESSIE projectAES published as FIPS 197
AES selection processNESSIE portfolio published
NESSIE project
Security notes
No attack on more than about 12 of its 32 rounds is known, giving Serpent a very large margin. It is slower than AES, especially where AES hardware support exists.
Typical uses
Sizes
| Field | Bytes | Meaning |
|---|---|---|
| key | 24 | Secret key |
| block | 16 | Block |
Use it
from nextssl_demo import NextSSL
ns = NextSSL() # safe API: safe and standard tiers
block = ns.call("blockcipher_encrypt", "serpent-192", None, key, plaintext_block)[0]
nextssl_blockcipher_encrypt("serpent-192", 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::Safe, "serpent-192", &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.
Other Serpent variants
2Similar names
Looking for something else?More block ciphers
All 84Frequently asked questions
What is Serpent-192?
Serpent-192 is a block cipher in the Serpent family. Serpent is a 128-bit block cipher designed by Ross Anderson, Eli Biham and Lars Knudsen.
What are the Serpent-192 sizes?
In NextSSL, Serpent-192 uses: key 24 bytes, block 16 bytes.
Who designed Serpent-192 and when?
Serpent-192 belongs to the Serpent family, first published in 1998 by Ross Anderson, Eli Biham, Lars Knudsen. Its origin: AES finalist; NESSIE.
Which standards define Serpent-192?
Serpent-192 is referenced by AES finalist (Serpent), NESSIE.
Is Serpent-192 safe to use?
Serpent-192 is in the standard tier. Standardised and sound. Reachable from the safe API. It can be called from the safe API.
What other Serpent variants are there?
NextSSL also registers serpent-128, serpent-256 in the Serpent family.