ArticleslgStudy

computer science

Advanced Encryption Standard

Advanced Encryption Standard is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Advanced Encryption Standard rather than just read about it. In short: 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.

Advanced Encryption Standard — main illustration
Advanced Encryption Standard — illustration

Key takeaways

  • Advanced Encryption Standard belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Advanced Encryption Standard to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Advanced Encryption Standard from memory before moving on to harder problems.

Reference excerpt

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.

Illustrations

Advanced Encryption Standard illustration
Advanced Encryption Standard: In the  SubBytes step, each byte in the state is replaced with its entry in a fixed 8-bit lookup table, S; bij = S(aij).
In the SubBytes step, each byte in the state is replaced with its entry in a fixed 8-bit lookup table, S; bij = S(aij).
Advanced Encryption Standard: In the  ShiftRows step, bytes in each row of the state are shifted cyclically to the left. The number of places each byte is shifted differs incrementally for each row.
In the ShiftRows step, bytes in each row of the state are shifted cyclically to the left. The number of places each byte is shifted differs incrementally for each row.
Advanced Encryption Standard: In the  MixColumns step, each column of the state is multiplied with a fixed polynomial c(x).
In the MixColumns step, each column of the state is multiplied with a fixed polynomial c(x).
Advanced Encryption Standard: In the  AddRoundKey step, each byte of the state is combined with a byte of the round subkey using the XOR operation (⊕).
In the AddRoundKey step, each byte of the state is combined with a byte of the round subkey using the XOR operation (⊕).

Worked examples

Example 1 — a first encounter with Advanced Encryption Standard

Start with the simplest possible case. Write down what Advanced Encryption Standard claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Advanced Encryption Standard before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Advanced Encryption Standard ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Advanced Encryption Standard

In research
Advanced Encryption Standard appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Advanced Encryption Standard in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Advanced Encryption Standard is common in secondary-school and first-year university syllabi. It links to neighbouring topics Advanced Encryption Standard, Belgian inventions, Block ciphers, so understanding it makes those chapters shorter.
In everyday life
Look for Advanced Encryption Standard outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Advanced Encryption Standard” →

How to study Advanced Encryption Standard in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Advanced Encryption Standard means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Advanced Encryption Standard out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Advanced Encryption Standard in simple terms?

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…

Why does Advanced Encryption Standard matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Advanced Encryption Standard?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Advanced Encryption Standard.

Tags

  • Advanced Encryption Standard
  • Belgian inventions
  • Block ciphers
  • Cryptography
  • Public-domain software with source code

Keep exploring