Home | History | Annotate | Download | only in tls

Lines Matching defs:tls

5 package tls
23 var errClientKeyExchange = errors.New("tls: invalid ClientKeyExchange message")
24 var errServerKeyExchange = errors.New("tls: invalid ServerKeyExchange message")
26 // rsaKeyAgreement implements the standard TLS key agreement where the client
49 return nil, errors.New("tls: certificate private key does not implement crypto.Decrypter")
66 return errors.New("tls: unexpected ServerKeyExchange")
99 // md5SHA1Hash implements TLS 1.0's hybrid hash function which consists of the
114 // is only used for >= TLS 1.2 and identifies the hash function to use.
118 return nil, crypto.Hash(0), errors.New("tls: unsupported hash function used by peer")
137 // pickTLS12HashForSignature returns a TLS 1.2 hash identifier for signing a
151 return 0, errors.New("tls: unknown signature algorithm")
164 return 0, errors.New("tls: client doesn't support any common hash functions")
181 // ecdheRSAKeyAgreement implements a TLS key agreement where the server
213 return nil, errors.New("tls: no supported elliptic curves offered")
230 return nil, errors.New("tls: preferredCurves includes unsupported curve")
267 return nil, errors.New("tls: certificate private key does not implement crypto.Signer")
274 return nil, errors.New("tls: ECDHE ECDSA requires an ECDSA server key")
279 return nil, errors.New("tls: ECDHE RSA requires a RSA server key")
282 return nil, errors.New("tls: unknown ECDHE signature algorithm")
286 return nil, errors.New("tls: failed to sign ECDHE parameters: " + err.Error())
347 return errors.New("tls: server selected unsupported curve")
365 return errors.New("tls: bad X25519 public value")
371 return errors.New("tls: server selected unsupported curve")
405 return errors.New("tls: ECDHE ECDSA requires a ECDSA server public key")
412 return errors.New("tls: ECDSA signature contained zero or negative values")
415 return errors.New("tls: ECDSA verification failure")
420 return errors.New("tls: ECDHE RSA requires a RSA server public key")
426 return errors.New("tls: unknown ECDHE signature algorithm")
434 return nil, nil, errors.New("tls: missing ServerKeyExchange message")