From c90b962b5f7ba0d218372922cf387f451662f56a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Niels=20M=C3=B6ller?= <nisse@lysator.liu.se>
Date: Tue, 14 May 2002 20:07:02 +0200
Subject: [PATCH] Minor changes..

Rev: src/nettle/x86/aes-encrypt.asm:1.9
---
 x86/aes-encrypt.asm | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/x86/aes-encrypt.asm b/x86/aes-encrypt.asm
index 189060ca..ee1e2fdc 100644
--- a/x86/aes-encrypt.asm
+++ b/x86/aes-encrypt.asm
@@ -51,7 +51,7 @@ aes_encrypt:
 
 	movl	24(%esp), %ebp
 	C What's the right way to set the flags?
-	addl	$0, %ebp
+	cmpl	$0, %ebp
 	jz	.Lencrypt_end
 	
 .Lencrypt_block_loop:
@@ -61,8 +61,8 @@ aes_encrypt:
 	addl	$16, 32(%esp)	C Increment src pointer
 		
 	C FIXME:	Use %esi instead
-	movl	20(%esp),%ebp	C  address of context struct
-	movl	AES_NROUNDS (%ebp),%ebp	C  get number of rounds to do from struct
+	C movl	20(%esp),%ebp	C  address of context struct
+	movl	AES_NROUNDS (%esi),%ebp	C  get number of rounds to do from struct
 
 	subl	$1,%ebp
 	addl	$16,%esi	C  point to next key
-- 
GitLab