[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Why do we check the base checksum so often?

From: Hyrum K Wright <hyrum.wright_at_wandisco.com>
Date: Sat, 4 Feb 2012 19:02:30 -0600

On Sat, Feb 4, 2012 at 4:12 PM, Bert Huijben <bert_at_qqmail.nl> wrote:
> We already assume Sha-1 is unique in wc-Ng, so introducing sha256 would
> not help.

Well, it wouldn't be difficult to bump the wc version and recompute
sha256s for all the pristines. I'm not advocating that course of
action, just saying it would be possible.

This does bring up a good point, though. What kind of forward
compatibility, if any, do we need in Ev2 to support a checksum
migration?

> It is also much more expensive to obtain then sha1 and md5.

Actually, sha256 is only about 35% slower than sha1, whereas sha1 is
more than 65% slower than md5 (Source:
http://www.cryptopp.com/benchmarks.html). I don't know if apr has a
sha256 implementation, but it wouldn't be hard to find one.

-Hyrum

-- 
uberSVN: Apache Subversion Made Easy
http://www.uberSVN.com/
Received on 2012-02-05 02:03:06 CET

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.