diff options
author | Niels Möller <nisse@lysator.liu.se> | 2002-05-15 16:18:41 +0200 |
---|---|---|
committer | Niels Möller <nisse@lysator.liu.se> | 2002-05-15 16:18:41 +0200 |
commit | 3f79e3c021c4ca74d3b2156a5435e1d1dc31f98e (patch) | |
tree | 716a2e1a11dcc2c37c58cefcbf4f4dddc0096e25 /x86 | |
parent | 49c91fe653d7f937c193b769f324d100196df591 (diff) | |
download | nettle-3f79e3c021c4ca74d3b2156a5435e1d1dc31f98e.tar.gz |
(aes_decrypt): Got rid if the xchgl instruction after the final
round, folding it into the final round.
Rev: src/nettle/x86/aes-decrypt.asm:1.15
Diffstat (limited to 'x86')
-rw-r--r-- | x86/aes-decrypt.asm | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/x86/aes-decrypt.asm b/x86/aes-decrypt.asm index 09eba870..85c08413 100644 --- a/x86/aes-decrypt.asm +++ b/x86/aes-decrypt.asm @@ -87,19 +87,18 @@ aes_decrypt: AES_FINAL_ROUND(a,d,c,b) pushl %edi - AES_FINAL_ROUND(d,c,b,a) + AES_FINAL_ROUND(b,a,d,c) pushl %edi AES_FINAL_ROUND(c,b,a,d) pushl %edi - AES_FINAL_ROUND(b,a,d,c) + AES_FINAL_ROUND(d,c,b,a) movl %edi,%edx popl %ecx popl %ebx popl %eax - xchgl %ebx,%edx C inverse S-box substitution mov $4,%edi |