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
LSH
lsh
Commits
537ab979
Commit
537ab979
authored
May 14, 2002
by
Niels Möller
Browse files
* x86/aes-encrypt.asm (aes_encrypt): Use AES_LOAD macro.
Rev: src/nettle/x86/aes-encrypt.asm:1.8
parent
9d8650dd
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/nettle/x86/aes-encrypt.asm
View file @
537ab979
...
...
@@ -55,20 +55,11 @@ aes_encrypt:
jz
.Lencrypt_end
.Lencrypt_block_loop:
movl
32
(
%
esp
),
%
esi
C
address
of
plaintext
movl
(
%
esi
),
%
eax
C
load
plaintext
into
registers
movl
4
(
%
esi
),
%
ebx
movl
8
(
%
esi
),
%
ecx
movl
12
(
%
esi
),
%
edx
addl
$
16
,
32
(
%
esp
)
C
Increment
src
pointer
C
.Laes_got_plain
:
movl
20
(
%
esp
),
%
esi
C
address
of
context
struct
ctx
xorl
(
%
esi
),
%
eax
C
add
first
key
to
plaintext
xorl
4
(
%
esi
),
%
ebx
xorl
8
(
%
esi
),
%
ecx
xorl
12
(
%
esi
),
%
edx
C
.Laes_xored_initial
:
movl
32
(
%
esp
),
%
ebp
C
address
of
plaintext
AES_LOAD
(
%
esi
,
%
ebp
)
addl
$
16
,
32
(
%
esp
)
C
Increment
src
pointer
C
FIXME
:
Use
%
esi
instead
movl
20
(
%
esp
),
%
ebp
C
address
of
context
struct
movl
AES_NROUNDS
(
%
ebp
),
%
ebp
C
get
number
of
rounds
to
do
from
struct
...
...
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