From: Niels Möller Date: Wed, 15 May 2002 09:42:05 +0000 (+0200) Subject: (aes_encrypt): Use AES_SUBST_BYTE. X-Git-Tag: nettle_1.6_release_20021003~150 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=09afcaa36218d562d8855809541e37a925134258;p=thirdparty%2Fnettle.git (aes_encrypt): Use AES_SUBST_BYTE. Rev: src/nettle/x86/aes-encrypt.asm:1.16 --- diff --git a/x86/aes-encrypt.asm b/x86/aes-encrypt.asm index f8487c31..32b266ad 100644 --- a/x86/aes-encrypt.asm +++ b/x86/aes-encrypt.asm @@ -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