Data Encryption Standard (DES) Standard (DES) : Prepared By: Reema Patel
Data Encryption Standard (DES) Standard (DES) : Prepared By: Reema Patel
Standard (DES)
PREPARED BY: REEMA PATEL
In symbols:
• The initial and final permutations are straight P-boxes that are inverses
of each other.
Binary form:
0000 0000 0000 0000 0000 0000 1000 0000 0000 0000 0000 0000 0000 0000 0000 0010
• Solution:
• Only bit 25 and bit 63 are 1s; the other bits are 0s. In the final permutation, bit 25
becomes bit 64 and bit 63 becomes bit 15. The result is
Binary form:
0000 0000 0000 0010 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0001
• Solution:
• The input has only two 1s; the output must also have only two 1s. Using permutation
tables, we can find the output related to these two bits. Bit 15 in the input becomes bit 63
in the output. Bit 64 in the input becomes bit 25 in the output. So the output has only two
1s, bit 25 and bit 63. The result in hexadecimal is
• Each containing a copy of 4 corresponding input bits, plus a copy of the immediately adjacent bit
from each of the input pieces to either side.
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
• Output 48 bits
31 0 1 2 3 4 3 4 5 6 7 8
7 8 9 10 11 12 11 12 13 14 15 16
15 16 17 18 19 20 19 20 21 22 23 24
23 24 25 26 27 28 27 28 29 30 31 0
• Both the right section and the key are 48-bits in length.
• First Approach
• To achieve this goal, one approach is to make the last round (round 16) different from the others; it
has only a mixer and no swapper.
• 16 no of 48-bit subkeys—one
for each round —are derived
from the main key using the key
schedule
• Since all the subkeys are identical, and DES is a Feistel network, the encryption function is
self-inverting; that is, encrypting twice produces the original plaintext
• If we encrypt a block with a weak key and subsequently encrypt the result with the same
weak key, we get the original block.
• There are six key pairs that are called semi weak keys.
• The round keys created from each pair are the same in different order.
• DES has a key domain of 256. The total number of the above keys are 64 (4 + 12 + 48). The
probability of choosing one of these keys is 8.8 × 10−16, almost impossible.
• If there are more than one keys, he takes another (P,C) pair.