Professional Documents
Culture Documents
Assignment1 17MIT0001
Assignment1 17MIT0001
The meet in the middle attack is one of the types of known plaintext attacks. It is possible to
break a cipher having two or more secret keys for multiple encryption using the same
algorithm.
In Double Des the cipher text is obtained as,
C=Eb(kb,Ea(ka,P))
The plain text is obtained as follows,
M=Da(ka,Eb(kb,C))
Here,
• C is a ciphertext,
• P is a plaintext,
• E is an algorithm for encryption,
• D is an algorithm for decryption,
• ka and kb are two secret keys
2. Check the fourth design criterion for S box 2 using the following pair of
inputs: 001100 and 110000.
001100
First bit and last bit=00= decimal representation= 0(row)
2nd through 5th bit=0110 decimal representation=6(column)
110000
First bit and last bit=10= decimal representation= 2(row)
2nd through 5th bit=1000=decimal representation=8(column)