From 861def130c0b12ffeab48a196c67ec1b64be8f61 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Niels=20M=C3=B6ller?= <nisse@lysator.liu.se>
Date: Tue, 26 Oct 2004 21:10:33 +0200
Subject: [PATCH] Use movzbl when extending %cl to 32 bits.

Rev: src/nettle/x86/arcfour-crypt.asm:1.11
---
 x86/arcfour-crypt.asm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/x86/arcfour-crypt.asm b/x86/arcfour-crypt.asm
index 74dd7763..ee1e23e0 100644
--- a/x86/arcfour-crypt.asm
+++ b/x86/arcfour-crypt.asm
@@ -72,7 +72,7 @@ C	andl	$0xff, %ebx
 	movb    %ch, (%ebp, %eax)	C  S[i] = sj
 	movb	%cl, (%ebp, %ebx)	C  S[j] = si
 	addb    %ch, %cl
-	xorb    %ch, %ch		C  Clear, so it can be used
+	movzbl  %cl, %ecx		C  Clear, so it can be used
 					C  for indexing.
 	movb    (%ebp, %ecx), %cl
 	xorb    (%esi), %cl
-- 
GitLab