]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
(aes_decrypt): Deleted first xchgl instruction into, permuting the
authorNiels Möller <nisse@lysator.liu.se>
Wed, 15 May 2002 14:12:29 +0000 (16:12 +0200)
committerNiels Möller <nisse@lysator.liu.se>
Wed, 15 May 2002 14:12:29 +0000 (16:12 +0200)
AES_ROUND calls instead.

Rev: src/nettle/x86/aes-decrypt.asm:1.13

x86/aes-decrypt.asm

index 42b41167e4161eeff35be46699f1e85cc4033cf8..6faec7a6db6a5646328b1a66e7a3d12c0573291b 100644 (file)
@@ -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