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
()
| 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. |
| 32 | func 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. |
no outgoing calls
no test coverage detected
searching dependent graphs…