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
Wim Lewis
nettle
Commits
c2e1bd5b
Commit
c2e1bd5b
authored
Oct 15, 2005
by
Niels Möller
Browse files
New file.
Rev: src/nettle/sparc/aes-encrypt-internal.asm:1.1
parent
7d41b7a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
sparc/aes-encrypt-internal.asm
0 → 100644
View file @
c2e1bd5b
C
-*-
mode
:
asm
; asm-comment-char: ?C; -*-
C
nettle
,
low
-
level
cryptographics
library
C
C
Copyright
(
C
)
2002
,
2005
Niels
Mller
C
C
The
nettle
library
is
free
software
; you can redistribute it and/or modify
C
it
under
the
terms
of
the
GNU
Lesser
General
Public
License
as
published
by
C
the
Free
Software
Foundation
; either version 2.1 of the License, or (at your
C
option
)
any
later
version.
C
C
The
nettle
library
is
di
stributed
in
the
hope
that
it
will
be
useful
,
but
C
WITHOUT
ANY
WARRANTY
; without even the implied warranty of MERCHANTABILITY
C
or
FITNESS
FOR
A
PARTICULAR
PURPOSE.
See
the
GNU
Lesser
General
Public
C
License
for
more
details.
C
C
You
should
have
received
a
copy
of
the
GNU
Lesser
General
Public
License
C
al
ong
with
the
nettle
library
; see the file COPYING.LIB. If not, write to
C
the
Free
Software
Foundation
,
Inc.
,
59
Temple
Place
-
Suite
330
,
Boston
,
C
MA
02111
-
1307
,
USA.
C
Arguments
define
(
CTX
,
%
i0
)
define
(
T
,
%
i1
)
define
(
LENGTH
,
%
i2
)
define
(
DS
T
,
%
i3
)
define
(
SRC
,
%
i4
)
C
AES
state
,
two
copies
for
unrolling
define
(
W0
,
%
l0
)
define
(
W1
,
%
l1
)
define
(
W2
,
%
l2
)
define
(
W3
,
%
l3
)
define
(
T0
,
%
l4
)
define
(
T1
,
%
l5
)
define
(
T2
,
%
l6
)
define
(
T3
,
%
l7
)
C
Registers
%
g1
-%
g3
and
%
o0
-
%
o5
are
free
to
use.
C
The
sp
arc32
stack
frame
looks
like
C
C
%
fp
-
4
:
OS
-
dependent
link
field
C
%
fp
-
8
:
OS
-
dependent
link
field
C
%
fp
-
24
:
tmp
,
uint32_t
[
4
]
C
%
fp
-
40
:
wtxt
,
uint32_t
[
4
]
C
%
fp
-
136
:
OS
register
save
area.
define
(
<
FRAME_SIZE
>
,
136
)
.section
".text"
.align
16
.proc
020
PROLOGUE
(
_nettle_aes_encrypt
)
save
%
sp
,
-
FRAME_SIZE
,
%
sp
cmp
length
,
0
be
.Lend
.Lblock_loop:
C
Read
src
,
and
add
initial
subkey
.Lend:
ret
rest
ore
EPILOGUE
(
_nettle_aes_encrypt
)
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