On Tue, Apr 29, 2008 at 11:41 AM, Daniel Barkalow <barkalow@xxxxxxxxxxxx> wrote: > On Tue, 29 Apr 2008, Geoffrey Irving wrote: > > > On Tue, Apr 29, 2008 at 10:55 AM, Nicolas Pitre <nico@xxxxxxx> wrote: > > > On Tue, 29 Apr 2008, Geoffrey Irving wrote: > > > > > > > > > > Sorry for the confusion: it would handwaving if I was saying git was insecure, > > > > but I'm not. I'm saying that if or when SHA1 becomes vulnerable to collision > > > > attacks, git will be insecure. > > > > > > Right. And if or when that happens then we'll make Git secure again > > > with a different hash. In the mean time there is low return for the > > > effort involved. > > > > Yes. I wasn't trying to advocate switching, just making sure people > > know that the "collisions don't matter" argument is bogus. > > It's bogus to say they completely don't matter, but I still claim that > they don't matter for the things people actually care about. If people can > generate collisions, they can commit a "weak" blob with a conditional that > can be switched by replacing the blob. But it's almost always true that > people could commit a blob with a conditional that can be switched by > something else under the attacker's more direct control. Using a better > hash function won't save you from a document like: > > if (getdate() < 2009) > render_good_text > else > render_evil_text > > even if it does help with: > > if (AA == AA) > render_good_text > else > render_evil_text > > If you're not checking your files for the former, you shouldn't worry > about the latter, because the former is much easier and more subtle. I sincerely hope that pdf/postscript don't allow the internal rendering code to branch based on the current date. That would be an absurd security hole, and would indeed make you entirely correct. If you actually know that it is possible to write that in postscript, I would very much want to see an example. In any case, in a binary document format that isn't insane (examples of these at least include black and white .png images of documents), a visual check of the content is sufficient to ensure that the next person who looks at it will see roughly the same visual content. Git should be (and currently is) a secure method of transferring sane binary documents. Geoffrey -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html