4

I have been reading about the 3DES algorithm and I cannot understand one part. In 3DES we do following operation: $$C=E[K_3,D[K_2,E[K_1,P]]].$$ Where $C$ is ciphertext, $P$ is plaintext, $E$ is DES encryption and $D$ is DES decryption.

In the second part we have the decryption with $K_2$. How can we decrypt a cipher with one key ($K_2$) which was encrypted with another one ($K_1$)?

Paŭlo Ebermann
  • 22,946
  • 7
  • 82
  • 119
Erfan
  • 141
  • 1
  • 3

2 Answers2

6

I do not understand how can we decrypt a cypher which was encrypted with $K_1$, with $K_2$.

Triple DES essentially involves three encryptions on the plain text. First is using $K_1$, second using $K_2$, and third using $K_3$. Now one may argue that $K_2$ is not being used for encryption but decryption. Well, technically speaking, encryption and decryption are just the same, and are only the reverse of each other in all ciphers using the feistel cipher structure. So actually decryption with $K_2$ does nothing but jumble-up the message further more. We are not decrypting the cipher in the real sense. We are adding another layer of obscurity with a second key.

Paŭlo Ebermann
  • 22,946
  • 7
  • 82
  • 119
pnp
  • 176
  • 4
0

DES a block cipher (Encryption) can be thought of as a pseudo random permutation(PRP), and as property of pseudo random permutation (PRP), its inverse(Decryption) is also(PRP).

It's like doing decryption will as much secure as doing encryption. Because of PRP property both are equally secure otherwise it would not have been a PRP.

Mike Edward Moras
  • 18,161
  • 12
  • 87
  • 240
Shishir
  • 81
  • 4