Add DSA to SHA1 mapping in dnssec AlgorithmToHash (#670)

This commit is contained in:
Stefan Aurori 2018-05-05 13:03:36 -04:00 committed by Miek Gieben
parent 01d59357d4
commit 9c76f9827e
1 changed files with 1 additions and 0 deletions

View File

@ -73,6 +73,7 @@ var StringToAlgorithm = reverseInt8(AlgorithmToString)
// AlgorithmToHash is a map of algorithm crypto hash IDs to crypto.Hash's.
var AlgorithmToHash = map[uint8]crypto.Hash{
RSAMD5: crypto.MD5, // Deprecated in RFC 6725
DSA: crypto.SHA1,
RSASHA1: crypto.SHA1,
RSASHA1NSEC3SHA1: crypto.SHA1,
RSASHA256: crypto.SHA256,