Lines Matching refs:HashAlgorithm
13 type HashAlgorithm uint16 type
18 HashAlgorithmMD5 HashAlgorithm = 1 // Blacklisted
19 HashAlgorithmSHA1 HashAlgorithm = 2 // Blacklisted
20 HashAlgorithmSHA224 HashAlgorithm = 3
21 HashAlgorithmSHA256 HashAlgorithm = 4
22 HashAlgorithmSHA384 HashAlgorithm = 5
23 HashAlgorithmSHA512 HashAlgorithm = 6
27 func (h HashAlgorithm) String() string {
47 func HashAlgorithmString(s string) (HashAlgorithm, error) {
66 func (h HashAlgorithm) digest(b []byte) []byte {
91 func (h HashAlgorithm) cryptoHash() crypto.Hash {
110 var hashAlgorithms = map[HashAlgorithm]struct{}{