Serpent
The conservative AES finalist with 32 rounds of bit-sliced 4-bit S-boxes
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
Variants in NextSSL
3| Algorithm | Tier | Sizes (bytes) | Standards | API |
|---|---|---|---|---|
| Serpent-128 serpent-128 |
standard | key 16 · block 16 | AES finalist (Serpent), NESSIE | safe |
| Serpent-192 serpent-192 |
standard | key 24 · block 16 | AES finalist (Serpent), NESSIE | safe |
| Serpent-256 serpent-256 |
standard | key 32 · block 16 | AES finalist (Serpent), NESSIE | safe |
Frequently asked questions
Which Serpent variants does NextSSL include?
NextSSL registers 3 Serpent variants: serpent-128, serpent-192, serpent-256.