Q1. Explain DES (Data Encryption Standard) and Its Round Function
Q1. Explain DES (Data Encryption Standard) and Its Round Function
Since DES is based on the Feistel Cipher, All that is required to specify DES is −
Round function
Key schedule
Any additional processing − Initial and final permutation
The initial and final permutations are straight Permutation boxes (P-boxes) that
are inverses of each other. They have no cryptography significance in DES. The
initial and final permutations are shown as follows –
Round Function
The heart of this cipher is the DES function, f. The DES function applies a 48-bit
key to the rightmost 32 bits to produce a 32-bit output.
Expansion Permutation Box − Since right input is 32-bit and round key
is a 48-bit, we first need to expand right input to 48 bits.
XOR (Whitener). − After the expansion permutation, DES does XOR
operation on the expanded right section and the round key. The round
key is used only in this operation.
Substitution Boxes. − The S-boxes carry out the real mixing (confusion).
DES uses 8 S-boxes, each with a 6-bit input and a 4-bit output. Refer the
following illustration −
There are a total of eight S-box tables. The output of all eight s-boxes is
then combined in to 32 bit section.
Straight Permutation − The 32 bit output of S-boxes is then subjected
to the straight permutation with rule shown in the following illustration:
Key Generation
The round-key generator creates sixteen 48-bit keys out of a 56-bit cipher key.
The process of key generation is depicted in the following illustration −
The logic for Parity drop, shifting, and Compression P-box is given in the DES
description.
Before using 3TDES, user first generate and distribute a 3TDES key K,
which consists of three different DES keys K 1, K2 and K3. This means that
the actual 3TDES key has length 3×56 = 168 bits. The encryption
scheme is illustrated as follows −
Operation of AES
Decryption Process