- aes_rotword(tmp);
- tmp[0] = pgm_read_byte(aes_sbox+tmp[0]);
- tmp[1] = pgm_read_byte(aes_sbox+tmp[1]);
- tmp[2] = pgm_read_byte(aes_sbox+tmp[2]);
- tmp[3] = pgm_read_byte(aes_sbox+tmp[3]);
- tmp[0] ^= pgm_read_byte(rc_tab+rc);
+ aes_rotword(&(tmp.v32));
+ tmp.v8[0] = pgm_read_byte(aes_sbox+tmp.v8[0]);
+ tmp.v8[1] = pgm_read_byte(aes_sbox+tmp.v8[1]);
+ tmp.v8[2] = pgm_read_byte(aes_sbox+tmp.v8[2]);
+ tmp.v8[3] = pgm_read_byte(aes_sbox+tmp.v8[3]);
+ tmp.v8[0] ^= pgm_read_byte(rc_tab+rc);