supportedSignatureAlgorithmsCert returns the supported algorithms for signatures in certificates.
()
| 1740 | // supportedSignatureAlgorithmsCert returns the supported algorithms for |
| 1741 | // signatures in certificates. |
| 1742 | func supportedSignatureAlgorithmsCert() []SignatureScheme { |
| 1743 | sigAlgs := defaultSupportedSignatureAlgorithmsCert() |
| 1744 | if fips140tls.Required() { |
| 1745 | sigAlgs = slices.DeleteFunc(sigAlgs, func(s SignatureScheme) bool { |
| 1746 | return !slices.Contains(allowedSignatureAlgorithmsFIPS, s) |
| 1747 | }) |
| 1748 | } |
| 1749 | return sigAlgs |
| 1750 | } |
| 1751 | |
| 1752 | func isSupportedSignatureAlgorithm(sigAlg SignatureScheme, supportedSignatureAlgorithms []SignatureScheme) bool { |
| 1753 | return slices.Contains(supportedSignatureAlgorithms, sigAlg) |
no test coverage detected
searching dependent graphs…