22.01.2015 Views

AES Guest Lecturer

AES Guest Lecturer

AES Guest Lecturer

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>AES</strong> Algorithm - MixColumns<br />

a ’ 0<br />

a ’ 1<br />

a ’ 2<br />

=<br />

02 03 01 01<br />

01 02 03 01<br />

01 01 02 03<br />

a 0<br />

a 1<br />

a 2<br />

a ’ 0 = 2a 0 ⨁ 3a 1 ⨁ a 2 ⨁ a 3<br />

a ’ 1 = a 0 ⨁ 2a 1 ⨁3a 2 ⨁a 3<br />

a ’ 2 = a 0 ⨁ a 1 ⨁ 2a 2 ⨁ 3a 3<br />

a ’ 3<br />

03 01 01 02<br />

a 3<br />

a ’ 3 = 3a 0 ⨁a 1 ⨁ a 2 ⨁ 2a 3<br />

Addition is easy in GF(2 8 ) : Addition is just the XOR operation<br />

Multiplication by 1 is easy in GF(2 8 ) : Multiplication by one is the identity<br />

Multiplication by 2 in GF(2 8 ) takes some work:<br />

. If multiplying by a value < 0x80 just shift all the bits left by 1<br />

. If multiplying by a value ≥ 0x80 shift left by 1 and XOR with 0x1b<br />

. This prevents overflow and keeps the values within range<br />

To Multiply by 3 in GF(2 8 ) : a * 03 = a * (02 + 01) = (a * 02) ⨁ (a * 01)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!