MCPcopy Index your code
hub / github.com/XTLS/REALITY / defaultSupportedSignatureAlgorithms

Function defaultSupportedSignatureAlgorithms

defaults.go:32–45  ·  view source on GitHub ↗

var tlssha1 = godebug.New("tlssha1") defaultSupportedSignatureAlgorithms returns the signature and hash algorithms that the code advertises and supports in a TLS 1.2+ ClientHello and in a TLS 1.2+ CertificateRequest. The two fields are merged to match with TLS 1.3. Note that in TLS 1.2, the ECDSA al

()

Source from the content-addressed store, hash-verified

30// CertificateRequest. The two fields are merged to match with TLS 1.3.
31// Note that in TLS 1.2, the ECDSA algorithms are not constrained to P-256, etc.
32func defaultSupportedSignatureAlgorithms() []SignatureScheme {
33 return []SignatureScheme{
34 PSSWithSHA256,
35 ECDSAWithP256AndSHA256,
36 Ed25519,
37 PSSWithSHA384,
38 PSSWithSHA512,
39 PKCS1WithSHA256,
40 PKCS1WithSHA384,
41 PKCS1WithSHA512,
42 ECDSAWithP384AndSHA384,
43 ECDSAWithP521AndSHA512,
44 }
45}
46
47// defaultSupportedSignatureAlgorithmsCert returns the signature algorithms that
48// the code advertises as supported for signatures in certificates.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…