MODULE 2
SYMMETRIC CIPHERS: Traditional Block Cipher structure, Data encryption standard (DES), The AES Cipher.
(Text 1: Chapter 2: Section1, 2, Chapter 4: Section 2, 3, 4)
Text Books:
Education Inc., 6th Edition, 2014, ISBN: 978-93-325-1877-3
2. Bruce Schneier, “Applied Cryptography Protocols, Algorithms, and Source code in C”, Wiley
Publications, 2nd Edition, ISBN: 9971-51-348-X.
Reference Books:
1. Cryptography and Network Security, Behrouz A. Forouzan, TMH, 2007.
2. Cryptography and Network Security, Atul Kahate, TMH, 2003.
Feistel Cipher Structure
2
Feistel Cipher Structure
3
Henric Johnson
4
Feistel Cipher Decryption
5
6
Wednesday, September 22, 2021
Simplified Data Encryption Standard
The encryption algorithm involves five functions:
7
Wednesday, September 22, 2021
Algorithm
Key Generation
9
Wednesday, September 22, 2021
circular left shift (LS-1), or rotation, separately on the first five bits and the second five bits.
K1 = (10100100)
(00001 11000)
(00001 11000)
perform a circular left shift of 2 bit positions on each pair of 5-bit strings
(00100 00011)
10
Wednesday, September 22, 2021
K2 = (01000011)
(00100 00011)
S-DES Encryption
1 & 5) Initial and Final Permutations:
11
Wednesday, September 22, 2021
The Function fK
output of the IP stage = (10111101) and F(1101, SK) = (1110)
(01011101)
12
Wednesday, September 22, 2021
Conventional Encryption Algorithms
13
14
Wednesday, September 22, 2021
Data Encryption Standard
15
Wednesday, September 22, 2021
Initial 64 Bit Data
16
Wednesday, September 22, 2021
Initial Permutation (IP)
17
Wednesday, September 22, 2021
Inverse Initial Permutation (IP-1)
18
Wednesday, September 22, 2021
Single Round of DES Algorithm
19
Wednesday, September 22, 2021
Expansion Permutation (E)
20
Wednesday, September 22, 2021
21
Wednesday, September 22, 2021
Permutation Function (P)
22
Wednesday, September 22, 2021
Key Generation
23
Wednesday, September 22, 2021
24
Wednesday, September 22, 2021
25
The Avalanche Effect
26
Wednesday, September 22, 2021
The AES Cipher (Rijndael)
Dr. Joan Daemen and Dr. Vincent Rijmen
27
Wednesday, September 22, 2021
28
Wednesday, September 22, 2021
29
Wednesday, September 22, 2021
30
Wednesday, September 22, 2021
31
Wednesday, September 22, 2021
32
Wednesday, September 22, 2021
33
Wednesday, September 22, 2021
34
Wednesday, September 22, 2021
35
Wednesday, September 22, 2021
36
Wednesday, September 22, 2021
37
Wednesday, September 22, 2021
38
Wednesday, September 22, 2021
AddRoundKey Transformation
39
Wednesday, September 22, 2021
40
Wednesday, September 22, 2021
AES Key Expansion
KeyExpansion([Key0 to Key15], [w0 to w43])
{
for(i= 0 to 3)
wi🡨Key4i +Key4i+1 + Key4i+2 + Key4i+3
for(i=4 to 43)
{
if(i mod 4 ≠ 0)
wi 🡨wi-1+ wi-4
else
{
t🡨Subword(Rotword(wi-1)) + Rcon[i/4]
wi🡨t + wi-4
}}
}
41
Wednesday, September 22, 2021