Replace unsupported hashes with supported

Remote md5 and sha1 hashes which are not supported by distribution.
Add more secure hashes sha384 and sha512.

Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
This commit is contained in:
Derek McGowan 2015-02-19 17:55:05 -08:00
parent c1840978b7
commit 2289b1f2e8
3 changed files with 10 additions and 11 deletions

View file

@ -123,7 +123,7 @@ func (d Digest) Validate() error {
}
switch s[:i] {
case "md5", "sha1", "sha256":
case "sha256", "sha384", "sha512":
break
default:
return ErrDigestUnsupported