Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
LSH
lsh
Commits
7082938b
Commit
7082938b
authored
Sep 14, 2008
by
Niels Möller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed next-but-last round of the unrolled loop.
Rev: nettle/x86_64/aes-encrypt-internal.asm:1.6
parent
5e4389f0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
7 deletions
+19
-7
nettle/x86_64/aes-encrypt-internal.asm
nettle/x86_64/aes-encrypt-internal.asm
+19
-7
No files found.
nettle/x86_64/aes-encrypt-internal.asm
View file @
7082938b
...
...
@@ -115,23 +115,35 @@ PROLOGUE(_nettle_aes_encrypt)
decl
COUNT
jnz
.Lround_loop
C
last
round
C
last
two
round
s
AES_FINAL_ROUND
(
SA
,
SB
,
SC
,
SD
,
TABLE
,
TA
,
TMP
)
AES_FINAL_ROUND
(
SB
,
SC
,
SD
,
SA
,
TABLE
,
TB
,
TMP
)
AES_FINAL_ROUND
(
SC
,
SD
,
SA
,
SB
,
TABLE
,
TC
,
TMP
)
AES_FINAL_ROUND
(
SD
,
SA
,
SB
,
SC
,
TABLE
,
TD
,
TMP
)
AES_ROUND
(
TABLE
,
SA
,
SB
,
SC
,
SD
,
TA
,
TMP
)
xorl
(
KEY
),
TA
AES_ROUND
(
TABLE
,
SB
,
SC
,
SD
,
SA
,
TB
,
TMP
)
xorl
4
(
KEY
),
TB
AES_ROUND
(
TABLE
,
SC
,
SD
,
SA
,
SB
,
TC
,
TMP
)
xorl
8
(
KEY
),
TC
AES_ROUND
(
TABLE
,
SD
,
SA
,
SB
,
SC
,
TD
,
TMP
)
xorl
12
(
KEY
),
TD
AES_FINAL_ROUND
(
TA
,
TB
,
TC
,
TD
,
TABLE
,
SA
,
TMP
)
AES_FINAL_ROUND
(
TB
,
TC
,
TD
,
TA
,
TABLE
,
SB
,
TMP
)
AES_FINAL_ROUND
(
TC
,
TD
,
TA
,
TB
,
TABLE
,
SC
,
TMP
)
AES_FINAL_ROUND
(
TD
,
TA
,
TB
,
TC
,
TABLE
,
SD
,
TMP
)
C
S
-
box
substitution
mov
$
3
,
COUNT
.Lsubst:
AES_SUBST_BYTE
(
T
A
,
T
B
,
T
C
,
T
D
,
TABLE
,
TMP
)
AES_SUBST_BYTE
(
S
A
,
S
B
,
S
C
,
S
D
,
TABLE
,
TMP
)
decl
COUNT
jnz
.Lsubst
C
Add
last
subkey
,
and
store
encrypted
data
AES_STORE
(
T
A
,
T
B
,
T
C
,
T
D
,
KEY
,
DS
T
)
AES_STORE
(
S
A
,
S
B
,
S
C
,
S
D
,
KEY
,
DS
T
)
add
$
16
,
DS
T
decl
FRAME_COUNT
...
...
Write
Preview
Markdown
is supported
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