From: Morten Welinder <mwelinder@gmail.com>
To: Petr Baudis <pasky@ucw.cz>
Cc: git@vger.kernel.org
Subject: Re: [zooko@zooko.com: [Revctrl] colliding md5 hashes of human-meaningful documents]
Date: Sun, 12 Jun 2005 09:14:03 -0400 [thread overview]
Message-ID: <118833cc050612061452f0eb3e@mail.gmail.com> (raw)
In-Reply-To: <20050612082555.GB6620@pasky.ji.cz>
I looked at this.
If you can find just *one* colliding pair that does not contain a
few select bytes like 0x22 (quote), 0x5c (backslash) and
perhaps 0x0a then it is trivial to make a colliding pair of
C programs.
Call the initial pair (A,B) and make the programs
/* Common prefix that happens to have integer block size
ending just before the A below. */
const char junk[] = "AB";
/* "AA" in program 1, "AB" in program 2. */
...
int
main ()
{
int hsize = sizeof (junk) / 2;
if (memcmp (junk, junk + hsize, hsize))
return do_program_2 ();
else
return do_program_1 ();
}
next prev parent reply other threads:[~2005-06-12 13:11 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-12 8:25 [zooko@zooko.com: [Revctrl] colliding md5 hashes of human-meaningful documents] Petr Baudis
2005-06-12 13:14 ` Morten Welinder [this message]
2005-06-12 14:53 ` Martin Uecker
2005-06-12 17:03 ` Linus Torvalds
2005-06-14 2:06 ` Daniel Barkalow
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=118833cc050612061452f0eb3e@mail.gmail.com \
--to=mwelinder@gmail.com \
--cc=git@vger.kernel.org \
--cc=pasky@ucw.cz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.