re-enable SHA-1 for checksums
commit1fd5ef4cb501485ee5705da77bae2893088ca93f
authorEric Wong <normalperson@yhbt.net>
Tue, 13 Mar 2012 20:24:31 +0000 (13 13:24 -0700)
committerdormando <dormando@rydia.net>
Fri, 30 Mar 2012 00:11:35 +0000 (29 17:11 -0700)
tree8039c0c161f1adf46d3dbf7839c26acff805b41a
parente596d524aeda5d4beb3510fba1498dd75231a2bb
re-enable SHA-1 for checksums

Optimized SHA-1 implementations aren't significantly slower than
MD5 and some folks (e.g. Tomas Doran) may already have SHA-1 in
place for their data.

A liberally licensed, GPL-compatible collection of SHA-1
primitives is available from one of the OpenSSL developers:

  http://www.openssl.org/~appro/cryptogams/

It would be nice to allow the Perl Digest module to
transparently take advantage of architecture-specific
optimizations.

Note there is no standardized equivalent to the HTTP Content-MD5
header/trailer for any of the SHA variants, so verification for
replication/uploads may take significantly longer.

Requested-by: Tomas Doran
lib/MogileFS/Checksum.pm
lib/Mogstored/SideChannelClient.pm