22.01.2015 Views

AES Guest Lecturer

AES Guest Lecturer

AES Guest Lecturer

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>AES</strong> Algorithm<br />

AddRoundKey<br />

• The state is XORed into the expanded key Nr +<br />

1 times.<br />

• This is the same as adding the expanded key to<br />

the state Nr+1 times in GF(2 8 )<br />

– in GF(2 8 ) adding two numbers together is the same<br />

as XORing them.<br />

void AddRoundKey(byte[][] state) {<br />

for (int c = 0; c < Nb; c++)<br />

for (int r = 0; r < 4; r++)<br />

state[r][c] = state[r][c] ˆ w[wCount++];}<br />

global counter

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

Saved successfully!

Ooh no, something went wrong!