You are on page 1of 7

Cipher Block Chaining (CBC)[

Summary of modes

Mode Formulas Ciphertext

Electronic Codebook
Yi=F(PlainTexti,Key) Yi
(ECB)

Cipher Block Chaining


Yi=PlainTexti XOR Ciphertexti-1 F(Y,key); Ciphertext0=IV
(CBC)

Propagating CBC Yi=PlainTexti XOR (Ciphertexti-1 XOR


F(Y,key);Ciphertext0=IV
(PCBC) PlainTexti-1)
Cipher Feedback Plaintext XOR
Yi=Ciphertexti-1
(CFB) F(Y,key);Ciphertext0=IV

Output Feedback
Yi=F(Key,Yi-1);Y0=IV Plaintext XOR Yi
(OFB)

Plaintext XOR Yi
Counter (CTR) Yi=F(Key,IV + g(i) );IV=token();

Note: g(i) is any deterministic function, often the identity function.

You might also like