]> 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:15:14 +0000 (16:15 +0200)
committerNiels Möller <nisse@lysator.liu.se>
Wed, 15 May 2002 14:15:14 +0000 (16:15 +0200)
AES_ROUND calls instead.
(aes_decrypt): Likewise for the final round.

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

x86/aes-decrypt.asm

index 6faec7a6db6a5646328b1a66e7a3d12c0573291b..09eba870d1bf3c1ca78029c27b6564f04280f715 100644 (file)
@@ -56,9 +56,6 @@ aes_decrypt:
 .Lround_loop:
        pushl   %esi            C  save this first: we'll clobber it later
 
-       C Why???
-       C xchgl %ebx,%edx
-
        AES_ROUND(_aes_decrypt_table,a,d,c,b)
        pushl   %edi            C  save first on stack
 
@@ -85,21 +82,18 @@ aes_decrypt:
        decl    %ebp
        jnz     .Lround_loop
 
-       C Foo?
-       xchgl   %ebx,%edx
-
        C last round
 
-       AES_FINAL_ROUND(a,b,c,d)
+       AES_FINAL_ROUND(a,d,c,b)
        pushl   %edi
 
-       AES_FINAL_ROUND(b,c,d,a)
+       AES_FINAL_ROUND(d,c,b,a)
        pushl   %edi
 
-       AES_FINAL_ROUND(c,d,a,b)
+       AES_FINAL_ROUND(c,b,a,d)
        pushl   %edi
 
-       AES_FINAL_ROUND(d,a,b,c)
+       AES_FINAL_ROUND(b,a,d,c)
        
        movl    %edi,%edx
        popl    %ecx