MCPcopy
hub / github.com/XTLS/REALITY / supportedSignatureAlgorithmsCert

Function supportedSignatureAlgorithmsCert

common.go:1742–1750  ·  view source on GitHub ↗

supportedSignatureAlgorithmsCert returns the supported algorithms for signatures in certificates.

()

Source from the content-addressed store, hash-verified

1740// supportedSignatureAlgorithmsCert returns the supported algorithms for
1741// signatures in certificates.
1742func 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
1752func isSupportedSignatureAlgorithm(sigAlg SignatureScheme, supportedSignatureAlgorithms []SignatureScheme) bool {
1753 return slices.Contains(supportedSignatureAlgorithms, sigAlg)

Callers 2

makeClientHelloMethod · 0.85
sendServerCertificateMethod · 0.85

Calls 2

RequiredFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…