Skip to content
Snippets Groups Projects
Commit 49c91fe6 authored by Niels Möller's avatar Niels Möller
Browse files

(aes_decrypt): Deleted first xchgl instruction into, permuting the

AES_ROUND calls instead.
(aes_decrypt): Likewise for the final round.

Rev: src/nettle/x86/aes-decrypt.asm:1.14
parent 02a0b85f
No related branches found
No related tags found
No related merge requests found
......@@ -56,9 +56,6 @@ aes_decrypt:
.Lround_loop:
pushl %esi C save this first: we'll clobber it later
C Why???
C xchgl %ebx,%edx
AES_ROUND(_aes_decrypt_table,a,d,c,b)
pushl %edi C save first on stack
......@@ -85,21 +82,18 @@ aes_decrypt:
decl %ebp
jnz .Lround_loop
C Foo?
xchgl %ebx,%edx
C last round
AES_FINAL_ROUND(a,b,c,d)
AES_FINAL_ROUND(a,d,c,b)
pushl %edi
AES_FINAL_ROUND(b,c,d,a)
AES_FINAL_ROUND(d,c,b,a)
pushl %edi
AES_FINAL_ROUND(c,d,a,b)
AES_FINAL_ROUND(c,b,a,d)
pushl %edi
AES_FINAL_ROUND(d,a,b,c)
AES_FINAL_ROUND(b,a,d,c)
movl %edi,%edx
popl %ecx
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment