Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
N
nettle
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Marcus Hoffmann
nettle
Commits
b076a849
Commit
b076a849
authored
23 years ago
by
Niels Möller
Browse files
Options
Downloads
Patches
Plain Diff
(_aes_crypt): Unrolled source loop.
Rev: src/nettle/sparc/aes.asm:1.111
parent
59086f67
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
sparc/aes.asm
+95
-3
95 additions, 3 deletions
sparc/aes.asm
with
95 additions
and
3 deletions
sparc/aes.asm
+
95
−
3
View file @
b076a849
...
@@ -63,6 +63,24 @@ define(t1, %o1)
...
@@ -63,6 +63,24 @@ define(t1, %o1)
define
(
t2
,
%
o2
)
define
(
t2
,
%
o2
)
define
(
t3
,
%
o3
)
define
(
t3
,
%
o3
)
C
AES_LOAD
(
i
)
C
Get
one
word
of
input
,
XOR
with
first
subkey
,
store
in
wtxt
define
(
<
AES_LOAD
>
,
<
ldub
[
src
+
$
1
],
t0
ldub
[
src
+
$
1
+
1
],
t1
sll
t1
,
8
,
t1
or
t0
,
t1
,
t0
ldub
[
src
+
$
1
+
2
],
t2
sll
t2
,
16
,
t2
or
t0
,
t2
,
t0
ldub
[
src
+
$
1
+
3
],
t1
sll
t1
,
24
,
t1
or
t0
,
t1
,
t0
ld
[
key
+
$
1
],
t2
xor
t0
,
t2
,
t0
st
t0
,
[
wtxt
+
$
1
]
>
)
dnl
C
AES_ROUND
(
i
)
C
AES_ROUND
(
i
)
C
Compute
one
word
in
the
round
function.
C
Compute
one
word
in
the
round
function.
C
Input
in
wtxt
,
output
stored
in
tmp
+
i.
C
Input
in
wtxt
,
output
stored
in
tmp
+
i.
...
@@ -187,7 +205,79 @@ _aes_crypt:
...
@@ -187,7 +205,79 @@ _aes_crypt:
!
delay
slot
!
delay
slot
add
src
,
8
,
%
g1
add
src
,
8
,
%
g1
.Lsource_loop:
C
AES_LOAD
(
0
)
!
i
=
0
C
AES_LOAD
(
4
)
!
i
=
1
C
AES_LOAD
(
8
)
!
i
=
2
C
AES_LOAD
(
12
)
!
i
=
3
C
add
src
,
16
,
src
C
.Lsource_loop
:
C
Begin
loop
C
i
=
0
ldub
[
src
+
3
],
t3
ldub
[
src
+
2
],
t2
sll
t3
,
24
,
t3
ldub
[
src
+
1
],
t1
sll
t2
,
16
,
t2
or
t3
,
t2
,
t3
ldub
[
src
],
t0
sll
t1
,
8
,
t1
!
Get
subkey
ld
[
src
+%
g2
],
t2
or
t3
,
t1
,
t3
or
t3
,
t0
,
t3
xor
t3
,
t2
,
t3
C
cmp
src
,
%
g1
st
t3
,
[
src
+%
g3
]
C
bl
eu
.Lsource_loop
add
src
,
4
,
src
C
i
=
1
ldub
[
src
+
3
],
t3
ldub
[
src
+
2
],
t2
sll
t3
,
24
,
t3
ldub
[
src
+
1
],
t1
sll
t2
,
16
,
t2
or
t3
,
t2
,
t3
ldub
[
src
],
t0
sll
t1
,
8
,
t1
!
Get
subkey
ld
[
src
+%
g2
],
t2
or
t3
,
t1
,
t3
or
t3
,
t0
,
t3
xor
t3
,
t2
,
t3
C
cmp
src
,
%
g1
st
t3
,
[
src
+%
g3
]
C
bl
eu
.Lsource_loop
add
src
,
4
,
src
C
i
=
2
ldub
[
src
+
3
],
t3
ldub
[
src
+
2
],
t2
sll
t3
,
24
,
t3
ldub
[
src
+
1
],
t1
sll
t2
,
16
,
t2
or
t3
,
t2
,
t3
ldub
[
src
],
t0
sll
t1
,
8
,
t1
!
Get
subkey
ld
[
src
+%
g2
],
t2
or
t3
,
t1
,
t3
or
t3
,
t0
,
t3
xor
t3
,
t2
,
t3
C
cmp
src
,
%
g1
st
t3
,
[
src
+%
g3
]
C
bl
eu
.Lsource_loop
add
src
,
4
,
src
C
i
=
3
ldub
[
src
+
3
],
t3
ldub
[
src
+
3
],
t3
ldub
[
src
+
2
],
t2
ldub
[
src
+
2
],
t2
sll
t3
,
24
,
t3
sll
t3
,
24
,
t3
...
@@ -204,11 +294,13 @@ _aes_crypt:
...
@@ -204,11 +294,13 @@ _aes_crypt:
or
t3
,
t0
,
t3
or
t3
,
t0
,
t3
xor
t3
,
t2
,
t3
xor
t3
,
t2
,
t3
cmp
src
,
%
g1
C
cmp
src
,
%
g1
st
t3
,
[
src
+%
g3
]
st
t3
,
[
src
+%
g3
]
bleu
.Lsource_loop
C
bl
eu
.Lsource_loop
add
src
,
4
,
src
add
src
,
4
,
src
C
End
loop
sub
nrounds
,
1
,
round
sub
nrounds
,
1
,
round
add
ctx
,
16
,
key
add
ctx
,
16
,
key
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment