Docsity

Advanced Encryption Standard-Computer Security-Lecture Slides, Slides of Computer Security

Partial preview of the text

Download Advanced Encryption Standard-Computer Security-Lecture Slides and more Slides Computer Security in PDF only on Docsity!

Dr. Hanif Durad

2

Lecture Outline  AES selection process  the details of Rijndael – the AES cipher  steps in each round  the key expansion  implementation aspects

5.1.1 Origins^ ^ clear a replacement for DES was needed^ ^ have theoretical attacks that can break it^ ^ have demonstrated exhaustive key search attacks^ ^ can use Triple-DES – but slow, has small blocks^ ^ US NIST issued call for ciphers in 1997^ ^ 15 candidates accepted in Jun 98^ ^ 5 were shortlisted in Aug-99^ ^ Rijndael was selected as the AES in Oct-2000^ ^ issued as FIPS PUB 197 standard in Nov-

Dr. Hanif Durad

3

5.1.2 AES Evaluation Criteria  initial criteria: ^ security – effort for practical cryptanalysis ^ cost – in terms of computational efficiency ^ algorithm & implementation characteristics  final criteria ^ general security ^ ease of software & hardware implementation ^ implementation attacks ^ flexibility (in en/decrypt, keying, other factors)

Dr. Hanif Durad

5

AES Shortlist  after testing and evaluation, shortlist in Aug-99:  MARS (IBM) - complex, fast, high security margin  RC6 (USA) - v. simple, v. fast, low security margin  Rijndael (Belgium) - clean, fast, good security margin^ ^ Algorithm has 1 big problem... unspeakable name Rijndael^ ^ Pronounced like “Rain Doll” or “Rhine Doll”  Serpent (Euro) - slow, clean, v. high security margin  Twofish (USA) - complex, v. fast, high security margin  then subject to further analysis & comment  saw contrast between algorithms with  few complex rounds verses many simple rounds  which refined existing ciphers verses new proposals

6

chap05.pdf , P-2 and Grund_Symmetric-Cryptography.pdf, P-2 5/

The AES Cipher - Rijndael  an^ iterative

rather than

feistel

cipher

^ processes data as block of 4 columns of 4 bytes ^ operates on entire data block in every round  designed to be: ^ resistant against known attacks ^ speed and code compactness on many CPUs ^ design simplicity

Dr. Hanif Durad

8

The AES Cipher- Input Text^ ^ Possible block sizes: 128, 192, 256 bit

Dr. Hanif Durad

9

Grund_Symmetric-Cryptography.pdf, P-

The AES Cipher

^ Key received as input array of 4 rows and Nk columns ^ Nk = 4,6, or 8, parameter which depends key size 128,192or 256 ^ Input key is expanded into an array of 44/52/60 words of32 bits each depending upon key size ^ 4 different words serve as a key for each roundk0^ k

k^

k k1k5 k2k6 k3k

k9k13 k10k14 k11k

w0^ w^

w^

……^

w42^ w

Nk = 4

Nk = 6^

W=?

Nk = 8^

W=?

Steps in Rijndael

Confusion^ Diffusion

Step1: Byte SubstitutionStep2: Shift RowsStep3: Mix CloumnsStep4: Round Key addition

Atul Kahate, P-

Repeat thesefour steps10,12,14 times

Rijndael

^ data block of 4 columns of 4 bytes is state and key isexpanded to array of words ^ has 9/11/13 rounds in which state undergoes:^ ^ byte substitution (1 S-box used on every byte)^ ^ shift rows (permute bytes between groups/columns)^ ^ mix columns (subs using matrix multipy of groups)^ ^ add round key (XOR state with key material)^ ^ view as alternating XOR key & scramble data bytes ^ initial XOR key material (1op.) & incomplete last (3ops.)round (so 10 rounds each of 4 ops.)

Diffusio

Conflicts ?No

Rijndael

Fig.5.

Block Diagram of AES

Image src: DataComm&nw/4e, Forouzanbook

AES Encryption Round

Fig.5.

Byte Substitution (2/4)  Each byte at the input of a round undergoes anon-linear byte substitution according to thefollowing transform:

20

Example 7.3, FRCNS, P-

Byte Substitution (3/4)

^ For a layman it is simple substitution of each byte ^ uses one table of

^16 x^16

bytes containing a permutation

of all 256 8-bit values  each byte of state is replaced by byte indexed by row(left 4-bits) & column (right 4-bits)^ ^ eg. byte {95} is replaced by byte in row 9 column 5^ ^ which has value {2A}  S-box constructed using defined transformation of valuesin GF(

^ designed to be resistant to all known attacks

Dr. Hanif Durad

21