C In these patterns, note that each row, like
C "a,d,c,b" corresponds to one *column* of the
C array _aes_decrypt_table.idx.
- AES_ROUND(_aes_decrypt_table,a,d,c,b)
+ AES_ROUND(_nettle_aes_decrypt_table,a,d,c,b)
pushl %edi C save first on stack
- AES_ROUND(_aes_decrypt_table,b,a,d,c)
+ AES_ROUND(_nettle_aes_decrypt_table,b,a,d,c)
pushl %edi
- AES_ROUND(_aes_decrypt_table,c,b,a,d)
+ AES_ROUND(_nettle_aes_decrypt_table,c,b,a,d)
pushl %edi C save first on stack
- AES_ROUND(_aes_decrypt_table,d,c,b,a)
+ AES_ROUND(_nettle_aes_decrypt_table,d,c,b,a)
movl %edi,%edx
popl %ecx
C inverse S-box substitution
mov $4,%edi
.Lsubst:
- AES_SUBST_BYTE(_aes_decrypt_table)
+ AES_SUBST_BYTE(_nettle_aes_decrypt_table)
decl %edi
jnz .Lsubst
.Lround_loop:
pushl %esi C save this first: we'll clobber it later
- AES_ROUND(_aes_encrypt_table,a,b,c,d)
+ AES_ROUND(_nettle_aes_encrypt_table,a,b,c,d)
pushl %edi C save first on stack
- AES_ROUND(_aes_encrypt_table,b,c,d,a)
+ AES_ROUND(_nettle_aes_encrypt_table,b,c,d,a)
pushl %edi C save first on stack
- AES_ROUND(_aes_encrypt_table,c,d,a,b)
+ AES_ROUND(_nettle_aes_encrypt_table,c,d,a,b)
pushl %edi C save first on stack
- AES_ROUND(_aes_encrypt_table,d,a,b,c)
+ AES_ROUND(_nettle_aes_encrypt_table,d,a,b,c)
movl %edi,%edx
popl %ecx
C S-box substitution
mov $4,%edi
.Lsubst:
- AES_SUBST_BYTE(_aes_encrypt_table)
+ AES_SUBST_BYTE(_nettle_aes_encrypt_table)
decl %edi
jnz .Lsubst