AES Encryption Modes
Five modes in the AES encryption algorithm
1. ECB : Electronic Code Book mode
2. CBC : Cipher Block Chaining mode
3. CFB : Cipher FeedBack mode
4. OFB : Output FeedBack mode
5. CTR : Counter mode
Electronic Codebook (ECB) Mode
Encryption:
Decryption:
AES Encryption Modes
Cipher Block Chaining (CBC) Mode
Encryption:
Decryption:
AES Encryption Modes
Cipher Feedback (CFB) Mode
Encryption:
Decryption:
AES Encryption Modes
Output Feedback (OFB) Mode
Encryption:
Decryption:
AES Encryption Modes
Counter (CTR) Mode
Encryption:
Decryption:
AES Encryption Modes
AES Block Cipher Modes of Operation
Mode Description Typical Application
Electronic Each block of 64 plain-text bits is Secure transmission
Codebook (ECB) encoded independently using of single values
the same key. (e.g., an
encryption key)
Cipher Block The input to the encryption General-purpose
Chaining (CBC) algorithm is the XOR of the next 64 block. oriented
bits of plain-text and the transmission
preceding 64 bits of cipher-text. Authentication
Cipher Feedback Input is processed s bits at a time. General-purpose
(CFB) Preceding cipher-text is used as stream, oriented
input to the encryption algorithm transmission.
to produce pseudo-random Authentication
output, which is XORed with plain-
text to produce next unit of
cipher-text.
Output Feedback Similar to CTB, except that the Stream-oriented
(OFB) input to the encryption algorithm transmission over noisy
is the preceding encryption channel (e.g., satellite
output, and full blocks are used. communication)
Counter (CTR) Each block of plain-text is XORed General-purpose
with an encrypted counter. The block. oriented
counter is incremented for each transmission
subsequent block. Useful for high-
speed
requirements.
AES Encryption Modes
AES Encryption Modes
XTS-AES Mode For Block-Oriented Storage Devices
AES Encryption Modes
Reference: Online books