SlideShare a Scribd company logo
Simplified Advanced Encryption Standard
Simplified Advanced Encryption
Standard
Dr. Ibraheem Abdulatief
Lecturer, Computer Science Department
Al-Obour High Institutes
10,11
Simplified Advanced Encryption Standard
Simplified Advanced Encryption Standard
S-AES Encryption and Decryption
S-AES Key Generation
S-AES Encryption
S-AES Decryption
Simplified Advanced Encryption Standard
Shift Row
Mix Columns
Add Round Key
16-bit Plain text
16-bit Cipher text
Nibble Substitution
Shift Row
Add Round Key
Nibble Substitution
Add Round Key
𝒘𝟐,𝟑
16-bit Key
Expand Key
𝒘𝟒,𝟓
Expand Key
𝒘𝟎,𝟏
Round 1
Round 2
Simplified Advanced Encryption Standard
 Assume: P= 1101 0111 0010 1000
 Key0 = w0w1
= 0100 1010 1111 0101
 Key1 = w2w3
= 1101 1101 0010 1000
 Key2 = w4w5
= 1000 0111 1010 1111
Simplified Advanced Encryption Standard
Shift Row
Mix Columns
Add Round Key
16-bit Plain text
16-bit Cipher text
Nibble Substitution
Shift Row
Add Round Key
Nibble Substitution
Add Round Key
𝒘𝟐,𝟑
16-bit Key
Expand Key
𝒘𝟒,𝟓
Expand Key
𝒘𝟎,𝟏
Round 1
Round 2
Simplified Advanced Encryption Standard
 Round 0
 P= 1101 0111 0010 1000
 Key0 = 0100 1010 1111 0101
 R0= P ⊕ Key0
= 1101 0111 0010 1000 ⊕
0100 1010 1111 0101
= 1001 1101 1101 1101
Simplified Advanced Encryption Standard
Shift Row
Mix Columns
Add Round Key
16-bit Plain text
16-bit Cipher text
Nibble Substitution
Shift Row
Add Round Key
Nibble Substitution
Add Round Key
𝒘𝟐,𝟑
16-bit Key
Expand Key
𝒘𝟒,𝟓
Expand Key
𝒘𝟎,𝟏
Round 1
Round 2
Simplified Advanced Encryption Standard
 S-AES Encryption Round
Simplified Advanced Encryption Standard
 S-AES Transformation (Substitution and Shift row)
Simplified Advanced Encryption Standard
Shift Row
Mix Columns
Add Round Key
16-bit Plain text
16-bit Cipher text
Nibble Substitution
Shift Row
Add Round Key
Nibble Substitution
Add Round Key
𝒘𝟐,𝟑
16-bit Key
Expand Key
𝒘𝟒,𝟓
Expand Key
𝒘𝟎,𝟏
Round 1
Round 2
Simplified Advanced Encryption Standard
 Round 1
1) Nibble Substitution :
 SubNib(1001 1101 1101 1101)= 0010 1110 1110 1110
2) Shift Row:
 Swap 2nd nibble and 4th nibble
 ShRow(0010 1110 1110 1110)
= 0010 1110 1110 1110
S-Box
Simplified Advanced Encryption Standard
 S-AES Encryption Round
Simplified Advanced Encryption Standard
Shift Row
Mix Columns
Add Round Key
16-bit Plain text
16-bit Cipher text
Nibble Substitution
Shift Row
Add Round Key
Nibble Substitution
Add Round Key
𝒘𝟐,𝟑
16-bit Key
Expand Key
𝒘𝟒,𝟓
Expand Key
𝒘𝟎,𝟏
Round 1
Round 2
Simplified Advanced Encryption Standard
 S-AES Transformation (Mix Column)
Simplified Advanced Encryption Standard
 Mix Column Table
* 1 2 3 4 5 6 7 8 9 A B C D E F
2 2 4 6 8 A C E 3 1 7 5 B 9 F D
4 4 8 C 3 7 B F 6 2 E A 5 1 D 9
9 9 1 8 2 B 3 A 4 D 5 C 6 F 7 E
Simplified Advanced Encryption Standard
 Round 1
3) Mix Columns:
 MixCol (0010 1110 1110 1110) = 0010 1110
1110 1110
∗
1 4
4 1
=
 = 2 E
E E
∗
1 4
4 1
=
(2∗1⊕E∗4) (E∗1⊕E∗4)
(2∗4⊕E∗1) (E∗4⊕E∗1)
* 1 2 3 4 5 6 7 8 9 A B C D E F
2 2 4 6 8 A C E 3 1 7 5 B 9 F D
4 4 8 C 3 7 B F 6 2 E A 5 1 D 9
9 9 1 8 2 B 3 A 4 D 5 C 6 F 7 E
Simplified Advanced Encryption Standard
 =
(2⊕D) (E⊕D)
(8⊕E) (D⊕E)
=
(0010⊕1101) (1110⊕1101)
(1000⊕1110) (1101⊕1110)

(0010⊕1101) (1110⊕1101)
(1000⊕1110) (1101⊕1110)
= 1111 0011
0110 0011
= 1111 0110 0011 0011
Simplified Advanced Encryption Standard
Shift Row
Mix Columns
Add Round Key
16-bit Plain text
16-bit Cipher text
Nibble Substitution
Shift Row
Add Round Key
Nibble Substitution
Add Round Key
𝒘𝟐,𝟑
16-bit Key
Expand Key
𝒘𝟒,𝟓
Expand Key
𝒘𝟎,𝟏
Round 1
Round 2
Simplified Advanced Encryption Standard
 Round 1
4) Add round Key1
 Key1 = 1101 1101 0010 1000
 R1= Key1 ⊕ MixCol(ShRow(SubNib(R0)))
= 1101 1101 0010 1000 ⊕ 1111 0110 0011 0011
= 0010 1011 0001 1011
Simplified Advanced Encryption Standard
Shift Row
Mix Columns
Add Round Key
16-bit Plain text
16-bit Cipher text
Nibble Substitution
Shift Row
Add Round Key
Nibble Substitution
Add Round Key
𝒘𝟐,𝟑
16-bit Key
Expand Key
𝒘𝟒,𝟓
Expand Key
𝒘𝟎,𝟏
Round 1
Round 2
Simplified Advanced Encryption Standard
Shift Row
Mix Columns
Add Round Key
16-bit Plain text
16-bit Cipher text
Nibble Substitution
Shift Row
Add Round Key
Nibble Substitution
Add Round Key
𝒘𝟐,𝟑
16-bit Key
Expand Key
𝒘𝟒,𝟓
Expand Key
𝒘𝟎,𝟏
Round 1
Round 2
Simplified Advanced Encryption Standard
 S-AES Transformation (Substitution and Shift row)
Simplified Advanced Encryption Standard
 Round 2
1) Nibble Substitution :
 SubNib(0010 1011 0001 1011)= 1010 0011 0100 0011
2) Shift Row:
 Swap 2nd nibble and 4th nibble
 ShRow(1010 0011 0100 0011)
= 1010 0011 0100 0011
S-Box
Simplified Advanced Encryption Standard
Shift Row
Mix Columns
Add Round Key
16-bit Plain text
16-bit Cipher text
Nibble Substitution
Shift Row
Add Round Key
Nibble Substitution
Add Round Key
𝒘𝟐,𝟑
16-bit Key
Expand Key
𝒘𝟒,𝟓
Expand Key
𝒘𝟎,𝟏
Round 1
Round 2
Simplified Advanced Encryption Standard
 Round 2
4) Add round Key2
 Key2 = 1000 0111 1010 1111
 R2= Key2 ⊕ ShRow(SubNib(R1))
= 1000 0111 1010 1111 ⊕ 1010 0011 0100 0011
= 0010 0100 1110 1100
Ciphertext = 0010 0100 1110 1100
Simplified Advanced Encryption Standard
Simplified Advanced Encryption Standard
S-AES Encryption and Decryption
S-AES Key Generation
S-AES Encryption
S-AES Decryption
Simplified Advanced Encryption Standard
Shift Row
Mix Columns
Add Round Key
16-bit Plain text
16-bit Cipher text
Nibble Substitution
Shift Row
Add Round Key
Nibble Substitution
Add Round Key
Inverse Shift Row
Inverse Mix Columns
Add Round Key
16-bit Plain text
16-bit Cipher text
Inverse Nibble Substitution
Inverse Shift Row
Add Round Key
Inverse Nibble Substitution
Add Round Key
𝒘𝟐,𝟑
16-bit Key
Expand Key
𝒘𝟒,𝟓
Expand Key
𝒘𝟎,𝟏
Round 1
Round 2 Round 1
Round 2
Simplified Advanced Encryption Standard
Inverse Shift Row
Inverse Mix Columns
Add Round Key
16-bit Plain text
16-bit Cipher text
Inverse Nibble Substitution
Inverse Shift Row
Add Round Key
Inverse Nibble Substitution
Add Round Key
𝒘𝟐,𝟑
16-bit Key
Expand Key
𝒘𝟒,𝟓
Expand Key
𝒘𝟎,𝟏
Round 1
Round 2
Simplified Advanced Encryption Standard
 Assume: C= 0010 0100 1110 1100
 Key0 = w0w1
= 0100 1010 1111 0101
 Key1 = w2w3
= 1101 1101 0010 1000
 Key2 = w4w5
= 1000 0111 1010 1111
Simplified Advanced Encryption Standard
Inverse Shift Row
Inverse Mix Columns
Add Round Key
16-bit Plain text
16-bit Cipher text
Inverse Nibble Substitution
Inverse Shift Row
Add Round Key
Inverse Nibble Substitution
Add Round Key
𝒘𝟐,𝟑
16-bit Key
Expand Key
𝒘𝟒,𝟓
Expand Key
𝒘𝟎,𝟏
Round 1
Round 2
Simplified Advanced Encryption Standard
 Key2 = w4w5
= 1000 0111 1010 1111
 C= 0010 0100 1110 1100
 R0= C ⊕ Key2 = 0010 0100 1110 1100 ⊕ 1000 0111 1010
1111
 =1010 0011 0100 0011
Simplified Advanced Encryption Standard
Inverse Shift Row
Inverse Mix Columns
Add Round Key
16-bit Plain text
16-bit Cipher text
Inverse Nibble Substitution
Inverse Shift Row
Add Round Key
Inverse Nibble Substitution
Add Round Key
𝒘𝟐,𝟑
16-bit Key
Expand Key
𝒘𝟒,𝟓
Expand Key
𝒘𝟎,𝟏
Round 1
Round 2
Simplified Advanced Encryption Standard
Inverse Shift Row
Inverse Mix Columns
Add Round Key
16-bit Plain text
16-bit Cipher text
Inverse Nibble Substitution
Inverse Shift Row
Add Round Key
Inverse Nibble Substitution
Add Round Key
𝒘𝟐,𝟑
16-bit Key
Expand Key
𝒘𝟒,𝟓
Expand Key
𝒘𝟎,𝟏
Round 1
Round 2
Simplified Advanced Encryption Standard
 Round 1
1) Inverse Shift Row
 IShRow(R0)=IShRow(1010 0011 0100 0011)=
= 1010 0011 0100 0011
2) Inverse Nibble Sub
 ISubNib( 1010 0011 0100 0011 )=
= 0010 1011 0001 1011
Inv S-Box
Simplified Advanced Encryption Standard
Inverse Shift Row
Inverse Mix Columns
Add Round Key
16-bit Plain text
16-bit Cipher text
Inverse Nibble Substitution
Inverse Shift Row
Add Round Key
Inverse Nibble Substitution
Add Round Key
𝒘𝟐,𝟑
16-bit Key
Expand Key
𝒘𝟒,𝟓
Expand Key
𝒘𝟎,𝟏
Round 1
Round 2
Simplified Advanced Encryption Standard
3) Add Round 1 Key
 0010 1011 0001 1011 ⊕ Key1
= 0010 1011 0001 1011 ⊕ 1101 1101 0010 1000
=1111 0110 0011 0011
Simplified Advanced Encryption Standard
Inverse Shift Row
Inverse Mix Columns
Add Round Key
16-bit Plain text
16-bit Cipher text
Inverse Nibble Substitution
Inverse Shift Row
Add Round Key
Inverse Nibble Substitution
Add Round Key
𝒘𝟐,𝟑
16-bit Key
Expand Key
𝒘𝟒,𝟓
Expand Key
𝒘𝟎,𝟏
Round 1
Round 2
Simplified Advanced Encryption Standard
 Round 1
4) Inverse Mix Columns :
 MixCol (1111 0110 0011 0011) = 1111 0011
0110 0011
∗
9 2
2 9
=
 = F 3
6 3
∗
𝟗 𝟐
𝟐 𝟗
=
(F∗9⊕6∗2) (3∗9⊕3∗2)
(F∗2⊕6∗9) (3∗2⊕3∗9)
 =
(E⊕C) (8⊕6)
(D⊕3) (6⊕8)
 =
(1110⊕1100) (1000⊕0110)
(1101⊕0011) (0110⊕1000)
* 1 2 3 4 5 6 7 8 9 A B C D E F
2 2 4 6 8 A C E 3 1 7 5 B 9 F D
4 4 8 C 3 7 B F 6 2 E A 5 1 D 9
9 9 1 8 2 B 3 A 4 D 5 C 6 F 7 E
Simplified Advanced Encryption Standard

(1110⊕1100) (1000⊕0110)
(1101⊕0011) (0110⊕1000)
= 0010 1110
1110 1110
R1 = 0010 1110 1110 1110
Simplified Advanced Encryption Standard
Inverse Shift Row
Inverse Mix Columns
Add Round Key
16-bit Plain text
16-bit Cipher text
Inverse Nibble Substitution
Inverse Shift Row
Add Round Key
Inverse Nibble Substitution
Add Round Key
𝒘𝟐,𝟑
16-bit Key
Expand Key
𝒘𝟒,𝟓
Expand Key
𝒘𝟎,𝟏
Round 1
Round 2
Simplified Advanced Encryption Standard
Inverse Shift Row
Inverse Mix Columns
Add Round Key
16-bit Plain text
16-bit Cipher text
Inverse Nibble Substitution
Inverse Shift Row
Add Round Key
Inverse Nibble Substitution
Add Round Key
𝒘𝟐,𝟑
16-bit Key
Expand Key
𝒘𝟒,𝟓
Expand Key
𝒘𝟎,𝟏
Round 1
Round 2
Simplified Advanced Encryption Standard
 Round 2
1) Inverse Shift Row
 IShRow(R1)=IShRow(0010 1110 1110 1110)=
= 0010 1110 1110 1110
2) Inverse Nibble Sub
 ISubNib( 0010 1110 1110 1110 )=
= 1001 1101 1101 1101
Inv S-Box
Simplified Advanced Encryption Standard
Inverse Shift Row
Inverse Mix Columns
Add Round Key
16-bit Plain text
16-bit Cipher text
Inverse Nibble Substitution
Inverse Shift Row
Add Round Key
Inverse Nibble Substitution
Add Round Key
𝒘𝟐,𝟑
16-bit Key
Expand Key
𝒘𝟒,𝟓
Expand Key
𝒘𝟎,𝟏
Round 1
Round 2
Simplified Advanced Encryption Standard
3) Add Round 2 Key
 R2= 1001 1101 1101 1101 ⊕ Key0
= 1001 1101 1101 1101 ⊕ 0100 1010 1111 0101
=1101 0111 0010 1000
Plaintext = 1101 0111 0010 1000 = D7 28
Simplified Advanced Encryption Standard
www.YourCompany.com
© 2020 Companyname PowerPoint Business Theme. All Rights Reserved.
THANKS FOR
YOUR TIME

More Related Content

PDF
Computer Security Lecture 5: Simplified Advanced Encryption Standard
PDF
Computer Security Lecture 4: Block Ciphers and the Data Encryption Standard
PPTX
DES Presentation.pptx for Information Security, A common Subject
PPT
Lecture ascii and ebcdic codes
PPT
Computer archi&mp
PPT
Ch03 Ch06 Des And Others
PDF
data1
Computer Security Lecture 5: Simplified Advanced Encryption Standard
Computer Security Lecture 4: Block Ciphers and the Data Encryption Standard
DES Presentation.pptx for Information Security, A common Subject
Lecture ascii and ebcdic codes
Computer archi&mp
Ch03 Ch06 Des And Others
data1

Similar to Computer Security-Lecture_AES,DES 10,11.pdf (20)

PPT
Logic Design 2009
PPTX
Number system
PDF
Dld lecture module 03
PPTX
Number system
PPTX
UNIT - I.pptx
PPTX
UNIT - I.pptx
PPT
Number System- binary octal hexadecimal numbers
PDF
Week 5 - Number Systems.pdf
PPTX
How DES Works Week#10 Lecture#01,02(DES).pptx
PDF
Lec 02
PPT
Introduction to Information Technology Lecture 3
PPT
Lec2 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Num...
PPT
Cryptography Symmetric Key Algorithm (CSE)
DOCX
Unit 4.docx
PPTX
numbersystem-171028183820.pptx
PPTX
About the computer of the important field
PPT
BEEE - Part B - Unit 3 PPT.ppt DL&CO - Unit 1 PPT.ppt
PPTX
javaPrimitiveTypes.pptx
PPT
01.number systems
Logic Design 2009
Number system
Dld lecture module 03
Number system
UNIT - I.pptx
UNIT - I.pptx
Number System- binary octal hexadecimal numbers
Week 5 - Number Systems.pdf
How DES Works Week#10 Lecture#01,02(DES).pptx
Lec 02
Introduction to Information Technology Lecture 3
Lec2 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Num...
Cryptography Symmetric Key Algorithm (CSE)
Unit 4.docx
numbersystem-171028183820.pptx
About the computer of the important field
BEEE - Part B - Unit 3 PPT.ppt DL&CO - Unit 1 PPT.ppt
javaPrimitiveTypes.pptx
01.number systems
Ad

More from someyamohsen2 (13)

PPTX
Software engineering for machine learning.pptx
PDF
Computer Security-Lecture4_autokey,videner.pdf
PPTX
back propagation1_presenation_lab 6.pptx
PPTX
Ch7_Fuzzy evaluationary algorithms1.pptx
PPTX
Human Resource management os software engineering
PPTX
Part E Software Implementation and Management.pptx
PDF
04_KM_Bio_State Space Search_about DNA and rna.pdf
PDF
03_KM_Bio_The Pairwise Sequence Alignment Problem .pdf
PPTX
Vector space model12345678910111213.pptx
PPTX
lec3 AI.pptx
PPT
Deep-Learning-2017-Lecture7GAN.ppt
PDF
l_02sec.pdf
PDF
talalalsubaie-1220737011220266-9.pdf
Software engineering for machine learning.pptx
Computer Security-Lecture4_autokey,videner.pdf
back propagation1_presenation_lab 6.pptx
Ch7_Fuzzy evaluationary algorithms1.pptx
Human Resource management os software engineering
Part E Software Implementation and Management.pptx
04_KM_Bio_State Space Search_about DNA and rna.pdf
03_KM_Bio_The Pairwise Sequence Alignment Problem .pdf
Vector space model12345678910111213.pptx
lec3 AI.pptx
Deep-Learning-2017-Lecture7GAN.ppt
l_02sec.pdf
talalalsubaie-1220737011220266-9.pdf
Ad

