]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
(aes_decrypt): Got rid if the xchgl instruction after the final
authorNiels Möller <nisse@lysator.liu.se>
Wed, 15 May 2002 14:18:41 +0000 (16:18 +0200)
committerNiels Möller <nisse@lysator.liu.se>
Wed, 15 May 2002 14:18:41 +0000 (16:18 +0200)
round, folding it into the final round.

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

x86/aes-decrypt.asm

index 09eba870d1bf3c1ca78029c27b6564f04280f715..85c08413a96e67eb988cbdbd23de27a75c6d373a 100644 (file)
@@ -87,19 +87,18 @@ aes_decrypt:
        AES_FINAL_ROUND(a,d,c,b)
        pushl   %edi
 
-       AES_FINAL_ROUND(d,c,b,a)
+       AES_FINAL_ROUND(b,a,d,c)
        pushl   %edi
 
        AES_FINAL_ROUND(c,b,a,d)
        pushl   %edi
 
-       AES_FINAL_ROUND(b,a,d,c)
+       AES_FINAL_ROUND(d,c,b,a)
        
        movl    %edi,%edx
        popl    %ecx
        popl    %ebx
        popl    %eax
-       xchgl   %ebx,%edx
 
        C inverse S-box substitution
        mov     $4,%edi