Crypto Engineering Ch4BlockCipherModes-1
Crypto Engineering Ch4BlockCipherModes-1
Computer Science
Assistant Professor, Cyber Security
Phone: 509-542-4697
Email: [email protected]
Office hours: 12:30-1:30pm M-Th
CSIA 410-Cryptography
• Principal Disadvantage: the cipher text is one block longer than the plaintext.
• Short messages, results in a significant message expansion, which is
always undesirable.
Chapter 4:
Block Cipher Modes
• CBC (Cipher Block Chaining)
– Nonce-Generated IV
• The term nonce is most often used to refer to a “random”
number in a challenge-response protocol, but the required
randomness properties vary.
– Disadvantages
• If use Stream Cipher and use same IV for two different
messages, they will be encrypted with the same key stream
– Allows attacker to compute difference b/w two plaintexts
• Unlucky and repeat a key block value, repeating seq blocks
– IV may be the same as a key block halfway through the 2d message
– Collision attack (but 264 blocks of data before you expect this)
Chapter 4:
Block Cipher Modes
• CTR (Counter)
– Makes block ciphers' way of working similar to stream ciphers' way of
working.
– As in the OFB mode, keystream bits are created regardless of content
of encrypted data blocks.
– In this mode, subsequent values of an increasing counter are added to
a nonce value and the results are encrypted as usual. The nonce plays
the same role as initialization vectors in the previous modes.
• Encryption in CTR mode
• Decryption in CTR mode
• It is one of the most popular block ciphers modes of operation. Both
encryption and decryption can be performed using many threads at the
same time.
• If one bit of a plaintext or ciphertext message is damaged, only one
corresponding output bit is damaged as well. Thus, it is possible to use
Chapter 4:
Block Cipher Modes
• CTR (Counter)
– Encryption in CTR mode
Chapter 4:
Block Cipher Modes
• CTR (Counter)
– Decryption in CTR mode