PR6 - Data Encryption Standard (DES) Algorithm - OK
PR6 - Data Encryption Standard (DES) Algorithm - OK
Theory : Feistel networks were first seen commercially in IBM’s Lucifer cipher designed by Horst Fiestel
and Don Coppersmith in 1973. Feistel networks gained respectability when the U.S federal government
adopted the DES (a cipher based on Lucifer.with changes made by the NSA) in 1976.many modern
symmetric block cipher are based on Feistel Networks.
In cryptography a Feistel structure cipher is a symmetric structure used in the construction of block
ciphers named after the german-born physicist and cryptographer hors feistel. a large proportion of block
ciphers use the scheme including the US Data encryption standard.
It is a design model from which many different block ciphers are derived.DES is just one example of
a feistel cipher. A cryptographic algorithm uses some algorithm for both encryption and decryption.
Encryption Process : The encryption process uses the feistel structure consisting of multiple rounds of
processing of the plaintext, each round consisting of a “substitution” step followed by a permutation step.
Decryption Process:
The process of decryption in feistel cipher is almost similar. Instead starting with a block of plaintext,
the ciphertext block is fed into the start of the feistel structure and then the process thereafter is exactly the
same as described in the given illustration.
The process is said to be almost similar. Instead of starting with a block of plaintext,the and not
exactly the same. In the case of decryption,the only difference is that the subkeys used in encryption are
used in reverse order.
The final swapping of ‘L’ and ‘R’ in the last steps of the feistel cipher is essential. If these are not
swapped then the resulting ciphertext could not be decrypted using the same algorithm.
Number of round:
E &TC/SEM-VII/C&NS/PR06 Page 1
Sipna College of Engineering & Technology, Amravati.
Department of Electronics and Telecommunication Engineering
The number of rounds in a feistel cipher depends on desired security from the system. More rounds
provide a more secure system. But at the same time, more rounds mean the inefficient slow encryption and
decryption processes. Number of rounds in the systems that depend upon efficiency security trade off.
E &TC/SEM-VII/C&NS/PR06 Page 2
Sipna College of Engineering & Technology, Amravati.
Department of Electronics and Telecommunication Engineering
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
E &TC/SEM-VII/C&NS/PR06 Page 3
Sipna College of Engineering & Technology, Amravati.
Department of Electronics and Telecommunication Engineering
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.
E &TC/SEM-VII/C&NS/PR06 Page 4
Sipna College of Engineering & Technology, Amravati.
Department of Electronics and Telecommunication Engineering
● 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. Permutation logic
is graphically depicted in the following illustration −
E &TC/SEM-VII/C&NS/PR06 Page 5
Sipna College of Engineering & Technology, Amravati.
Department of Electronics and Telecommunication Engineering
E &TC/SEM-VII/C&NS/PR06 Page 6
Sipna College of Engineering & Technology, Amravati.
Department of Electronics and Telecommunication Engineering
● 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
−
E &TC/SEM-VII/C&NS/PR06 Page 7
Sipna College of Engineering & Technology, Amravati.
Department of Electronics and Telecommunication Engineering
The logic for Parity drop, shifting, and Compression P-box is given in the DES description.
DES Analysis
The DES satisfies both the desired properties of block cipher. These two properties make cipher very
strong.
● Avalanche effect − A small change in plaintext results in the very great
change in the ciphertext.
● Completeness − Each bit of ciphertext depends on many bits of plaintext.
During the last few years, cryptanalysis have found some weaknesses in DES when key selected are weak
keys. These keys shall be avoided.
Conclusion: DES has proved to be a very well designed block cipher. There have been no significant
cryptanalytic attacks on DES other than exhaustive key search.
E &TC/SEM-VII/C&NS/PR06 Page 8