Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Wim Lewis
nettle
Commits
09afcaa3
Commit
09afcaa3
authored
May 15, 2002
by
Niels Möller
Browse files
(aes_encrypt): Use AES_SUBST_BYTE.
Rev: src/nettle/x86/aes-encrypt.asm:1.16
parent
f94cf773
Changes
1
Hide whitespace changes
Inline
Side-by-side
x86/aes-encrypt.asm
View file @
09afcaa3
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment