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

(aes_encrypt): Use AES_SUBST_BYTE.

Rev: src/nettle/x86/aes-encrypt.asm:1.16
parent f94cf773
No related branches found
No related tags found
No related merge requests found
......@@ -114,25 +114,7 @@ aes_encrypt:
C S-box substitution
mov $4,%edi
.Lsubst:
movl %eax,%ebp
andl $0x000000ff,%ebp
movb AES_SBOX + _aes_encrypt_table (%ebp),%al
roll $8,%eax
movl %ebx,%ebp
andl $0x000000ff,%ebp
movb AES_SBOX + _aes_encrypt_table (%ebp),%bl
roll $8,%ebx
movl %ecx,%ebp
andl $0x000000ff,%ebp
movb AES_SBOX + _aes_encrypt_table (%ebp),%cl
roll $8,%ecx
movl %edx,%ebp
andl $0x000000ff,%ebp
movb AES_SBOX + _aes_encrypt_table (%ebp),%dl
roll $8,%edx
AES_SUBST_BYTE(_aes_encrypt_table)
decl %edi
jnz .Lsubst
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment