Research Article

Novel Shuffling Countermeasure for Advanced Encryption Standard (AES) against Profiled Attack in Mobile Multimedia Services

Listing 2

Assembly code for the novel countermeasure.
1; OUT[i] = Sbox[IN[i]]
2 movw r26, r22
3 movw r28, r24
4 ld  r30, Y+
5 movw r24, r28
6 ldi  r31, 0x00
7 subi  r30, 0xF6
8 sbci  r31, 0xDF
9 ld  r20, Z