Commit 09afcaa3 authored by Niels Möller's avatar Niels Möller

(aes_encrypt): Use AES_SUBST_BYTE.

Rev: src/nettle/x86/aes-encrypt.asm:1.16
parent f94cf773
......@@ -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
......
Markdown is supported
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