Re: more git updates..

Kai Henningsen
2005-04-20T21:08:30Z

hpa@zytor.com (H. Peter Anvin) wrote on 11.04.05 in <d3dvps$347$1@terminus.zytor.com>:

> Followup to: <20050410065307.GC13853@64m.dyndns.org>
> By author: Christopher Li <lkml@chrisli.org>
> In newsgroup: linux.dev.kernel
> >
> > There is one problem though. How about the SHA1 hash collision?
> > Even the chance is very remote, you don't want to lose some data do due
> > to "software" error. I think it is OK that no handle that
> > case right now. On the other hand, it will be nice to detect that
> > and give out a big error message if it really happens.
> >
>
> If you're actually worried about it, it'd be better to just use a
> different hash, like one of the SHA-2's (probably a better choice
> anyway), instead of SHA-1.

How could that help? *Every* hash has hash collisions. It's an unavoidable
result of using less bits than the original data has.

MfG Kai