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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Brian Smith
nettle
Commits
75a2ff15
Commit
75a2ff15
authored
21 years ago
by
Niels Möller
Browse files
Options
Downloads
Patches
Plain Diff
(EXPAND): Fixed the rotation part of the
data expansion. Rev: src/nettle/x86/sha1-compress.asm:1.2
parent
22092275
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
x86/sha1-compress.asm
+4
-2
4 additions, 2 deletions
x86/sha1-compress.asm
with
4 additions
and
2 deletions
x86/sha1-compress.asm
+
4
−
2
View file @
75a2ff15
...
@@ -34,16 +34,18 @@ define(<K3>, <<$>0x8F1BBCDC>) C Rounds 40-59
...
@@ -34,16 +34,18 @@ define(<K3>, <<$>0x8F1BBCDC>) C Rounds 40-59
define
(
<
K4
>
,
<<
$
>
0xCA62C1D6
>
)
C
Rounds
60
-
79
define
(
<
K4
>
,
<<
$
>
0xCA62C1D6
>
)
C
Rounds
60
-
79
C
expand
(
i
)
is
the
expansion
function
C
expand
(
i
)
is
the
expansion
function
C
C
C
W
[
i
]
=
W
[
i
-
16
]
^
W
[
i
-
14
]
^
W
[
i
-
8
]
^
W
[
i
-
3
]
C
W
[
i
]
=
(
W
[
i
-
16
]
^
W
[
i
-
14
]
^
W
[
i
-
8
]
^
W
[
i
-
3
]
)
<<<
1
C
C
C
where
W
[
i
]
is
stored
in
DATA
[
i
&
15
]
.
C
where
W
[
i
]
is
stored
in
DATA
[
i
&
15
]
.
C
C
C
Result
is
stored
back
in
W
[
i
],
and
al
so
left
in
TMP
,
the
only
register
that
is
used.
C
Result
is
stored
back
in
W
[
i
],
and
al
so
left
in
TMP
,
the
only
C
register
that
is
used.
define
(
<
EXPAND
>
,
<
define
(
<
EXPAND
>
,
<
movl
eval
(
4
*
(
$
1
&
15
))
(
DATA
),
TMP
movl
eval
(
4
*
(
$
1
&
15
))
(
DATA
),
TMP
xorl
eval
(
4
*
((
$
1
+
2
)
&
15
))
(
DATA
),
TMP
xorl
eval
(
4
*
((
$
1
+
2
)
&
15
))
(
DATA
),
TMP
xorl
eval
(
4
*
((
$
1
+
8
)
&
15
))
(
DATA
),
TMP
xorl
eval
(
4
*
((
$
1
+
8
)
&
15
))
(
DATA
),
TMP
xorl
eval
(
4
*
((
$
1
+
13
)
&
15
))
(
DATA
),
TMP
xorl
eval
(
4
*
((
$
1
+
13
)
&
15
))
(
DATA
),
TMP
roll
<
$
>
1
,
TMP
movl
TMP
,
eval
(
4
*
(
$
1
&
15
))
(
DATA
)
movl
TMP
,
eval
(
4
*
(
$
1
&
15
))
(
DATA
)
>
)
dnl
>
)
dnl
define
(
<
NOEXPAND
>
,
<
eval
(
4
*
(
$
1
&
15
))
(
DATA
)
>
)
dnl
define
(
<
NOEXPAND
>
,
<
eval
(
4
*
(
$
1
&
15
))
(
DATA
)
>
)
dnl
...
...
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