SlideShare a Scribd company logo
1 of 34
Modern Symmetric-Key Ciphers(AES, DES)
B P Poddar Institute of Management & Technology
Presented
by
Guided by
Maharaj Dey (11500117099)
Sandeep Kumar(11500117059)
Pratap Chandra Mondal
Term paper presentation
Computer Science Engineering
April – 2022
Cryptography and Network Theory 1
2
Modern Symmetric-Key Ciphers(AES, DES) April – 2022 2
Medern Symmetric-key ciphers
3
Modern Symmetric-Key Ciphers(AES, DES) April – 2022 3
Why Was the AES Encryption Algorithm necessary?
4
Modern Symmetric-Key Ciphers(AES, DES) April – 2022 4
What are the Features of AES?
 SP Network: It works on an SP network structure rather than a Feistel cipher structure
 Key Expansion: It takes a single key up during the first stage, which is later expanded to
multiple keys used in individual rounds.
 Byte Data: The AES encryption algorithm does operations on byte data instead of bit data.
 So it treats the 128-bit block size as 16 bytes during the encryption procedure.
 Key Length: The number of rounds to be carried out depends on the length of the key being
used to encrypt data.
 The 128-bit key size has ten rounds,
 the 192-bit key size has 12 rounds
 the 256-bit key size has 14 rounds.
5
Modern Symmetric-Key Ciphers(AES, DES) April – 2022 5
How Does AES Work?
 a single block is 16 bytes, a 4x4 matrix holds the data
in a single block, with each cell holding a single byte of
information.
 The matrix shown in the image above is known as a
state array. Similarly, the key being used initially is
expanded into (n+1) keys, with n being the number of
rounds to be followed in the encryption process. So for
a 128-bit key, the number of rounds is 16, with no. of
keys to be generated being 10+1, which is a total of 11
keys.
6
Modern Symmetric-Key Ciphers(AES, DES) April – 2022 6
The steps to be followed in AES
7
Modern Symmetric-Key Ciphers(AES, DES) April – 2022 7
Add Round Key
You pass the block data stored in the state array through an XOR
function with the first key generated (K0). It passes the resultant state
array on as input to the next step.
8
Modern Symmetric-Key Ciphers(AES, DES) April – 2022 8
Sub-Bytes
it converts each byte of the state array into hexadecimal, divided into two equal
parts. These parts are the rows and columns, mapped with a substitution box
(S-Box) to generate new values for the final state array.
9
Modern Symmetric-Key Ciphers(AES, DES) April – 2022 9
Shift Rows
It swaps the row elements among each other. It skips the first row. It shifts the
elements in the second row, one position to the left. It also shifts the elements
from the third row two consecutive positions to the left, and it shifts the last row
three positions to the left.
10
Modern Symmetric-Key Ciphers(AES, DES) April – 2022
1
0
Mix Columns
It multiplies a constant matrix with each column in the state array to get a
new column for the subsequent state array. Once all the columns are
multiplied with the same constant matrix, you get your state array for the next
step. This particular step is not to be done in the last round.
11
Modern Symmetric-Key Ciphers(AES, DES) April – 2022
1
1
Add Round Key
The respective key for the round is XOR’d with the state array is
obtained in the previous step. If this is the last round, the resultant state
array becomes the ciphertext for the specific block; else, it passes as
the new state array input for the next round.
12
Modern Symmetric-Key Ciphers(AES, DES) April – 2022
1
2
Example
13
Modern Symmetric-Key Ciphers(AES, DES) April – 2022
1
3
Example
14
Modern Symmetric-Key Ciphers(AES, DES) April – 2022
1
4
Example
Add Round Key
15
Modern Symmetric-Key Ciphers(AES, DES) April – 2022
1
5
Example
•Sub-Bytes: It passes the elements through a 16x16 S-
Box to get a completely new state array.
16
Modern Symmetric-Key Ciphers(AES, DES) April – 2022
1
6
Example
•Shift Rows
17
Modern Symmetric-Key Ciphers(AES, DES) April – 2022
1
7
Example
Mix Columns
18
Modern Symmetric-Key Ciphers(AES, DES) April – 2022
1
8
Example
•Add Round Key
This state array is now
the final ciphertext for
this particular round.
This becomes the input
for the next round.
Depending on the key
length, you repeat the
above steps until you
complete round 10
19
Modern Symmetric-Key Ciphers(AES, DES) April – 2022
1
9
Example
20
Modern Symmetric-Key Ciphers(AES, DES) April – 2022
2
0
What Are the Applications of AES?
21
Modern Symmetric-Key Ciphers(AES, DES) April – 2022
2
1
What are the Features of AES?
 The Data Encryption Standard (DES) is a symmetric-key block cipher published by the
