]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
* x86/aes-encrypt.asm (aes_encrypt): Use the AES_LAST_ROUND macro
authorNiels Möller <nisse@lysator.liu.se>
Tue, 14 May 2002 17:15:12 +0000 (19:15 +0200)
committerNiels Möller <nisse@lysator.liu.se>
Tue, 14 May 2002 17:15:12 +0000 (19:15 +0200)
for the first column of the final round.
(aes_encrypt): Similarly for the second column.

Rev: src/nettle/x86/aes-encrypt.asm:1.4

x86/aes-encrypt.asm

index 528f2ee0837e38862b5189e355995a67db329df5..e5dbf6b7f3bc78d49f16efddc305593b93904886 100644 (file)
@@ -181,24 +181,13 @@ C .Laes_got_t:
        jnz     .Laes_encrypt_loop
 
        C last round
-       C first column
 
+       C first column
        AES_LAST_ROUND(a,b,c,d)
        pushl   %edi
 
-       C // second column
-       C d a b c
-       movl    %eax,%edi
-       andl    $0x0000ff00,%edi
-       movl    %ebx,%ebp
-       andl    $0x00ff0000,%ebp
-       orl     %ebp,%edi
-       movl    %ecx,%ebp
-       andl    $0xff000000,%ebp
-       orl     %ebp,%edi
-       movl    %edx,%ebp
-       andl    $0x000000ff,%ebp
-       orl     %ebp,%edi
+       C second column
+       AES_LAST_ROUND(d,a,b,c)
        pushl   %edi
 
        C c d a b