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
...@@ -114,25 +114,7 @@ aes_encrypt: ...@@ -114,25 +114,7 @@ aes_encrypt:
C S-box substitution C S-box substitution
mov $4,%edi mov $4,%edi
.Lsubst: .Lsubst:
movl %eax,%ebp AES_SUBST_BYTE(_aes_encrypt_table)
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
decl %edi decl %edi
jnz .Lsubst jnz .Lsubst
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment