Messages in this thread | | | Date | 20 Apr 2005 22:29:00 +0200 | From | (Kai Henningsen) | Subject | Re: more git updates.. |
| |
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 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |