Cloud Security Lecture 4A
Cloud Security Lecture 4A
Cloud Security Lecture 4A
Mohamed Loey
Advanced Encryption Standard
AES Encryption
AES Decryption
DES vs AES
Advantages of AES
❑ The Advanced Encryption Standard (AES) was published by the
National Institute of Standards and Technology (NIST) in 2001.
❑ Simplicity.
Advanced Encryption Standard
AES Encryption
AES Decryption
DES vs AES
Advantages of AES
❑ Key = Thats my Kung Fu (16 ASCII characters, 1byte each)
❑ Key in Hex(128bits):54 68 61 74 73 20 6D 79 20 4B 75 6E 67 20 46 75
(32 Hex characters)
❑ w[0]= (54,68,61,74)
❑ w[1]= (73,20,6D,79)
❑ w[2]= (20,4B,75,6E)
❑ w[3]= (67,20,46,75)
❑ g(w[3])
Key : 54 68 61 74 73 20 6D 79 20 4B 75 6E 67 20 46 75
❑ Function g
❑ w[3]= (67,20,46,75)
❑ g(w[3])
❑ j= Round iteration
❑ w[0]= (54,68,61,74)
❑ g(w[3])= (B6,5A,9D,85)
❑ w[6]=w[5]⊕w[2]= (B1,59,E4,E6)
❑ w[7]=w[6]⊕w[3]= (D6,79,A2,93)
AES Encryption
AES Decryption
DES vs AES
Advantages of AES
❑ Plain text in English : Two One Nine Two ( 16 ASCII characters)
❑ M = 54 77 6F 20 4F 6E 65 20 4E 69 6E 65 20 54 77 6F
❑ 𝑅0 = 54 68 61 74 73 20 6D 79 20 4B 75 6E 67 20 46 75
❑ Byte 6E is
substituted
by entry of
S-Box in row
6 and
column E
,i.e. by 9F
❑ Substitution transformation
1) Round1,Substitution Bytes:
❑ Current State Matrix New State Matrix
❑ This linear mixing step causes diffusion of the bits over multiple rounds
❑ AES Encryption Round
❑ Mix column transformation
3) Round1, Mix Column
0001 0111
Solve : 02 • D4 , 03 • BF
❑ AES Encryption Round
4) Round 1, Add Round key
❑ Round1:E2 32 FC F1 91 12 91 88 B1 59 E4 E6 D6 79 A2 93
⊕ =
❑ Round 2
❑ Round 9
❑ Round 10
❑ ciphertext:29 C3 50 5F 57 14 20 F6 40 22 99 B3 1A 02 D7 3A
Advanced Encryption Standard
AES Encryption
AES Decryption
DES vs AES
Advantages of AES
Advanced Encryption Standard
AES Encryption
AES Decryption
DES vs AES
Advantages of AES
DES AES
Date 1977 2001
Block Size 64 128
Key Size 56 128, 192, 256
Number of Rounds 16 10, 11, 13
Design open Open
Encryption primitives Substitution, Permutation Substitution, Shift, Mixing
Cryptographic primitives Confusion, diffusion Confusion, diffusion
Advanced Encryption Standard
AES Encryption
AES Decryption
DES vs AES
Advantages of AES
❑ The key is much stronger due to the key length