0
3.9kviews
Block Cipher Mode of Operation: Cipher Block Chaining Mode(CBC Mode)
1 Answer
written 6.1 years ago by |
2. Cipher block Chaining Mode (CBC Mode):
This mode provides message dependency for generating ciphertext & makes the system non-deterministic.
The plaintext block is XORed with the previous ciphertext block before being encrypted.
Encryption:
$C_{0} = IV$
$C_{i} = E_{k}(P_i ⊕ C_{i-1})$
Decryption:
$C_{0} = IV$
$P_{i} = D_{k}(C_i ) ⊕ (C_{i-1})$
Operations:
Analysis of CBC mode:
Advantage over ECB:
Disadvantage
Applications
e.g Plaintext$\phantom{sds}$GOOD$\phantom{sds}$MORNING GOOD
$\phantom{jhgjhghjhgsds}$ $\downarrow$ $\phantom{sds}$ $\phantom{asfasd}\downarrow$
$\phantom{sd}$Ciphertext$\phantom{sds}$\$/@$\phantom{sds}$123@/# xz@\$