]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
Use movzbl when extending %cl to 32 bits.
authorNiels Möller <nisse@lysator.liu.se>
Tue, 26 Oct 2004 19:10:33 +0000 (21:10 +0200)
committerNiels Möller <nisse@lysator.liu.se>
Tue, 26 Oct 2004 19:10:33 +0000 (21:10 +0200)
Rev: src/nettle/x86/arcfour-crypt.asm:1.11

x86/arcfour-crypt.asm

index 74dd77634b9f7cf3317b931628e63b818b8bfa62..ee1e23e0f6476390d22e495d2a96c982192c8586 100644 (file)
@@ -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