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

(aes_encrypt): Deleted xchgl instruction in final round, by

reordering the second and fourth round.

Rev: src/nettle/x86/aes-encrypt.asm:1.6
parent 5e21039a
No related branches found
No related tags found
No related merge requests found
...@@ -187,7 +187,7 @@ C .Laes_got_t: ...@@ -187,7 +187,7 @@ C .Laes_got_t:
pushl %edi pushl %edi
C second column C second column
AES_LAST_ROUND(d,a,b,c) AES_LAST_ROUND(b,c,d,a)
pushl %edi pushl %edi
C third column C third column
...@@ -195,13 +195,12 @@ C .Laes_got_t: ...@@ -195,13 +195,12 @@ C .Laes_got_t:
pushl %edi pushl %edi
C fourth column C fourth column
AES_LAST_ROUND(b,c,d,a) AES_LAST_ROUND(d,a,b,c)
movl %edi,%edx movl %edi,%edx
popl %ecx popl %ecx
popl %ebx popl %ebx
popl %eax popl %eax
xchgl %ebx,%edx
C // S-box substitution C // S-box substitution
mov $4,%edi mov $4,%edi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment