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
......@@ -187,7 +187,7 @@ C .Laes_got_t:
pushl %edi
C second column
AES_LAST_ROUND(d,a,b,c)
AES_LAST_ROUND(b,c,d,a)
pushl %edi
C third column
......@@ -195,13 +195,12 @@ C .Laes_got_t:
pushl %edi
C fourth column
AES_LAST_ROUND(b,c,d,a)
AES_LAST_ROUND(d,a,b,c)
movl %edi,%edx
popl %ecx
popl %ebx
popl %eax
xchgl %ebx,%edx
C // S-box substitution
mov $4,%edi
......
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