Research Article

Compact Implementations of HIGHT Block Cipher on IoT Platforms

Table 5

F0 operation in 8-bit AVR instruction sets.

Input: input data (X)
Output: output data (F0 = X<<<1 XOR X<<<2 XOR X<<<7)

1: MOV TMP, X
2: LSL TMP
3: ADC TMP, ZERO//X<<<1
4: MOV F0, TMP
5: LSL TMP
6: ADC TMP, ZERO//X<<<2
7: EOR F0, TMP//X<<<1 XOR X<<<2
8: LSL TMP
9: ADC TMP, ZERO
10: SWAP TMP//X<<<7
11: EOR F0, TMP//X<<<1 XOR X<<<2 XOR X<<<7