National Institute of Standards and Technology (NIST).
 DES is an implementation of a Feistel Cipher. It uses 16 round Feistel structure.
 The block size is 64-bit.
 Though, key length is 64-bit, DES has an effective key length of 56 bits, since 8 of the 64 bits
of the key are not used by the encryption algorithm (function as check bits only).
22
Modern Symmetric-Key Ciphers(AES, DES) April – 2022
2
2
General Structure of DES
23
Modern Symmetric-Key Ciphers(AES, DES) April – 2022
2
3
Content
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
24
Modern Symmetric-Key Ciphers(AES, DES) April – 2022
2
4
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
25
Modern Symmetric-Key Ciphers(AES, DES) April – 2022
2
5
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.
26
Modern Symmetric-Key Ciphers(AES, DES) April – 2022
2
6
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.
The graphically depicted
permutation logic is generally
described as table
27
Modern Symmetric-Key Ciphers(AES, DES) April – 2022
2
7
XOR (Whitener)
After the expansion permutation, DES does XOR
operation on the expanded right section and the round
key.
28
Modern Symmetric-Key Ciphers(AES, DES) April – 2022
2
8
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
29
Modern Symmetric-Key Ciphers(AES, DES) April – 2022
2
9
The S-box rule
•There are a total of eight S-box tables. The output of all
eight s-boxes is then combined in to 32 bit section.
30
Modern Symmetric-Key Ciphers(AES, DES) April – 2022
3
0
Straight Permutation
The 32 bit output of S-boxes is then subjected to the
straight permutation with rule shown in the following
illustration
31
Modern Symmetric-Key Ciphers(AES, DES) April – 2022
3
1
Key Generation
32
Modern Symmetric-Key Ciphers(AES, DES) April – 2022
3
2
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.
33
Modern Symmetric-Key Ciphers(AES, DES) April – 2022
3
3
Differences Between AES & DES
DES Algorithm AES Algorithm
Key Length - 56 bits Key Length - 128, 192, 256 bits
Block Size - 64 bits Block size - 128 bits
Fixed no. of rounds
No. of rounds dependent on
key length
Slower and less secure Faster and more secure
34
Modern Symmetric-Key Ciphers(AES, DES) April – 2022
3
4
Conclusion
This tutorial explores the need & working of AES & DES Encryption, its origin and process
of encryption, all the way up to its applications, and a direct comparison in both the
algorithm.
Thank You

More Related Content

Similar to Medern Symmetric -Key Ciphers (AES, DES)

Data Encryption standard in cryptography
Data Encryption standard in cryptographyData Encryption standard in cryptography
Data Encryption standard in cryptography
NithyasriA2
 
Renas Rajab Asaad
Renas Rajab Asaad Renas Rajab Asaad
Renas Rajab Asaad
Renas Rekany
 
“Optimized AES Algorithm Core Using FeedBack Architecture”
“Optimized AES Algorithm Core Using FeedBack Architecture” “Optimized AES Algorithm Core Using FeedBack Architecture”
“Optimized AES Algorithm Core Using FeedBack Architecture”
Nirav Desai
 

Similar to Medern Symmetric -Key Ciphers (AES, DES) (20)

Block Cipher.cryptography_miu_year5.pptx
Block Cipher.cryptography_miu_year5.pptxBlock Cipher.cryptography_miu_year5.pptx
Block Cipher.cryptography_miu_year5.pptx
 
