Module 2 Ch2
Module 2 Ch2
Operation
Raj Jain
Washington University in Saint Louis
Saint Louis, MO 63130
[email protected]
Audio/Video recordings of this lecture are available at:
http://www.cse.wustl.edu/~jain/cse571-17/
Washington University in St. Louis http://www.cse.wustl.edu/~jain/cse571-17/ ©2017 Raj Jain
6-1
Overview
1. Double DES, Triple DES, DES-X
2. Encryption Modes for long messages:
1. Electronic Code Book (ECB)
2. Cipher Block Chaining (CBC)
3. Cipher Feedback (CFB)
4. Output Feedback (OFB)
5. Counter (CTR) Mode
6. XTS-AES Mode for Block-oriented Storage Devices
These slides are based partly on Lawrie Brown’s slides supplied with William Stallings's
book “Cryptography and Network Security: Principles and Practice,” 7th Ed, 2017.
Washington University in St. Louis http://www.cse.wustl.edu/~jain/cse571-17/ ©2017 Raj Jain
6-2
Double-DES
C = EK2(EK1(P))
Meet-in-the-middle attack
Developed by Diffie and Hellman in 1977
Can be used to attack any composition of
Ek1(P) Dk2(C)
2 functions
X = EK1(P) = DK2(C)
Attack by encrypting P with all 256 keys
and storing
Then decrypt C with keys and match X
value
Verify with one more pair
Takes max of O(256) steps ⇒ Total 257
operations
Only twice as secure as single DES
Washington University in St. Louis http://www.cse.wustl.edu/~jain/cse571-17/ ©2017 Raj Jain
6-3
Triple-DES
Use DES 3 times: C = EK3(DK2(EK1(P)))
E-D-E provides the same level of security as E-E-E
E-D-E sequence is used for compatibility with legacy
K1=K2=K3 ⇒ DES
Ref: http://en.wikipedia.org/wiki/Block_cipher_modes_of_operation
Washington University in St. Louis http://www.cse.wustl.edu/~jain/cse571-17/ ©2017 Raj Jain
6-5
ECB Limitations
Using the same key on multiple blocks makes it easier to break
Identical Plaintext Identical Ciphertext
Does not change pattern:
Efficiency
Can do parallel encryptions in h/w or s/w
CBC
(e) XTS-AES
Raj Jain
http://rajjain.com