Skip to content
Snippets Groups Projects
Commit 3820c024 authored by Niels Möller's avatar Niels Möller
Browse files

* x86/aes-encrypt.asm (aes_encrypt): Use the AES_LAST_ROUND macro

for the first column of the final round.

Rev: src/nettle/x86/aes-encrypt.asm:1.3
parent 26451079
No related branches found
No related tags found
No related merge requests found
...@@ -180,20 +180,10 @@ C .Laes_got_t: ...@@ -180,20 +180,10 @@ C .Laes_got_t:
decl %ebp decl %ebp
jnz .Laes_encrypt_loop jnz .Laes_encrypt_loop
C // last round C last round
C // first column C first column
C a b c d
movl %eax,%edi AES_LAST_ROUND(a,b,c,d)
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
pushl %edi pushl %edi
C // second column C // second column
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment