diff options
author | Niels Möller <nisse@lysator.liu.se> | 2002-05-15 11:42:05 +0200 |
---|---|---|
committer | Niels Möller <nisse@lysator.liu.se> | 2002-05-15 11:42:05 +0200 |
commit | 09afcaa36218d562d8855809541e37a925134258 (patch) | |
tree | 159b7399b098128e2f4c116a51c6e8360e59bc03 /x86 | |
parent | f94cf773bae323b6a4982d25fcdaa255b7f7df30 (diff) | |
download | nettle-09afcaa36218d562d8855809541e37a925134258.tar.gz |
(aes_encrypt): Use AES_SUBST_BYTE.
Rev: src/nettle/x86/aes-encrypt.asm:1.16
Diffstat (limited to 'x86')
-rw-r--r-- | x86/aes-encrypt.asm | 20 |
1 files changed, 1 insertions, 19 deletions
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 |