]> 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:10:54 +0000 (19:10 +0200)
committerNiels Möller <nisse@lysator.liu.se>
Tue, 14 May 2002 17:10:54 +0000 (19:10 +0200)
for the first column of the final round.

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

x86/aes-encrypt.asm

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