From cba53182d4dac3f63a8ce310a3a0b56f7d93fc1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20M=C3=B6ller?= <nisse@lysator.liu.se> Date: Tue, 14 May 2002 19:27:19 +0200 Subject: [PATCH] (aes_encrypt): Deleted xchgl instruction in final round, by reordering the second and fourth round. Rev: src/nettle/x86/aes-encrypt.asm:1.6 --- x86/aes-encrypt.asm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 -- GitLab