Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dmitry Baryshkov
nettle
Commits
c469e081
Commit
c469e081
authored
Aug 25, 2009
by
Niels Möller
Browse files
Trimmed stack storage.
Rev: nettle/x86/sha1-compress.asm:1.3
parent
cda1ebe8
Changes
1
Show whitespace changes
Inline
Side-by-side
x86/sha1-compress.asm
View file @
c469e081
...
...
@@ -145,17 +145,19 @@ C adding, and then rotating back.
ALIGN
(
4
)
PROLOGUE
(
_nettle_sha1_compress
)
C
save
al
l
registers
that
need
to
be
saved
pushl
%
ebx
C
80
(
%
esp
)
pushl
%
ebp
C
76
(
%
esp
)
pushl
%
esi
C
72
(
%
esp
)
pushl
%
edi
C
68
(
%
esp
)
C
88
(
%
esp
)
data
C
84
(
%
esp
)
state
C
80
(
%
esp
)
Return
address
pushl
%
ebx
C
76
(
%
esp
)
pushl
%
ebp
C
72
(
%
esp
)
pushl
%
esi
C
68
(
%
esp
)
pushl
%
edi
C
64
(
%
esp
)
C
FIXME
:
Trim
to
64
subl
$
6
8
,
%
esp
C
%
esp
=
W
subl
$
6
4
,
%
esp
C
%
esp
=
W
C
Load
and
byte
swap
data
movl
92
(
%
esp
),
TMP2
movl
88
(
%
esp
),
TMP2
SWAP
(
0
,
%
eax
)
SWAP
(
1
,
%
ebx
)
SWAP
(
2
,
%
ecx
)
SWAP
(
3
,
%
edx
)
SWAP
(
4
,
%
eax
)
SWAP
(
5
,
%
ebx
)
SWAP
(
6
,
%
ecx
)
SWAP
(
7
,
%
edx
)
...
...
@@ -163,7 +165,7 @@ PROLOGUE(_nettle_sha1_compress)
SWAP
(
12
,
%
eax
)
SWAP
(
13
,
%
ebx
)
SWAP
(
14
,
%
ecx
)
SWAP
(
15
,
%
edx
)
C
load
the
state
vector
movl
8
8
(
%
esp
),
TMP
movl
8
4
(
%
esp
),
TMP
movl
(
TMP
),
SA
movl
4
(
TMP
),
SB
movl
8
(
TMP
),
SC
...
...
@@ -273,14 +275,14 @@ PROLOGUE(_nettle_sha1_compress)
EXPAND
(
79
)
ROUND
(
SB
,
SC
,
SD
,
SE
,
SA
,
<
F2
>
)
C
Update
the
state
vector
movl
8
8
(
%
esp
),
TMP
movl
8
4
(
%
esp
),
TMP
addl
SA
,
(
TMP
)
addl
SB
,
4
(
TMP
)
addl
SC
,
8
(
TMP
)
addl
SD
,
12
(
TMP
)
addl
SE
,
16
(
TMP
)
addl
$
6
8
,
%
esp
addl
$
6
4
,
%
esp
popl
%
edi
popl
%
esi
popl
%
ebp
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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