Chapter 4ii: Modes of Encryption Flashcards

1
Q

Electronic Code Book Mode: ECB.
Explain the drawbacks.

A
  • 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!
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q
A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

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?

A
  • Identical plaintext messages are encrypted to non-identical ciphertexts
    as plaintext is “masked” with IV or previous ciphertext block → Hugebenefit!
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Output Feedback Mode – OFB Decrypt. Explain the Pros

A
  • 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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Explain the pros and cons of CTR.

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly