The Advanced Encryption Standard (AES), occasionally still referred to by its original name, Rijndael (Dutch pronunciation: [ˈrɛindaːl], RAIN-dahl), is a specification for the encryption of electronic data established by the US National Institute of Standards and Technology (NIST). The most recent incarnation of the Advanced Encryption Standard was adopted in 2001. AES is a variant of the Rijndael block cipher developed by two Belgian cryptographers, Joan Daemen and Vincent Rijmen, who submitted a proposal to NIST during the AES selection process. Rijndael is a family of ciphers with different key and block sizes. For AES, NIST selected three members of the Rijndael block cipher family, each with a block size of 128 bits, though having three different key lengths: 128 bits, 192 bits, and 256 bits. AES has been adopted by the US government. AES superseded the Data Encryption Standard (DES), which had been published in 1977. The algorithm described by AES is a symmetric-key algorithm, meaning the same key is used for both encrypting and decrypting the data. In the United States, AES was announced by the NIST as the US FIPS PUB 197 (FIPS 197) standard on November 26, 2001. This announcement followed a five-year standardization process in which fifteen potential designs were presented and evaluated, before the Rijndael cipher was selected as the most suitable. AES is included in the ISO/IEC 18033-3 standard. AES became effective as a US federal government standard on May 26, 2002, after approval by US secretary of commerce Donald Evans. AES is available in many different encryption packages, and is the first (and only) publicly accessible cipher approved by the US National Security Agency (NSA) for top secret information when used in an NSA approved cryptographic module.
Definitive standards The Advanced Encryption Standard (AES) is defined in these standards:
FIPS PUB 197: Advanced Encryption Standard (AES) ISO/IEC 18033-3: Block ciphers
Description of the ciphers AES is based on a design principle known as a substitution–permutation network, and is efficient in both software and hardware. Unlike its predecessor DES, AES does not use a Feistel network. AES is a variant of Rijndael, with a fixed block size of 128 bits, and a key size of 128, 192, or 256 bits. By contrast, Rijndael per se is specified with block and key sizes that may be any multiple of 32 bits, with a minimum of 128 and a maximum of 256 bits. Most AES calculations are done in a particular finite field. AES operates on a 4 × 4 column-major order array of 16 bytes b0, b1, ..., b15 termed the state: [b0b4b8b12b1b5b9b13b2b6b10b14b3b7b11b15] The key size used for an AES cipher specifies the number of transformation rounds that convert the input, called the plaintext, into the final output, called the ciphertext. The number of rounds are as follows:
10 rounds for 128-bit keys; 12 rounds for 192-bit keys; 14 rounds for 256-bit keys. Each round consists of several processing steps, including one that depends on the encryption key itself. A set of reverse rounds are applied to transform ciphertext back into the original plaintext using the same encryption key.
High-level description of the algorithm KeyExpansion – round keys are derived from the cipher key using the AES key schedule. AES requires a separate 128-bit round key block for each round, plus one more. Initial round key addition: AddRoundKey – each byte of the state is combined with a byte of the round key using the bitwise exclusive or. 9, 11 or 13 rounds: SubBytes – a non-linear substitution step where each byte is replaced with another according to a lookup table. ShiftRows – a transposition step where the last three rows of the state are shifted cyclically a certain number of steps. MixColumns – a linear mixing operation which operates on the columns of the state, combining the four bytes in each column. AddRoundKey Final round (making 10, 12 or 14 rounds in total): SubBytes ShiftRows AddRoundKey
The SubBytes step
In the SubBytes step, each byte ai,j in the state array is replaced with a SubByte S(ai,j) using an 8-bit substitution box. Before round 0, the state array is simply the plaintext/input. This operation provides the non-linearity in the cipher. The S-box used is derived from the multiplicative inverse over GF(28), known to have good non-linearity properties. To avoid attacks based on simple algebraic properties, the S-box is constructed by combining the inverse function with an invertible affine transformation. The S-box is also chosen to avoid any fixed points (and so is a derangement), i.e., S(ai,j) ≠ ai,j, and also any opposite fixed points, i.e., S(ai,j) ⊕ ai,j ≠ FF16. While performing the decryption, the InvSubBytes step (the inverse of SubBytes) is used, which requires first taking the inverse of the affine transformation and then finding the multiplicative inverse.
The ShiftRows step
The ShiftRows step operates on the rows of the state; it cyclically shifts the bytes in each row by a certain offset. For AES, the first row is left unchanged. Each byte of the second row is shifted one to the left. Similarly, the third and fourth rows are shifted by offsets of two and three respectively. In this way, each column of the output state of the ShiftRows step is composed of bytes from each column of the input state. The importance of this step is to avoid the columns being encrypted independently, in which case AES would degenerate into four independent block ciphers.
The MixColumns step
… excerpt ends here. Continue reading the full article.





