checksums: genericize to be algorithm-independent, add SHA*
commit893ba78034cf415fc520d6a5debe820e2b4bc46b
authorEric Wong <normalperson@yhbt.net>
Fri, 25 Nov 2011 05:25:48 +0000 (25 05:25 +0000)
committerdormando <dormando@rydia.net>
Fri, 30 Mar 2012 00:11:34 +0000 (29 17:11 -0700)
tree230898a176a2687fe9c3d1c99c95585bd301bd33
parent5713152dc29fed4254e74f3aba67760c1058ca3b
checksums: genericize to be algorithm-independent, add SHA*

We'll use the "Digest" class in Perl as a guide for this.
Only MD5 is officially supported.

However, this *should* support SHA-(1|256|384|512) and it's easy
to add more algorithms.
doc/checksums.txt
lib/MogileFS/Checksum.pm
lib/MogileFS/HTTPFile.pm
lib/Mogstored/SideChannelClient.pm
t/40-httpfile.t
t/checksum.t