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
Deploy
Releases
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
Brian Smith
nettle
Commits
51a08ad7
Commit
51a08ad7
authored
19 years ago
by
Niels Möller
Browse files
Options
Downloads
Patches
Plain Diff
Don't allocate space for a stack copy of the input.
Rev: src/nettle/x86/md5-compress.asm:1.5
parent
9424472a
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
x86/md5-compress.asm
+12
-13
12 additions, 13 deletions
x86/md5-compress.asm
with
12 additions
and
13 deletions
x86/md5-compress.asm
+
12
−
13
View file @
51a08ad7
...
...
@@ -24,7 +24,6 @@ define(<SC>,<%ecx>)
define
(
<
SD
>
,
<%
edx
>
)
define
(
<
TMP
>
,
<%
ebp
>
)
define
(
<
INPUT
>
,
<%
esi
>
)
C
define
(
<
DATA
>
,
<%
esp
>
)
C
%
edi
is
unused
...
...
@@ -73,23 +72,24 @@ define(<ROUND>,<
PROLOGUE
(
_nettle_md5_compress
)
C
save
al
l
registers
that
need
to
be
saved
pushl
%
ebx
C
76
(
%
esp
)
pushl
%
ebp
C
72
(
%
esp
)
pushl
%
esi
C
68
(
%
esp
)
pushl
%
edi
C
64
(
%
esp
)
subl
$
64
,
%
esp
C
%
esp
=
W
C
24
(
%
esp
)
input
C
20
(
%
esp
)
state
C
16
(
%
esp
)
Return
address
pushl
%
ebx
C
12
(
%
esp
)
pushl
%
ebp
C
8
(
%
esp
)
pushl
%
esi
C
4
(
%
esp
)
pushl
%
edi
C
(
%
esp
)
C
load
the
state
vector
movl
84
(
%
esp
),
TMP
movl
20
(
%
esp
),
TMP
movl
(
TMP
),
SA
movl
4
(
TMP
),
SB
movl
8
(
TMP
),
SC
movl
12
(
TMP
),
SD
C
Pointer
to
source
data.
We
copy
it
to
al
igned
storage
C
at
%
esp
when
we
first
use
it.
movl
88
(
%
esp
),
INPUT
C
Pointer
to
source
data.
C
Note
that
if
analigned
,
we
suffer
unaligned
accesses
movl
24
(
%
esp
),
INPUT
ROUND
(
<
F1
>
,
SA
,
SB
,
SC
,
SD
,
REF
(
0
),
$
0xd76aa478
,
7
)
ROUND
(
<
F1
>
,
SD
,
SA
,
SB
,
SC
,
REF
(
1
),
$
0xe8c7b756
,
12
)
...
...
@@ -160,13 +160,12 @@ PROLOGUE(_nettle_md5_compress)
ROUND
(
<
F4
>
,
SB
,
SC
,
SD
,
SA
,
REF
(
9
),
$
0xeb86d391
,
21
)
C
Update
the
state
vector
movl
84
(
%
esp
),
TMP
movl
20
(
%
esp
),
TMP
addl
SA
,
(
TMP
)
addl
SB
,
4
(
TMP
)
addl
SC
,
8
(
TMP
)
addl
SD
,
12
(
TMP
)
addl
$
64
,
%
esp
popl
%
edi
popl
%
esi
popl
%
ebp
...
...
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