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
2fae61aa
Commit
2fae61aa
authored
23 years ago
by
Niels Möller
Browse files
Options
Downloads
Patches
Plain Diff
(_aes_crypt): More symbolic names.
Rev: src/nettle/sparc/aes.asm:1.14
parent
572dcfff
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
+17
-10
17 additions, 10 deletions
sparc/aes.asm
with
17 additions
and
10 deletions
sparc/aes.asm
+
17
−
10
View file @
2fae61aa
...
@@ -50,8 +50,11 @@ define(T, %o0)
...
@@ -50,8 +50,11 @@ define(T, %o0)
define
(
length
,
%
o4
)
define
(
length
,
%
o4
)
define
(
ds
t
,
%
o3
)
define
(
ds
t
,
%
o3
)
define
(
src
,
%
o2
)
define
(
src
,
%
o2
)
define
(
wtxt
,
%
l2
)
_aes_crypt:
_aes_crypt:
!#
PROLOGUE#
0
!#
PROLOGUE#
0
!
Why
-
136
?
save
%
sp
,
-
136
,
%
sp
save
%
sp
,
-
136
,
%
sp
!#
PROLOGUE#
1
!#
PROLOGUE#
1
!
Why
this
moving
around
of
the
input
parameters?
!
Why
this
moving
around
of
the
input
parameters?
...
@@ -60,13 +63,15 @@ _aes_crypt:
...
@@ -60,13 +63,15 @@ _aes_crypt:
mov
%
i1
,
T
mov
%
i1
,
T
mov
%
i3
,
ds
t
mov
%
i3
,
ds
t
cmp
length
,
0
cmp
length
,
0
be
.L
L41
be
.L
end
mov
%
i4
,
src
mov
%
i4
,
src
!
wtxt?
add
%
fp
,
-
24
,
%
l1
add
%
fp
,
-
24
,
%
l1
mov
%
l1
,
%
l2
mov
%
l1
,
wtxt
.LL13:
.Lblock_loop:
!
Read
src
,
and
add
initial
subkey
mov
0
,
%
i3
mov
0
,
%
i3
.L
L17
:
.L
source_loop
:
sll
%
i3
,
2
,
%
i2
sll
%
i3
,
2
,
%
i2
add
%
i2
,
src
,
%
i0
add
%
i2
,
src
,
%
i0
ldub
[
%
i0
+
3
],
%
g2
ldub
[
%
i0
+
3
],
%
g2
...
@@ -83,9 +88,11 @@ _aes_crypt:
...
@@ -83,9 +88,11 @@ _aes_crypt:
or
%
g2
,
%
i0
,
%
g2
or
%
g2
,
%
i0
,
%
g2
xor
%
g2
,
%
g3
,
%
g2
xor
%
g2
,
%
g3
,
%
g2
cmp
%
i3
,
3
cmp
%
i3
,
3
bleu
.LL17
bleu
.Lsource_loop
st
%
g2
,
[
%
l2
+%
i2
]
st
%
g2
,
[
wtxt
+%
i2
]
ld
[
ctx
+
240
],
%
g2
!
FIXME:
We
can
safely
assume
that
nrounds
>
1
ld
[
ctx
+
AES_NROUNDS
],
%
g2
mov
1
,
%
g1
mov
1
,
%
g1
cmp
%
g1
,
%
g2
cmp
%
g1
,
%
g2
bgeu
,
a
.LL47
bgeu
,
a
.LL47
...
@@ -96,7 +103,7 @@ _aes_crypt:
...
@@ -96,7 +103,7 @@ _aes_crypt:
mov
%
l1
,
%
g4
mov
%
l1
,
%
g4
mov
0
,
%
i5
mov
0
,
%
i5
.LL48:
.LL48:
add
T
,
288
,
%
i4
add
T
,
AES_IDX3
,
%
i4
.LL26:
.LL26:
ld
[
%
i4
-
32
],
%
g3
ld
[
%
i4
-
32
],
%
g3
sll
%
i5
,
2
,
%
i3
sll
%
i5
,
2
,
%
i3
...
@@ -199,9 +206,9 @@ _aes_crypt:
...
@@ -199,9 +206,9 @@ _aes_crypt:
add
%
g4
,
4
,
%
g4
add
%
g4
,
4
,
%
g4
add
ds
t
,
16
,
ds
t
add
ds
t
,
16
,
ds
t
addcc
length
,
-
16
,
length
addcc
length
,
-
16
,
length
bne
.L
L13
bne
.L
block_loop
add
src
,
16
,
src
add
src
,
16
,
src
.L
L41
:
.L
end
:
ret
ret
rest
ore
rest
ore
.LLFE1:
.LLFE1:
...
...
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