Skip to content
Snippets Groups Projects
Commit 5e21039a 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.
(aes_encrypt): Similarly for the third and fourth column.

Rev: src/nettle/ChangeLog:1.88
Rev: src/nettle/x86/aes-encrypt.asm:1.5
parent e50baece
No related branches found
No related tags found
No related merge requests found
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
* x86/aes-encrypt.asm (aes_encrypt): Use the AES_LAST_ROUND macro * x86/aes-encrypt.asm (aes_encrypt): Use the AES_LAST_ROUND macro
for the first column of the final round. for the first column of the final round.
(aes_encrypt): Similarly for the second column.
(aes_encrypt): Similarly for the third and fourth column.
* x86/machine.m4 (AES_LAST_ROUND): New macro. * x86/machine.m4 (AES_LAST_ROUND): New macro.
......
...@@ -190,35 +190,14 @@ C .Laes_got_t: ...@@ -190,35 +190,14 @@ C .Laes_got_t:
AES_LAST_ROUND(d,a,b,c) AES_LAST_ROUND(d,a,b,c)
pushl %edi pushl %edi
C c d a b C third column
C // third column AES_LAST_ROUND(c,d,a,b)
movl %eax,%edi
andl $0x00ff0000,%edi
movl %ebx,%ebp
andl $0xff000000,%ebp
orl %ebp,%edi
movl %ecx,%ebp
andl $0x000000ff,%ebp
orl %ebp,%edi
movl %edx,%ebp
andl $0x0000ff00,%ebp
orl %ebp,%edi
pushl %edi pushl %edi
C // fourth column C fourth column
C b c d a AES_LAST_ROUND(b,c,d,a)
movl %eax,%edi
andl $0xff000000,%edi
movl %ebx,%ebp
andl $0x000000ff,%ebp
orl %ebp,%edi
movl %ecx,%ebp
andl $0x0000ff00,%ebp
orl %ebp,%edi
movl %edx,%ebp
andl $0x00ff0000,%ebp
orl %ebp,%edi
movl %edi,%edx movl %edi,%edx
popl %ecx popl %ecx
popl %ebx popl %ebx
popl %eax popl %eax
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment