Commit 3285cc34 authored by Niels Möller's avatar Niels Möller

(nettle_aes_encrypt): Fixed references to

_nettle_aes_encrypt_table. * x86/aes-decrypt.asm
(nettle_aes_decrypt): Fixed references to
_nettle_aes_decrypt_table.

Rev: src/nettle/x86/aes-decrypt.asm:1.18
Rev: src/nettle/x86/aes-encrypt.asm:1.19
parent 15bb509c
......@@ -59,16 +59,16 @@ nettle_aes_decrypt:
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
......@@ -106,7 +106,7 @@ nettle_aes_decrypt:
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
......
......@@ -67,16 +67,16 @@ nettle_aes_encrypt:
.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
......@@ -114,7 +114,7 @@ nettle_aes_encrypt:
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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment