Block Cipher Modes
Block Cipher Modes
(CS-452)
A pixel-map version of the image on the left was encrypted with ECB mode
and with other modes.
Encrypted using
ECB mode
A pixel-map version of the image on the left was encrypted with ECB mode and
with other modes.
The input to the encryption algorithm is the XOR () of the current plaintext
block and the preceding ciphertext block.
Each ciphertext block is dependent on all plaintext blocks processed up to
that point.
Cj = E(K,[Cj-1 Pj]), C0 = IV
Proof:
AA=0
0A=A
Pj = Cj-1 D(K,Cj)
= Cj-1 D(K, E(K,[Cj-1 Pj]))
= Cj-1 Cj-1 Pj
= 0 Pj
= Pj
At end of message must handle a possible last block, which is not as large as
block size of cipher
+N-1
Proof:
AA=0
0A=A
Pj = E(K, Counter + j -1) Cj
= E(K, Counter + j -1) E(K, Counter + j -1) Pj
= 0 Pj
= Pj
Many slides borrowed from Dr. Ping Yang from State University of New York
at Binghamton.