Skip to content
Snippets Groups Projects
Commit e50baece 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.
(aes_encrypt): Similarly for the second column.

Rev: src/nettle/x86/aes-encrypt.asm:1.4
parent b8430669
Branches
Tags
No related merge requests found
...@@ -181,24 +181,13 @@ C .Laes_got_t: ...@@ -181,24 +181,13 @@ C .Laes_got_t:
jnz .Laes_encrypt_loop jnz .Laes_encrypt_loop
C last round C last round
C first column
C first column
AES_LAST_ROUND(a,b,c,d) AES_LAST_ROUND(a,b,c,d)
pushl %edi pushl %edi
C // second column C second column
C d a b c AES_LAST_ROUND(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
pushl %edi pushl %edi
C c d a b C c d a b
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment