Lines Matching refs:New
52 return 0, errors.New("tls: no common signature algorithms")
73 return errors.New("tls: unsupported signature algorithm")
91 hashMD5 := md5.New()
93 hashSHA1 := sha1.New()
98 h := r.hash.New()
111 return nil, errors.New("invalid key type for RSA-PKCS1")
120 return errors.New("invalid key type for RSA-PKCS1")
169 return nil, errors.New("invalid key type for ECDSA")
172 return nil, errors.New("invalid curve for ECDSA")
175 h := e.hash.New()
181 return nil, errors.New("failed to sign ECDHE parameters: " + err.Error())
192 return errors.New("invalid key type for ECDSA")
195 return errors.New("invalid curve for ECDSA")
203 return errors.New("ECDSA signature contained zero or negative values")
206 h := e.hash.New()
209 return errors.New("ECDSA verification failure")
228 return nil, errors.New("invalid key type for RSA-PSS")
231 h := r.hash.New()
239 return errors.New("invalid key type for RSA-PSS")
242 h := r.hash.New()
257 return nil, errors.New("invalid key type for Ed25519")
266 return errors.New("invalid key type for Ed25519")
270 return errors.New("invalid Ed25519 signature")
286 return nil, errors.New("unknown key type")