Recently uploaded (20)

PDF
annual-report-2024-2025 original latest.
PPT
Reliability_Chapter_ presentation 1221.5784
PPTX
Introduction to Firewall Analytics - Interfirewall and Transfirewall.pptx
PDF
Fluorescence-microscope_Botany_detailed content
PDF
168300704-gasification-ppt.pdfhghhhsjsjhsuxush
PDF
Introduction to Data Science and Data Analysis
PPTX
oil_refinery_comprehensive_20250804084928 (1).pptx
PPTX
STERILIZATION AND DISINFECTION-1.ppthhhbx
PPTX
Introduction to Basics of Ethical Hacking and Penetration Testing -Unit No. 1...
PDF
Lecture1 pattern recognition............
PPTX
The THESIS FINAL-DEFENSE-PRESENTATION.pptx
PPTX
Microsoft-Fabric-Unifying-Analytics-for-the-Modern-Enterprise Solution.pptx
PPTX
01_intro xxxxxxxxxxfffffffffffaaaaaaaaaaafg
PDF
Business Analytics and business intelligence.pdf
PPT
Miokarditis (Inflamasi pada Otot Jantung)
PPTX
Qualitative Qantitative and Mixed Methods.pptx
PDF
[EN] Industrial Machine Downtime Prediction
PPTX
DISORDERS OF THE LIVER, GALLBLADDER AND PANCREASE (1).pptx
PDF
Recruitment and Placement PPT.pdfbjfibjdfbjfobj
PPTX
mbdjdhjjodule 5-1 rhfhhfjtjjhafbrhfnfbbfnb
annual-report-2024-2025 original latest.
Reliability_Chapter_ presentation 1221.5784
Introduction to Firewall Analytics - Interfirewall and Transfirewall.pptx
Fluorescence-microscope_Botany_detailed content
168300704-gasification-ppt.pdfhghhhsjsjhsuxush
Introduction to Data Science and Data Analysis
oil_refinery_comprehensive_20250804084928 (1).pptx
STERILIZATION AND DISINFECTION-1.ppthhhbx
Introduction to Basics of Ethical Hacking and Penetration Testing -Unit No. 1...
Lecture1 pattern recognition............
The THESIS FINAL-DEFENSE-PRESENTATION.pptx
Microsoft-Fabric-Unifying-Analytics-for-the-Modern-Enterprise Solution.pptx
01_intro xxxxxxxxxxfffffffffffaaaaaaaaaaafg
Business Analytics and business intelligence.pdf
Miokarditis (Inflamasi pada Otot Jantung)
Qualitative Qantitative and Mixed Methods.pptx
[EN] Industrial Machine Downtime Prediction
DISORDERS OF THE LIVER, GALLBLADDER AND PANCREASE (1).pptx
Recruitment and Placement PPT.pdfbjfibjdfbjfobj
mbdjdhjjodule 5-1 rhfhhfjtjjhafbrhfnfbbfnb

