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
Snippets
Deploy
Releases
Container Registry
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
Dmitry Baryshkov
nettle
Commits
04fc6891
Commit
04fc6891
authored
20 years ago
by
Niels Möller
Browse files
Options
Downloads
Patches
Plain Diff
(test_main): Added collision, found in 2004.
Rev: src/nettle/testsuite/md5-test.c:1.4
parent
0abfb071
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
testsuite/md5-test.c
+26
-6
26 additions, 6 deletions
testsuite/md5-test.c
with
26 additions
and
6 deletions
testsuite/md5-test.c
+
26
−
6
View file @
04fc6891
...
...
@@ -29,14 +29,34 @@ test_main(void)
"1234567890123456789012345678901234567890"
"1234567890123456789012345678901234567890"
,
H
(
"57EDF4A22BE3C955 AC49DA2E2107B67A"
));
#if 0
/* Collisions, reported by Xiaoyun Wang1, Dengguo Feng2, Xuejia
Lai3, Hongbo Yu1, http://eprint.iacr.org/2004/199 */
Lai3, Hongbo Yu1, http://eprint.iacr.org/2004/199. */
/* Note: The checksum in the paper, 1f160396 efc71ff4 bcff659f
bf9d0fa3, is incorrect. */
test_hash
(
&
nettle_md5
,
HL("d131dd02 c5e6eec4 693d9a06 98aff95c 2fcab587 12467eab 4004583e b8fb7f89"
"55ad3406 09f4b302 83e48883 2571415a 085125e8 f7cdc99f d91dbdf2 80373c5b"),
H("1f160396 efc71ff4 bcff659f bf9d0fa3"));
#endif
HL
(
"d131dd02 c5e6eec4 693d9a06 98aff95c 2fcab5 87 12467eab 4004583e b8fb7f89"
/* ^^ */
"55ad3406 09f4b302 83e48883 25 71 415a 085125e8 f7cdc99f d91dbd f2 80373c5b"
/* ^^ ^^ */
"960b1dd1 dc417b9c e4d897f4 5a6555d5 35739a c7 f0ebfd0c 3029f166 d109b18f"
/* ^^ */
"75277f79 30d55ceb 22e8adba 79cc155c ed74cbdd 5fc5d36d b19b0ad8 35cca7e3"
),
/* ^^ ^^ */
H
(
"a4c0d35c 95a63a80 5915367d cfe6b751"
));
test_hash
(
&
nettle_md5
,
HL
(
"d131dd02 c5e6eec4 693d9a06 98aff95c 2fcab5 07 12467eab 4004583e b8fb7f89"
/* ^^ */
"55ad3406 09f4b302 83e48883 25 f1 415a 085125e8 f7cdc99f d91dbd 72 80373c5b"
/* ^^ ^^ */
"960b1dd1 dc417b9c e4d897f4 5a6555d5 35739a 47 f0ebfd0c 3029f166 d109b18f"
/* ^^ */
"75277f79 30d55ceb 22e8adba 79 4c 155c ed74cbdd 5fc5d36d b19b0a 58 35cca7e3"
),
/* ^^ ^^ */
H
(
"a4c0d35c 95a63a80 5915367d cfe6b751"
));
SUCCESS
();
}
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