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
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
Dmitry Baryshkov
nettle
Commits
06c72e39
Commit
06c72e39
authored
Feb 15, 2002
by
Niels Möller
Browse files
Options
Downloads
Patches
Plain Diff
* sparc/aes.asm (_aes_crypt): Renaming variables, allocating
locals starting from %l0. Rev: src/nettle/sparc/aes.asm:1.29
parent
88023317
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
+19
-11
19 additions, 11 deletions
sparc/aes.asm
with
19 additions
and
11 deletions
sparc/aes.asm
+
19
−
11
View file @
06c72e39
!
Used
registers
:
%
l0
,
1
!
Used
registers
:
%
l0
,
1
,
2
!
%
i0
,
1
,
2
,
3
,
4
,
5
(
%
i6
=
%
fp
,
%
i7
=
return
)
!
%
o0
,
1
,
2
,
3
,
4
,
7
(
%
o6
=
%
sp
)
!
%
g1
,
2
,
3
,
4
...
...
@@ -12,14 +12,22 @@ include(`asm.m4')
.type
_aes_crypt
,
#
function
.proc
020
!
Arguments
define
(
ctx
,
%
i0
)
define
(
T
,
%
i1
)
define
(
length
,
%
i2
)
define
(
ds
t
,
%
i3
)
define
(
src
,
%
i4
)
define
(
wtxt
,
%
l1
)
define
(
tmp
,
%
l0
)
!
Loop
invariants
define
(
wtxt
,
%
l0
)
define
(
tmp
,
%
l1
)
define
(
nround
,
%
l2
)
!
Loop
variables
define
(
round
,
%
l3
)
!
Should
perhaps
be
16
*
round
define
(
i
,
%
l4
)
_aes_crypt:
!
Why
-
136
?
save
%
sp
,
-
136
,
%
sp
...
...
@@ -30,6 +38,7 @@ _aes_crypt:
!
wtxt
add
%
fp
,
-
24
,
wtxt
add
%
fp
,
-
40
,
tmp
.Lblock_loop:
!
Read
src
,
and
add
initial
subkey
...
...
@@ -82,11 +91,10 @@ _aes_crypt:
!
bleu
.Lsource_loop
!
add
%
o3
,
4
,
%
o3
ld
[
ctx
+
AES_NROUNDS
],
%
g2
mov
1
,
%
g1
ld
[
ctx
+
AES_NROUNDS
],
nround
mov
1
,
round
add
%
fp
,
-
40
,
tmp
mov
%
g2
,
%
o7
!
mov
%
g2
,
%
o7
!
wtxt
mov
wtxt
,
%
g4
...
...
@@ -149,7 +157,7 @@ _aes_crypt:
bleu
.Linner_loop
add
%
o3
,
4
,
%
o3
sll
%
g1
,
4
,
%
g2
sll
round
,
4
,
%
g2
add
%
g2
,
ctx
,
%
o0
mov
0
,
%
i5
mov
wtxt
,
%
o3
...
...
@@ -164,12 +172,12 @@ _aes_crypt:
st
%
g3
,
[
%
o3
+%
g2
]
bleu
.Lroundkey_loop
add
%
o0
,
4
,
%
o0
add
%
g1
,
1
,
%
g1
cmp
%
g1
,
%
o7
add
round
,
1
,
round
cmp
round
,
nround
blu
.Lround_loop
mov
0
,
%
o3
sll
%
g1
,
4
,
%
g2
sll
round
,
4
,
%
g2
!
final
round
add
%
g2
,
ctx
,
%
o7
...
...
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