AES (Rijndael)

Research
Introduced by
Joan Daemen
Year
2001
Type
symmetric encryption algorithm
Family
Symmetric block cipher

What does it do?

The Advanced Encryption Standard (AES), also known as Rijndael, is a symmetric block cipher published as the U.S. government encryption standard in FIPS 197 in 2001.

It processes data in 128-bit blocks using 128-, 192-, or 256-bit keys, applying several rounds of substitution, permutation, and mixing. AES is one of the most widely deployed symmetric ciphers, used in protocols, storage systems, and applications that encrypt bulk data.

The intuition behind the method

AES repeatedly applies four transformations to a 128-bit block of data, with each round driven by a round key derived from the secret key. The design aims at two properties identified in the cipher's design: confusion, which obscures the relationship between plaintext, ciphertext, and key through substitution boxes (S-boxes), and diffusion, which spreads the influence of each input bit across the block through row shifting and column mixing. Adding rounds makes the transformation harder to analyse, but the cipher's security rests on the key, not on the secrecy of the algorithm.

History

Rijndael was designed by Joan Daemen and Vincent Rijmen and was selected in 2000 as the winner of the NIST AES competition. It was published as FIPS 197 in 2001. The design was intended to balance security with efficiency across platforms from embedded systems to servers. Since its standardization, no practical attack on the full-round cipher has been published, although attacks on reduced-round variants are documented.

When to use it

Choose AES for symmetric encryption of bulk data, such as files, database fields, disk volumes, and traffic in protocols like TLS, where both parties share a secret key. It is typically preferred over public-key encryption for encrypting large amounts of data. AES-256 is often chosen when a longer security margin is wanted, for example for data that must stay confidential for many years, while AES-128 is generally regarded as adequate for most applications. Do not use AES alone as a block-level primitive: it must be used with a mode of operation that provides authentication, such as GCM or CCM. Do not use AES directly to store passwords or to derive keys from them; a dedicated key derivation function is needed for that purpose.

Limitations and considerations

  • A block cipher requires a mode of operation (CBC, CTR, GCM, etc.) to encrypt data longer than 128 bits; naive ECB mode is insecure
  • Requires careful handling of initialization vectors and nonces in authenticated encryption modes
  • No built-in authentication; must be combined with HMAC or used in authenticated modes (GCM) for secure communication

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Standardized by NIST and widely adopted as the symmetric encryption standard in government and commercial systems
  • Efficient in both software and hardware implementations, including constrained embedded devices and high-throughput servers
  • No practical mathematical attack on the full-round cipher is publicly known; real-world security also depends on correct implementation (for example, resistance to side-channel leakage) and on correct use of key, mode, and nonce
  • Three key sizes (128, 192, and 256 bits) allow the security level to be matched to the application

Applications

  • Encryption of internet traffic in TLS, the protocol underlying HTTPS
  • Transparent database encryption in enterprise data systems
  • Full-disk encryption in operating systems such as BitLocker, FileVault, and LUKS
  • Government and regulated-sector systems that require standardized, validated cryptographic implementations
  • Encrypted messaging and VPN applications that protect data in transit
  • Encryption of stored key material in some cryptocurrency wallet implementations

How it works

How it works

1

The secret key is expanded into a schedule of round keys, one for the initial key addition and one for each round. The expansion combines byte substitution, byte rotation, and XOR with round constants.

2

Each byte of the 128-bit state is XORed with the corresponding byte of the current round key. This is the only step where the secret key directly enters the state.

3

Each byte of the state is replaced by its value in the AES S-box, a fixed non-linear lookup table. This non-linear step is the main source of confusion in each round.

4

The rows of the state are cyclically shifted left by different offsets, so that bytes from each column are moved across the block. This spreads the influence of each byte over more columns.

5

Each column of the state is multiplied by a fixed matrix over the finite field GF(2^8). This mixes the four bytes of each column, so that a change in one byte affects all four bytes of that column.

Common pitfalls

  • Using ECB mode exposes patterns in plaintext; always use authenticated encryption modes like GCM or CCM
  • Weak key derivation from passwords compromises security; use key derivation functions like PBKDF2 or Argon2
  • Reusing the same nonce in CTR or GCM mode with the same key completely breaks security
  • Table-based software implementations can leak key material through cache-timing side channels, a documented attack class for AES (Bernstein, 2004); prefer constant-time implementations or hardware AES instructions, and do not treat the absence of breaks of the mathematical core as protection against implementation attacks

Frequently asked questions

What is the difference between AES-128, AES-192, and AES-256?

The numbers indicate key size in bits. AES-128 uses a 128-bit key, AES-192 uses 192-bit, and AES-256 uses 256-bit. All three offer strong security; AES-256 is preferred for highly sensitive data requiring long-term confidentiality against future attacks.

Is AES breakable?

No practical break of the full-round cipher has been published. Attacks on reduced-round variants are documented in the literature, but they do not by themselves break the full cipher. Side-channel attacks on poor implementations are a separate and practical concern, which is why implementation quality matters as much as the choice of algorithm.

Why can't I just use AES ECB mode?

ECB (Electronic Codebook) encrypts identical plaintext blocks to identical ciphertext blocks, revealing patterns. An image encrypted with ECB often remains partially recognizable. Always use authenticated modes like GCM, CCM, or EAX.

What is the difference between AES and Rijndael?

Rijndael is the original algorithm. AES is Rijndael with specific parameters: 128-bit block size and key sizes of 128, 192, or 256 bits. The original Rijndael supports variable block and key sizes.

Will AES be broken by quantum computers?

Quantum computers pose a much weaker threat to AES than to public-key cryptography. Grover's algorithm could theoretically halve effective key length, so using AES-256 provides safety margin against quantum adversaries.

Related methods

Sources

  1. Daemen, J., & Rijmen, V. (2002). The Design of Rijndael: AES - The Advanced Encryption Standard. Springer-Verlag.

    ISBN: 978-3540425809
  2. National Institute of Standards and Technology (NIST). (2001). FIPS 197: Specification for the Advanced Encryption Standard (AES). U.S. Department of Commerce.

    Open publication reference
  3. 04_2cee946ec472fa1d7ca0291c09d01db37eedf39f, p. 13