Week 5 - Lecture 1
Week 5 - Lecture 1
Week-5 Lecture-1
Data Encryption Standard
Secret key
A string of 64 bits long including 8 parity bits.
1 parity bit in each 8-bit byte of the key may be utilized
for error detection in key generation, distribution, and
storage
•
Permuted Choice 2 (PC2)
• PC2 is determined by the table below:
• Consider the following input X
The Keys for 16 Rounds
DES Encryption
Initial Permutation (IP)
IP is determined as the following table
It occurs before round one
Bits in the plaintext are moved as following,
e.g. bit 58 to bit 1, bit 50 to bit 2 and bit 42 to
bit 3, etc
Initial Permutation (IP): Example
• M=[00000001001000110100010101100111100010011010101111
00110111101111]=[0123456789ABCDEF]HEX
• IP(M)=[1100110000000000110011001111111111110000101010
101111000010101010]=[CC00CCFFF0AAF0AA]HEX
Thus
• L0=11001100000000001100110011111111=[CC00CCFF]HEX
• R0=11110000101010101111000010101010=[F0AAF0AA]HEX
■ C=E k2 (E k1 (P))
■ P=D k1 (D k2 (C))
• Key Space = ?
• 256x256=2112
Triple DES with two keys