Block cipher family

AES

The Advanced Encryption Standard: the world's default 128-bit block cipher

standard 3 variants AES competition winner (FIPS 197)

Overview

AES is the block cipher standardised by NIST in FIPS 197 in 2001 after an open five-year competition. Originally named Rijndael, it is used in virtually every secure protocol and storage system, and most modern CPUs include dedicated instructions for it.

AES is a substitution–permutation network operating on a 128-bit block arranged as a 4x4 matrix of bytes. Each round applies SubBytes (an 8-bit S-box based on inversion in GF(2^8)), ShiftRows, MixColumns (an MDS matrix over GF(2^8)) and AddRoundKey. The final round omits MixColumns. The design follows the wide-trail strategy, which gives provable lower bounds on the number of active S-boxes in differential and linear trails.

NextSSL includes AES-128, AES-192 and AES-256, which use 10, 12 and 14 rounds respectively. The block size is always 128 bits; only the key length and key schedule differ. AES on its own encrypts one block, and must be used through a mode such as GCM, CTR, CBC, XTS or KW.

Rijndael was designed by Joan Daemen and Vincent Rijmen and chosen from fifteen candidates in October 2000. AES-256 is approved by the NSA for classified information and is considered adequate against quantum attacks, which at most halve the effective key length. Hardware instructions such as AES-NI and ARMv8 Crypto make it both fast and resistant to timing attacks.

History

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

    AES selection process
  2. Rijndael submitted to the AES process by Joan Daemen and Vincent Rijmen

  3. Five finalists: MARS, RC6, Rijndael, Serpent and Twofish

    AES selection process
  4. Rijndael selected as AES

  5. Published as FIPS 197

  6. AES-NI instructions ship in Intel processors

  7. FIPS 197 updated

How it works

  1. Expand the key into 11, 13 or 15 round keys
  2. XOR the first round key into the state
  3. Apply SubBytes, ShiftRows, MixColumns and AddRoundKey for each round
  4. Omit MixColumns in the final round

Security notes

No practical attacks on full AES are known. The best key-recovery attacks are biclique attacks only marginally faster than brute force. Related-key attacks on AES-256 do not affect normal use. Real-world failures come from implementation side channels, such as table-based cache timing, and from misuse of modes, such as ECB or nonce reuse in GCM.

Typical uses

Authenticated encryption with GCM or CCMDisk encryption with XTSKey wrappingBuilding MACs (CMAC, GMAC)

Variants in NextSSL

3
AlgorithmTierSizes (bytes)StandardsAPI
AES-128
aes-128
standard FIPS key 16 · block 16 FIPS 197 safe
AES-192
aes-192
standard FIPS key 24 · block 16 FIPS 197 safe
AES-256
aes-256
standard FIPS key 32 · block 16 FIPS 197 safe

Frequently asked questions

Which AES variants does NextSSL include?

NextSSL registers 3 AES variants: aes-128, aes-192, aes-256.