summaryrefslogtreecommitdiff
path: root/x86
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2002-05-15 11:42:05 +0200
committerNiels Möller <nisse@lysator.liu.se>2002-05-15 11:42:05 +0200
commit09afcaa36218d562d8855809541e37a925134258 (patch)
tree159b7399b098128e2f4c116a51c6e8360e59bc03 /x86
parentf94cf773bae323b6a4982d25fcdaa255b7f7df30 (diff)
downloadnettle-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.asm20
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