Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Marcus Hoffmann
nettle
Commits
220b5454
Commit
220b5454
authored
May 15, 2002
by
Niels Möller
Browse files
(_aes_crypt): Access IDX1 and IDX3 through the T pointer, saving
two registers. Rev: src/nettle/sparc/aes.asm:1.93
parent
c209a74e
Changes
1
Hide whitespace changes
Inline
Side-by-side
sparc/aes.asm
View file @
220b5454
...
...
@@ -22,8 +22,8 @@
!
(
see
gcc
/
config
/
sp
arc.h
)
.
We
should
use
only
%
g1
-%
g3
to
be
safe.
!
Used
registers
:
%
l0
,
1
,
2
,
3
,
4
,
5
,
6
,
7
!
%
i0
,
1
,
2
,
3
,
4
,
5
(
%
i6
=
%
fp
,
%
i7
=
return
)
!
%
o0
,
1
,
2
,
3
,
4
,
5
,
7
(
%
o6
=
%
sp
)
!
%
i0
,
1
,
2
,
3
,
4
(
%
i6
=
%
fp
,
%
i7
=
return
)
!
%
o0
,
1
,
2
,
3
,
4
,
7
(
%
o6
=
%
sp
)
!
%
g1
,
2
,
3
,
5
.file
"aes.asm"
...
...
@@ -57,9 +57,10 @@ define(T0, %l6)
define
(
T1
,
%
l7
)
define
(
T2
,
%
g5
)
define
(
T3
,
%
o7
)
define
(
IDX1
,
%
i5
)
C
define
(
IDX1
,
<
T
+
AES_SIDX1
>
)
define
(
IDX3
,
%
o5
)
C
define
(
IDX1
,
%
i5
)
define
(
IDX1
,
<
T
+
AES_SIDX1
>
)
C
define
(
IDX3
,
%
o5
)
define
(
IDX3
,
<
T
+
AES_SIDX3
>
)
!
Teporaries
define
(
t0
,
%
o0
)
...
...
@@ -95,9 +96,9 @@ _aes_crypt:
add
T
,
AES_TABLE1
,
T1
add
T
,
AES_TABLE2
,
T2
add
T
,
AES_TABLE3
,
T3
add
T
,
AES_SIDX1
,
IDX1
C
add
T
,
AES_SIDX1
,
IDX1
add
T
,
AES_SIDX3
,
IDX3
C
add
T
,
AES_SIDX3
,
IDX3
!
Read
src
,
and
add
initial
subkey
!
Difference
between
ctx
and
src.
!
NOTE:
These
instructions
are
duplicated
in
the
delay
slot
,
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment