Skip to main content
. 2019 Jan 29;19(3):556. doi: 10.3390/s19030556

Table 3.

Assembly code for AES Algorithm.

1 XD, X1:X0 = LD.D (G7)
YD, Y1:Y0 = LD.D (G7++[#2])
2 NOP
3 NOP
4 XA, G0 = XOR (G0, X0)
XM, G1 = XOR (G1, X1)
XA, G2 = XOR (G2, Y0)
XM, G3 = XOR (G3, Y1)
XA, G1:G0 = AESSHF (G1:G0, G3:G2)
5 YA, G3:G2 = AESSHF (G3:G2, G1:G0)
Loop XD, X1:X0 = LD.D (G7)
YD, Y1:Y0 = LD.D (G7++[#2])
6 XA, G0 = AESSUBMIX (G0)
YA, G1 = AESSUBMIX (G1)
7 XA, G2 = AESSUBMIX (G2)
YA, G3 = AESSUBMIX (G3)
8 XA, G0 = XOR (G0, X0)
XM, G1 = XOR (G1, X1)
9 YA, G2 = XOR (G2, Y0)
End YM, G3 = XOR (G3, Y1)