Computer Security-Lecture_AES,DES 10,11.pdf

  • 1. Simplified Advanced Encryption Standard Simplified Advanced Encryption Standard Dr. Ibraheem Abdulatief Lecturer, Computer Science Department Al-Obour High Institutes 10,11
  • 2. Simplified Advanced Encryption Standard Simplified Advanced Encryption Standard S-AES Encryption and Decryption S-AES Key Generation S-AES Encryption S-AES Decryption
  • 3. Simplified Advanced Encryption Standard Shift Row Mix Columns Add Round Key 16-bit Plain text 16-bit Cipher text Nibble Substitution Shift Row Add Round Key Nibble Substitution Add Round Key 𝒘𝟐,𝟑 16-bit Key Expand Key 𝒘𝟒,𝟓 Expand Key 𝒘𝟎,𝟏 Round 1 Round 2
  • 4. Simplified Advanced Encryption Standard  Assume: P= 1101 0111 0010 1000  Key0 = w0w1 = 0100 1010 1111 0101  Key1 = w2w3 = 1101 1101 0010 1000  Key2 = w4w5 = 1000 0111 1010 1111
  • 5. Simplified Advanced Encryption Standard Shift Row Mix Columns Add Round Key 16-bit Plain text 16-bit Cipher text Nibble Substitution Shift Row Add Round Key Nibble Substitution Add Round Key 𝒘𝟐,𝟑 16-bit Key Expand Key 𝒘𝟒,𝟓 Expand Key 𝒘𝟎,𝟏 Round 1 Round 2
  • 6. Simplified Advanced Encryption Standard  Round 0  P= 1101 0111 0010 1000  Key0 = 0100 1010 1111 0101  R0= P ⊕ Key0 = 1101 0111 0010 1000 ⊕ 0100 1010 1111 0101 = 1001 1101 1101 1101
  • 7. Simplified Advanced Encryption Standard Shift Row Mix Columns Add Round Key 16-bit Plain text 16-bit Cipher text Nibble Substitution Shift Row Add Round Key Nibble Substitution Add Round Key 𝒘𝟐,𝟑 16-bit Key Expand Key 𝒘𝟒,𝟓 Expand Key 𝒘𝟎,𝟏 Round 1 Round 2
  • 8. Simplified Advanced Encryption Standard  S-AES Encryption Round
  • 9. Simplified Advanced Encryption Standard  S-AES Transformation (Substitution and Shift row)
  • 10. Simplified Advanced Encryption Standard Shift Row Mix Columns Add Round Key 16-bit Plain text 16-bit Cipher text Nibble Substitution Shift Row Add Round Key Nibble Substitution Add Round Key 𝒘𝟐,𝟑 16-bit Key Expand Key 𝒘𝟒,𝟓 Expand Key 𝒘𝟎,𝟏 Round 1 Round 2
  • 11. Simplified Advanced Encryption Standard  Round 1 1) Nibble Substitution :  SubNib(1001 1101 1101 1101)= 0010 1110 1110 1110 2) Shift Row:  Swap 2nd nibble and 4th nibble  ShRow(0010 1110 1110 1110) = 0010 1110 1110 1110 S-Box
  • 12. Simplified Advanced Encryption Standard  S-AES Encryption Round
  • 13. Simplified Advanced Encryption Standard Shift Row Mix Columns Add Round Key 16-bit Plain text 16-bit Cipher text Nibble Substitution Shift Row Add Round Key Nibble Substitution Add Round Key 𝒘𝟐,𝟑 16-bit Key Expand Key 𝒘𝟒,𝟓 Expand Key 𝒘𝟎,𝟏 Round 1 Round 2
  • 14. Simplified Advanced Encryption Standard  S-AES Transformation (Mix Column)
  • 15. Simplified Advanced Encryption Standard  Mix Column Table * 1 2 3 4 5 6 7 8 9 A B C D E F 2 2 4 6 8 A C E 3 1 7 5 B 9 F D 4 4 8 C 3 7 B F 6 2 E A 5 1 D 9 9 9 1 8 2 B 3 A 4 D 5 C 6 F 7 E
  • 16. Simplified Advanced Encryption Standard  Round 1 3) Mix Columns:  MixCol (0010 1110 1110 1110) = 0010 1110 1110 1110 ∗ 1 4 4 1 =  = 2 E E E ∗ 1 4 4 1 = (2∗1⊕E∗4) (E∗1⊕E∗4) (2∗4⊕E∗1) (E∗4⊕E∗1) * 1 2 3 4 5 6 7 8 9 A B C D E F 2 2 4 6 8 A C E 3 1 7 5 B 9 F D 4 4 8 C 3 7 B F 6 2 E A 5 1 D 9 9 9 1 8 2 B 3 A 4 D 5 C 6 F 7 E
  • 17. Simplified Advanced Encryption Standard  = (2⊕D) (E⊕D) (8⊕E) (D⊕E) = (0010⊕1101) (1110⊕1101) (1000⊕1110) (1101⊕1110)  (0010⊕1101) (1110⊕1101) (1000⊕1110) (1101⊕1110) = 1111 0011 0110 0011 = 1111 0110 0011 0011
  • 18. Simplified Advanced Encryption Standard Shift Row Mix Columns Add Round Key 16-bit Plain text 16-bit Cipher text Nibble Substitution Shift Row Add Round Key Nibble Substitution Add Round Key 𝒘𝟐,𝟑 16-bit Key Expand Key 𝒘𝟒,𝟓 Expand Key 𝒘𝟎,𝟏 Round 1 Round 2
  • 19. Simplified Advanced Encryption Standard  Round 1 4) Add round Key1  Key1 = 1101 1101 0010 1000  R1= Key1 ⊕ MixCol(ShRow(SubNib(R0))) = 1101 1101 0010 1000 ⊕ 1111 0110 0011 0011 = 0010 1011 0001 1011
  • 20. Simplified Advanced Encryption Standard Shift Row Mix Columns Add Round Key 16-bit Plain text 16-bit Cipher text Nibble Substitution Shift Row Add Round Key Nibble Substitution Add Round Key 𝒘𝟐,𝟑 16-bit Key Expand Key 𝒘𝟒,𝟓 Expand Key 𝒘𝟎,𝟏 Round 1 Round 2
  • 21. Simplified Advanced Encryption Standard Shift Row Mix Columns Add Round Key 16-bit Plain text 16-bit Cipher text Nibble Substitution Shift Row Add Round Key Nibble Substitution Add Round Key 𝒘𝟐,𝟑 16-bit Key Expand Key 𝒘𝟒,𝟓 Expand Key 𝒘𝟎,𝟏 Round 1 Round 2
  • 22. Simplified Advanced Encryption Standard  S-AES Transformation (Substitution and Shift row)
  • 23. Simplified Advanced Encryption Standard  Round 2 1) Nibble Substitution :  SubNib(0010 1011 0001 1011)= 1010 0011 0100 0011 2) Shift Row:  Swap 2nd nibble and 4th nibble  ShRow(1010 0011 0100 0011) = 1010 0011 0100 0011 S-Box
  • 24. Simplified Advanced Encryption Standard Shift Row Mix Columns Add Round Key 16-bit Plain text 16-bit Cipher text Nibble Substitution Shift Row Add Round Key Nibble Substitution Add Round Key 𝒘𝟐,𝟑 16-bit Key Expand Key 𝒘𝟒,𝟓 Expand Key 𝒘𝟎,𝟏 Round 1 Round 2
  • 25. Simplified Advanced Encryption Standard  Round 2 4) Add round Key2  Key2 = 1000 0111 1010 1111  R2= Key2 ⊕ ShRow(SubNib(R1)) = 1000 0111 1010 1111 ⊕ 1010 0011 0100 0011 = 0010 0100 1110 1100 Ciphertext = 0010 0100 1110 1100
  • 26. Simplified Advanced Encryption Standard Simplified Advanced Encryption Standard S-AES Encryption and Decryption S-AES Key Generation S-AES Encryption S-AES Decryption
  • 27. Simplified Advanced Encryption Standard Shift Row Mix Columns Add Round Key 16-bit Plain text 16-bit Cipher text Nibble Substitution Shift Row Add Round Key Nibble Substitution Add Round Key Inverse Shift Row Inverse Mix Columns Add Round Key 16-bit Plain text 16-bit Cipher text Inverse Nibble Substitution Inverse Shift Row Add Round Key Inverse Nibble Substitution Add Round Key 𝒘𝟐,𝟑 16-bit Key Expand Key 𝒘𝟒,𝟓 Expand Key 𝒘𝟎,𝟏 Round 1 Round 2 Round 1 Round 2
  • 28. Simplified Advanced Encryption Standard Inverse Shift Row Inverse Mix Columns Add Round Key 16-bit Plain text 16-bit Cipher text Inverse Nibble Substitution Inverse Shift Row Add Round Key Inverse Nibble Substitution Add Round Key 𝒘𝟐,𝟑 16-bit Key Expand Key 𝒘𝟒,𝟓 Expand Key 𝒘𝟎,𝟏 Round 1 Round 2
  • 29. Simplified Advanced Encryption Standard  Assume: C= 0010 0100 1110 1100  Key0 = w0w1 = 0100 1010 1111 0101  Key1 = w2w3 = 1101 1101 0010 1000  Key2 = w4w5 = 1000 0111 1010 1111
  • 30. Simplified Advanced Encryption Standard Inverse Shift Row Inverse Mix Columns Add Round Key 16-bit Plain text 16-bit Cipher text Inverse Nibble Substitution Inverse Shift Row Add Round Key Inverse Nibble Substitution Add Round Key 𝒘𝟐,𝟑 16-bit Key Expand Key 𝒘𝟒,𝟓 Expand Key 𝒘𝟎,𝟏 Round 1 Round 2
  • 31. Simplified Advanced Encryption Standard  Key2 = w4w5 = 1000 0111 1010 1111  C= 0010 0100 1110 1100  R0= C ⊕ Key2 = 0010 0100 1110 1100 ⊕ 1000 0111 1010 1111  =1010 0011 0100 0011
  • 32. Simplified Advanced Encryption Standard Inverse Shift Row Inverse Mix Columns Add Round Key 16-bit Plain text 16-bit Cipher text Inverse Nibble Substitution Inverse Shift Row Add Round Key Inverse Nibble Substitution Add Round Key 𝒘𝟐,𝟑 16-bit Key Expand Key 𝒘𝟒,𝟓 Expand Key 𝒘𝟎,𝟏 Round 1 Round 2
  • 33. Simplified Advanced Encryption Standard Inverse Shift Row Inverse Mix Columns Add Round Key 16-bit Plain text 16-bit Cipher text Inverse Nibble Substitution Inverse Shift Row Add Round Key Inverse Nibble Substitution Add Round Key 𝒘𝟐,𝟑 16-bit Key Expand Key 𝒘𝟒,𝟓 Expand Key 𝒘𝟎,𝟏 Round 1 Round 2
  • 34. Simplified Advanced Encryption Standard  Round 1 1) Inverse Shift Row  IShRow(R0)=IShRow(1010 0011 0100 0011)= = 1010 0011 0100 0011 2) Inverse Nibble Sub  ISubNib( 1010 0011 0100 0011 )= = 0010 1011 0001 1011 Inv S-Box
  • 35. Simplified Advanced Encryption Standard Inverse Shift Row Inverse Mix Columns Add Round Key 16-bit Plain text 16-bit Cipher text Inverse Nibble Substitution Inverse Shift Row Add Round Key Inverse Nibble Substitution Add Round Key 𝒘𝟐,𝟑 16-bit Key Expand Key 𝒘𝟒,𝟓 Expand Key 𝒘𝟎,𝟏 Round 1 Round 2
  • 36. Simplified Advanced Encryption Standard 3) Add Round 1 Key  0010 1011 0001 1011 ⊕ Key1 = 0010 1011 0001 1011 ⊕ 1101 1101 0010 1000 =1111 0110 0011 0011
  • 37. Simplified Advanced Encryption Standard Inverse Shift Row Inverse Mix Columns Add Round Key 16-bit Plain text 16-bit Cipher text Inverse Nibble Substitution Inverse Shift Row Add Round Key Inverse Nibble Substitution Add Round Key 𝒘𝟐,𝟑 16-bit Key Expand Key 𝒘𝟒,𝟓 Expand Key 𝒘𝟎,𝟏 Round 1 Round 2
  • 38. Simplified Advanced Encryption Standard  Round 1 4) Inverse Mix Columns :  MixCol (1111 0110 0011 0011) = 1111 0011 0110 0011 ∗ 9 2 2 9 =  = F 3 6 3 ∗ 𝟗 𝟐 𝟐 𝟗 = (F∗9⊕6∗2) (3∗9⊕3∗2) (F∗2⊕6∗9) (3∗2⊕3∗9)  = (E⊕C) (8⊕6) (D⊕3) (6⊕8)  = (1110⊕1100) (1000⊕0110) (1101⊕0011) (0110⊕1000) * 1 2 3 4 5 6 7 8 9 A B C D E F 2 2 4 6 8 A C E 3 1 7 5 B 9 F D 4 4 8 C 3 7 B F 6 2 E A 5 1 D 9 9 9 1 8 2 B 3 A 4 D 5 C 6 F 7 E
  • 39. Simplified Advanced Encryption Standard  (1110⊕1100) (1000⊕0110) (1101⊕0011) (0110⊕1000) = 0010 1110 1110 1110 R1 = 0010 1110 1110 1110
  • 40. Simplified Advanced Encryption Standard Inverse Shift Row Inverse Mix Columns Add Round Key 16-bit Plain text 16-bit Cipher text Inverse Nibble Substitution Inverse Shift Row Add Round Key Inverse Nibble Substitution Add Round Key 𝒘𝟐,𝟑 16-bit Key Expand Key 𝒘𝟒,𝟓 Expand Key 𝒘𝟎,𝟏 Round 1 Round 2
  • 41. Simplified Advanced Encryption Standard Inverse Shift Row Inverse Mix Columns Add Round Key 16-bit Plain text 16-bit Cipher text Inverse Nibble Substitution Inverse Shift Row Add Round Key Inverse Nibble Substitution Add Round Key 𝒘𝟐,𝟑 16-bit Key Expand Key 𝒘𝟒,𝟓 Expand Key 𝒘𝟎,𝟏 Round 1 Round 2
  • 42. Simplified Advanced Encryption Standard  Round 2 1) Inverse Shift Row  IShRow(R1)=IShRow(0010 1110 1110 1110)= = 0010 1110 1110 1110 2) Inverse Nibble Sub  ISubNib( 0010 1110 1110 1110 )= = 1001 1101 1101 1101 Inv S-Box
  • 43. Simplified Advanced Encryption Standard Inverse Shift Row Inverse Mix Columns Add Round Key 16-bit Plain text 16-bit Cipher text Inverse Nibble Substitution Inverse Shift Row Add Round Key Inverse Nibble Substitution Add Round Key 𝒘𝟐,𝟑 16-bit Key Expand Key 𝒘𝟒,𝟓 Expand Key 𝒘𝟎,𝟏 Round 1 Round 2
  • 44. Simplified Advanced Encryption Standard 3) Add Round 2 Key  R2= 1001 1101 1101 1101 ⊕ Key0 = 1001 1101 1101 1101 ⊕ 0100 1010 1111 0101 =1101 0111 0010 1000 Plaintext = 1101 0111 0010 1000 = D7 28
  • 45. Simplified Advanced Encryption Standard www.YourCompany.com © 2020 Companyname PowerPoint Business Theme. All Rights Reserved. THANKS FOR YOUR TIME