IsValidDigestAlgorithm returns true if the provided algorithm is supported
(alg string)
| 21 | |
| 22 | // IsValidDigestAlgorithm returns true if the provided algorithm is supported |
| 23 | func IsValidDigestAlgorithm(alg string) bool { |
| 24 | for _, a := range validDigestAlgorithms { |
| 25 | if a == alg { |
| 26 | return true |
| 27 | } |
| 28 | } |
| 29 | return false |
| 30 | } |
| 31 | |
| 32 | // ValidDigestAlgorithms returns a list of supported digest algorithms |
| 33 | func ValidDigestAlgorithms() []string { |
nothing calls this directly
no outgoing calls
no test coverage detected