AES: the algorithm that encrypts almost everything you use every day
How AES, the symmetric encryption standard born of the NIST competition, works: blocks, keys, rounds, modes of operation, an official example, known attacks and mistakes to avoid.
Every time you open a site over HTTPS, connect to your home Wi-Fi, unlock a laptop with an encrypted disk or send a message with a secure app, you are very probably using AES, the Advanced Encryption Standard. It is the most widely used symmetric encryption algorithm in the world: the same key is used to encrypt and decrypt.
AES was born of an international public competition, won in 2000 by the Rijndael algorithm of the Belgian cryptographers Joan Daemen and Vincent Rijmen. Since then it has been analysed by thousands of researchers without anyone finding a practical attack on the algorithm itself.
Its characteristics
- Block cipher
- It works on 16-byte blocks at a time; for longer messages a mode of operation is used.
- Symmetric
- Sender and recipient share the same key, which must be exchanged securely, for example with RSA or Diffie-Hellman.
- Fast
- Designed to be efficient in both software and hardware; modern processors have dedicated instructions.
- Open
- The algorithm is public and patent-free, in line with Kerckhoffs’s principle.
AES replaced DES, which had become vulnerable to brute force by the late 1990s. For the fundamentals see symmetric encryption.
The pages of this topic
AES: how it works
The 16-byte state, the four steps of each round — SubBytes, ShiftRows, MixColumns, AddRoundKey — and the role of modes of operation.
AES: history
From the decline of DES to the NIST competition, from Rijndael’s victory to the publication of the FIPS 197 standard.
AES: the maths
The finite field with 256 elements, the construction of the S-box and the MixColumns calculation: the mathematics that makes AES robust.
AES: worked example
The official FIPS 197 test vector for AES-128 and how to use it to check an implementation.
AES: weaknesses and attacks
Theoretical attacks, side channels, misuse of modes and quantum computers: what really threatens AES.
AES today
Where AES is used every day — web, Wi-Fi, disks, messages, archives — and why it is considered adequate for the future too.
AES: pitfalls to avoid
The most common mistakes made by those who use AES in their own programs: wrong modes, weak keys, repeated vectors, lack of authentication.
AES: frequently asked questions
Short answers to the most common doubts about AES, key length, security and quantum computers.