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
Brian Smith
nettle
Commits
72de3727
Commit
72de3727
authored
May 14, 2002
by
Niels Möller
Browse files
* x86/aes-encrypt.asm (aes_encrypt): Use AES_STORE.
Rev: src/nettle/x86/aes-encrypt.asm:1.7
parent
99fb77a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
x86/aes-encrypt.asm
View file @
72de3727
...
...
@@ -202,7 +202,7 @@ C .Laes_got_t:
popl
%
ebx
popl
%
eax
C
//
S
-
box
substitution
C
S
-
box
substitution
mov
$
4
,
%
edi
.Lsubst:
movl
%
eax
,
%
ebp
...
...
@@ -228,21 +228,15 @@ C .Laes_got_t:
decl
%
edi
jnz
.Lsubst
C
.Laes_got_tlast
:
xorl
(
%
esi
),
%
eax
C
add
last
key
to
plaintext
xorl
4
(
%
esi
),
%
ebx
xorl
8
(
%
esi
),
%
ecx
xorl
12
(
%
esi
),
%
edx
C
.Laes_got_result
:
C
//
store
encrypted
data
back
to
caller
'
s
buffer
C
Add
last
subkey
,
and
store
encrypted
data
movl
28
(
%
esp
),
%
edi
movl
%
eax
,(
%
edi
)
movl
%
ebx
,
4
(
%
edi
)
movl
%
ecx
,
8
(
%
edi
)
movl
%
edx
,
12
(
%
edi
)
AES_STORE
(
%
esi
,
%
edi
)
addl
$
16
,
28
(
%
esp
)
C
Increment
destination
pointer
subl
$
16
,
24
(
%
esp
)
subl
$
16
,
24
(
%
esp
)
C
Length
C
NOTE
:
Will
loop
forever
if
input
data
is
not
an
C
integer
number
of
bl
ocks.
jnz
.Lencrypt_block_loop
.Lencrypt_end:
...
...
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