Des
Des
Des
generated as
• C = E(K2, E(K1, P))
• Decryption requires that the keys be applied in reverse order:
• P = D(K1, D(K2, C))
Double Encryption
Double Encryption (Contd.)
• Consider, E(K2, E(K1, P)) = E(K3, P)
• 264 possible inputs = (264)! = 10347380000000000000000 > ()
• But, DES defines one mapping for each different key, for a total
number of mappings:
256 < 1017
• Meet-in-the middle attack
• The use of double DES results in a mapping that is not equivalent to a single
DES encryption.
• C = E(K2, E(K1, P)) , So X = E(K1, P) = D(K2, C)
Triple DES with Two keys
• 3DES or TDEA (Triple Data Encryption Algorithm)
• Two Keys and Three Keys versions
Triple Encryption
Triple DES
• C = E(K1, D(K2, E(K1, P))) P = D(K1, E(K2, D(K1, C))) – Two Keys
• C = E(K3, D(K2, E(K1, P))) – Three Keys