1
$\begingroup$

When a bit error happens in an IV, what would the result of decrypting a cipher-text be in the different encryption modes like ECB, CBC, CFB, OFB, and CTR?

$\endgroup$
6
$\begingroup$

This seems a strange question to ask. Is it for an assignment or are you trying to select the best mode for a particular application? Regardless:

  1. ECB does not use an IV.

  2. CTR has a nonce value, which could be considered an IV. A bit error there will produce an entirely different key stream for every block.

  3. CBC and CFB will corrupt the first plaintext block, but thereafter it is OK.

  4. In the case of OFB, I believe the entire plaintext will be corrupted because the entire stream of data is determined by the IV (plus the key, of course).

|improve this answer|||||
$\endgroup$
  • 1
    $\begingroup$ CTR does use an IV (the nonce), and a bit error there will produce an entirely different key stream for every block. $\endgroup$ – mfanto Oct 30 '12 at 20:14
  • $\begingroup$ @mfanto I've edited my answer to include that, thanks. $\endgroup$ – Duncan Jones Oct 30 '12 at 20:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy