From 02a0b85fa9cc62a6ab31d1781d652822d5a3bb9b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Niels=20M=C3=B6ller?= <nisse@lysator.liu.se>
Date: Wed, 15 May 2002 16:12:29 +0200
Subject: [PATCH] (aes_decrypt): Deleted first xchgl instruction into,
 permuting the AES_ROUND calls instead.

Rev: src/nettle/x86/aes-decrypt.asm:1.13
---
 x86/aes-decrypt.asm | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/x86/aes-decrypt.asm b/x86/aes-decrypt.asm
index 42b41167..6faec7a6 100644
--- a/x86/aes-decrypt.asm
+++ b/x86/aes-decrypt.asm
@@ -57,18 +57,18 @@ aes_decrypt:
 	pushl	%esi		C  save this first: we'll clobber it later
 
 	C Why???
-	xchgl	%ebx,%edx
+	C xchgl	%ebx,%edx
 
-	AES_ROUND(_aes_decrypt_table,a,b,c,d)
+	AES_ROUND(_aes_decrypt_table,a,d,c,b)
 	pushl	%edi		C  save first on stack
 
-	AES_ROUND(_aes_decrypt_table,d,a,b,c)
+	AES_ROUND(_aes_decrypt_table,b,a,d,c)
 	pushl	%edi
 
-	AES_ROUND(_aes_decrypt_table,c,d,a,b)
+	AES_ROUND(_aes_decrypt_table,c,b,a,d)
 	pushl	%edi		C  save first on stack
 
-	AES_ROUND(_aes_decrypt_table,b,c,d,a)
+	AES_ROUND(_aes_decrypt_table,d,c,b,a)
 
 	movl	%edi,%edx
 	popl	%ecx
-- 
GitLab