Chapter 4ii: Modes of Encryption Flashcards
Electronic Code Book Mode: ECB.
Explain the drawbacks.
- Ciphertext blocks do not have any connection with each other
- For this reason, an attacker can …
- … reorder blocks
- … repeat blocks
- … delete blocks
- Ciphertext can even be decrypted; possibly to reasonable plaintext
- Once more: Encryption does not protect integrity!
Identical plaintext blocks are encrypted to non-identical cipher text, being a huge benefit.
Decryption of a block depends on the previous block’s ciphertext.
reordering, repeating or deleting blocks typically makes the decryption yield garbled data.
Cipher Block Chaining Mode – CBC Initialization Vector (IV)
* c0 = IV
* IV must not be kept secret – the security depends on k
* IV must be fresh
* Why must IV be fresh?
…
- Identical plaintext messages are encrypted to non-identical ciphertexts
as plaintext is “masked” with IV or previous ciphertext block → Hugebenefit!
Output Feedback Mode – OFB Decrypt. Explain the Pros
- Decryption does not depend on previous blocks.: transmission error in ci only affects ci.
- Reordering, repeating or deleting of ciphertext blocks impossible due to feedback
Explain the pros and cons of CTR.
Pros and cons:
* Decryption does not depend on previous blocks.: a transmission error in ci only affects ci.
* Reordering, repeating or deleting of ciphertext blocks impossible due to counter
* If n is too small, the key stream repeats itself! → Use new IV for a fresh key stream.