Algorithms · Overview

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.

128bits: the size of each block encrypted by AES
3key lengths: 128, 192 or 256 bits
10/12/14transformation rounds, depending on the key length

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.

↑