From: Niels Möller Date: Tue, 14 May 2002 17:27:19 +0000 (+0200) Subject: (aes_encrypt): Deleted xchgl instruction in final round, by X-Git-Tag: nettle_1.6_release_20021003~194 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cba53182d4dac3f63a8ce310a3a0b56f7d93fc1e;p=thirdparty%2Fnettle.git (aes_encrypt): Deleted xchgl instruction in final round, by reordering the second and fourth round. Rev: src/nettle/x86/aes-encrypt.asm:1.6 --- diff --git a/x86/aes-encrypt.asm b/x86/aes-encrypt.asm index fddf0a16..a76ec156 100644 --- a/x86/aes-encrypt.asm +++ b/x86/aes-encrypt.asm @@ -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