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:
@@ -123,7 +123,7 @@ func (d Digest) Validate() error {
|
||||
}
|
||||
|
||||
switch s[:i] {
|
||||
case "md5", "sha1", "sha256":
|
||||
case "sha256", "sha384", "sha512":
|
||||
break
|
||||
default:
|
||||
return ErrDigestUnsupported
|
||||
|
Reference in New Issue
Block a user