From: Niels Möller Date: Wed, 15 May 2002 14:18:41 +0000 (+0200) Subject: (aes_decrypt): Got rid if the xchgl instruction after the final X-Git-Tag: nettle_1.6_release_20021003~143 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3f79e3c021c4ca74d3b2156a5435e1d1dc31f98e;p=thirdparty%2Fnettle.git (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 --- 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