4-BlockCipher-DES-CEN451-BSE-Spring2022-17042022-104521am.pdf
4-BlockCipher-DES-CEN451-BSE-Spring2022-17042022-104521am.pdf4-BlockCipher-DES-CEN451-BSE-Spring2022-17042022-104521am.pdf
4-BlockCipher-DES-CEN451-BSE-Spring2022-17042022-104521am.pdf
 
Unit 2
Unit  2Unit  2
Unit 2
 
Network security cs5
Network security cs5Network security cs5
Network security cs5
 
Data Encryption standard in cryptography
Data Encryption standard in cryptographyData Encryption standard in cryptography
Data Encryption standard in cryptography
 
Network Security Lec4
Network Security Lec4Network Security Lec4
Network Security Lec4
 
Paper on Optimized AES Algorithm Core Using FeedBack Architecture
Paper on Optimized AES Algorithm Core Using  FeedBack Architecture Paper on Optimized AES Algorithm Core Using  FeedBack Architecture
Paper on Optimized AES Algorithm Core Using FeedBack Architecture
 
chap3.pdf
chap3.pdfchap3.pdf
chap3.pdf
 
M tech2
M tech2M tech2
M tech2
 
Cryptography unit2.pptx
Cryptography unit2.pptxCryptography unit2.pptx
Cryptography unit2.pptx
 
Renas Rajab Asaad
Renas Rajab Asaad Renas Rajab Asaad
Renas Rajab Asaad
 
Why was aes developed
Why was aes developedWhy was aes developed
Why was aes developed
 
Aes
AesAes
Aes
 
Cryptographic algorithms
Cryptographic algorithmsCryptographic algorithms
Cryptographic algorithms
 
Cryptographic algorithms
Cryptographic algorithmsCryptographic algorithms
Cryptographic algorithms
 
AES by example
AES by exampleAES by example
AES by example
 
“Optimized AES Algorithm Core Using FeedBack Architecture”
“Optimized AES Algorithm Core Using FeedBack Architecture” “Optimized AES Algorithm Core Using FeedBack Architecture”
“Optimized AES Algorithm Core Using FeedBack Architecture”
 
AES Cryptosystem
AES CryptosystemAES Cryptosystem
AES Cryptosystem
 
Renas Rajab Asaad
Renas Rajab AsaadRenas Rajab Asaad
Renas Rajab Asaad
 
4255596.ppt
4255596.ppt4255596.ppt
4255596.ppt
 

More from maharajdey (7)

FInal Year Project Presentation
FInal Year Project PresentationFInal Year Project Presentation
FInal Year Project Presentation
 
Merge Sort vs Quick Sort presentation
Merge Sort vs Quick Sort presentationMerge Sort vs Quick Sort presentation
Merge Sort vs Quick Sort presentation
 
A* Algorithm
A* AlgorithmA* Algorithm
A* Algorithm
 
Softwere Testing Aplication Specific Techniques
Softwere Testing Aplication Specific TechniquesSoftwere Testing Aplication Specific Techniques
Softwere Testing Aplication Specific Techniques
 
Classification of Compiler
Classification of CompilerClassification of Compiler
Classification of Compiler
 
Cloud Service Models
Cloud Service ModelsCloud Service Models
Cloud Service Models
 
Travelling salesman dynamic programming
Travelling salesman dynamic programmingTravelling salesman dynamic programming
Travelling salesman dynamic programming
 

Recently uploaded

Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
Neometrix_Engineering_Pvt_Ltd
 
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills KuwaitKuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
jaanualu31
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
Epec Engineered Technologies
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
MsecMca
 

Recently uploaded (20)

Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the start
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
 
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptx
 
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best ServiceTamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
 
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills KuwaitKuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
 
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptxA CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
 
2016EF22_0 solar project report rooftop projects
2016EF22_0 solar project report rooftop projects2016EF22_0 solar project report rooftop projects
2016EF22_0 solar project report rooftop projects
 
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptxS1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
 
Bridge Jacking Design Sample Calculation.pptx
Bridge Jacking Design Sample Calculation.pptxBridge Jacking Design Sample Calculation.pptx
Bridge Jacking Design Sample Calculation.pptx
 
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced LoadsFEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
 
AIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsAIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech students
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.
 
Online food ordering system project report.pdf
Online food ordering system project report.pdfOnline food ordering system project report.pdf
Online food ordering system project report.pdf
 
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptxHOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
 
Air Compressor reciprocating single stage
Air Compressor reciprocating single stageAir Compressor reciprocating single stage
Air Compressor reciprocating single stage
 

Medern Symmetric -Key Ciphers (AES, DES)

  • 1. Modern Symmetric-Key Ciphers(AES, DES) B P Poddar Institute of Management & Technology Presented by Guided by Maharaj Dey (11500117099) Sandeep Kumar(11500117059) Pratap Chandra Mondal Term paper presentation Computer Science Engineering April – 2022 Cryptography and Network Theory 1
  • 2. 2 Modern Symmetric-Key Ciphers(AES, DES) April – 2022 2 Medern Symmetric-key ciphers
  • 3. 3 Modern Symmetric-Key Ciphers(AES, DES) April – 2022 3 Why Was the AES Encryption Algorithm necessary?
  • 4. 4 Modern Symmetric-Key Ciphers(AES, DES) April – 2022 4 What are the Features of AES?  SP Network: It works on an SP network structure rather than a Feistel cipher structure  Key Expansion: It takes a single key up during the first stage, which is later expanded to multiple keys used in individual rounds.  Byte Data: The AES encryption algorithm does operations on byte data instead of bit data.  So it treats the 128-bit block size as 16 bytes during the encryption procedure.  Key Length: The number of rounds to be carried out depends on the length of the key being used to encrypt data.  The 128-bit key size has ten rounds,  the 192-bit key size has 12 rounds  the 256-bit key size has 14 rounds.
  • 5. 5 Modern Symmetric-Key Ciphers(AES, DES) April – 2022 5 How Does AES Work?  a single block is 16 bytes, a 4x4 matrix holds the data in a single block, with each cell holding a single byte of information.  The matrix shown in the image above is known as a state array. Similarly, the key being used initially is expanded into (n+1) keys, with n being the number of rounds to be followed in the encryption process. So for a 128-bit key, the number of rounds is 16, with no. of keys to be generated being 10+1, which is a total of 11 keys.
  • 6. 6 Modern Symmetric-Key Ciphers(AES, DES) April – 2022 6 The steps to be followed in AES
  • 7. 7 Modern Symmetric-Key Ciphers(AES, DES) April – 2022 7 Add Round Key You pass the block data stored in the state array through an XOR function with the first key generated (K0). It passes the resultant state array on as input to the next step.
  • 8. 8 Modern Symmetric-Key Ciphers(AES, DES) April – 2022 8 Sub-Bytes it converts each byte of the state array into hexadecimal, divided into two equal parts. These parts are the rows and columns, mapped with a substitution box (S-Box) to generate new values for the final state array.
  • 9. 9 Modern Symmetric-Key Ciphers(AES, DES) April – 2022 9 Shift Rows It swaps the row elements among each other. It skips the first row. It shifts the elements in the second row, one position to the left. It also shifts the elements from the third row two consecutive positions to the left, and it shifts the last row three positions to the left.
  • 10. 10 Modern Symmetric-Key Ciphers(AES, DES) April – 2022 1 0 Mix Columns It multiplies a constant matrix with each column in the state array to get a new column for the subsequent state array. Once all the columns are multiplied with the same constant matrix, you get your state array for the next step. This particular step is not to be done in the last round.
  • 11. 11 Modern Symmetric-Key Ciphers(AES, DES) April – 2022 1 1 Add Round Key The respective key for the round is XOR’d with the state array is obtained in the previous step. If this is the last round, the resultant state array becomes the ciphertext for the specific block; else, it passes as the new state array input for the next round.
  • 12. 12 Modern Symmetric-Key Ciphers(AES, DES) April – 2022 1 2 Example
  • 13. 13 Modern Symmetric-Key Ciphers(AES, DES) April – 2022 1 3 Example
  • 14. 14 Modern Symmetric-Key Ciphers(AES, DES) April – 2022 1 4 Example Add Round Key
  • 15. 15 Modern Symmetric-Key Ciphers(AES, DES) April – 2022 1 5 Example •Sub-Bytes: It passes the elements through a 16x16 S- Box to get a completely new state array.
  • 16. 16 Modern Symmetric-Key Ciphers(AES, DES) April – 2022 1 6 Example •Shift Rows
  • 17. 17 Modern Symmetric-Key Ciphers(AES, DES) April – 2022 1 7 Example Mix Columns
  • 18. 18 Modern Symmetric-Key Ciphers(AES, DES) April – 2022 1 8 Example •Add Round Key This state array is now the final ciphertext for this particular round. This becomes the input for the next round. Depending on the key length, you repeat the above steps until you complete round 10
  • 19. 19 Modern Symmetric-Key Ciphers(AES, DES) April – 2022 1 9 Example
  • 20. 20 Modern Symmetric-Key Ciphers(AES, DES) April – 2022 2 0 What Are the Applications of AES?
  • 21. 21 Modern Symmetric-Key Ciphers(AES, DES) April – 2022 2 1 What are the Features of AES?  The Data Encryption Standard (DES) is a symmetric-key block cipher published by the National Institute of Standards and Technology (NIST).  DES is an implementation of a Feistel Cipher. It uses 16 round Feistel structure.  The block size is 64-bit.  Though, key length is 64-bit, DES has an effective key length of 56 bits, since 8 of the 64 bits of the key are not used by the encryption algorithm (function as check bits only).
  • 22. 22 Modern Symmetric-Key Ciphers(AES, DES) April – 2022 2 2 General Structure of DES
  • 23. 23 Modern Symmetric-Key Ciphers(AES, DES) April – 2022 2 3 Content 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
  • 24. 24 Modern Symmetric-Key Ciphers(AES, DES) April – 2022 2 4 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
  • 25. 25 Modern Symmetric-Key Ciphers(AES, DES) April – 2022 2 5 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.
  • 26. 26 Modern Symmetric-Key Ciphers(AES, DES) April – 2022 2 6 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. The graphically depicted permutation logic is generally described as table
  • 27. 27 Modern Symmetric-Key Ciphers(AES, DES) April – 2022 2 7 XOR (Whitener) After the expansion permutation, DES does XOR operation on the expanded right section and the round key.
  • 28. 28 Modern Symmetric-Key Ciphers(AES, DES) April – 2022 2 8 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
  • 29. 29 Modern Symmetric-Key Ciphers(AES, DES) April – 2022 2 9 The S-box rule •There are a total of eight S-box tables. The output of all eight s-boxes is then combined in to 32 bit section.
  • 30. 30 Modern Symmetric-Key Ciphers(AES, DES) April – 2022 3 0 Straight Permutation The 32 bit output of S-boxes is then subjected to the straight permutation with rule shown in the following illustration
  • 31. 31 Modern Symmetric-Key Ciphers(AES, DES) April – 2022 3 1 Key Generation
  • 32. 32 Modern Symmetric-Key Ciphers(AES, DES) April – 2022 3 2 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.
  • 33. 33 Modern Symmetric-Key Ciphers(AES, DES) April – 2022 3 3 Differences Between AES & DES DES Algorithm AES Algorithm Key Length - 56 bits Key Length - 128, 192, 256 bits Block Size - 64 bits Block size - 128 bits Fixed no. of rounds No. of rounds dependent on key length Slower and less secure Faster and more secure
  • 34. 34 Modern Symmetric-Key Ciphers(AES, DES) April – 2022 3 4 Conclusion This tutorial explores the need & working of AES & DES Encryption, its origin and process of encryption, all the way up to its applications, and a direct comparison in both the algorithm. Thank You