Home / Wiki / A / AES-CBC (Cipher Block Chaining)

AES-CBC (Cipher Block Chaining)

Technology and VendorsUpdated 16 Nov 2026

AES-CBC is the Advanced Encryption Standard (AES) used in cipher block chaining mode, a way of applying the cipher to data longer than one 16-byte block. AES is a symmetric-key algorithm published by the US National Institute of Standards and Technology (NIST) in 2001, and CBC is one of the modes NIST described the same year. Each block is combined by exclusive-or (XOR) with the previous ciphertext block before encryption, so each output block depends on all earlier data. The first block is combined with a random initialization vector, and the last block is padded to full length, usually with the PKCS#7 scheme.

Chaining hides the repeated patterns that leak under AES-ECB, and CBC has long been used for payment data encryption. It provides confidentiality only, not integrity: a system that reveals whether decrypted padding is valid can fall to a padding oracle attack. Newer designs prefer authenticated modes such as AES-GCM, or add a message authentication code.

Last updated 16 Nov 2026