Lines Matching refs:crypto
24 supportsKey(key crypto.PrivateKey) bool
25 signMessage(key crypto.PrivateKey, config *Config, msg []byte) ([]byte, error)
26 verifyMessage(key crypto.PublicKey, msg, sig []byte) error
29 func selectSignatureAlgorithm(version uint16, key crypto.PrivateKey, config *Config, peerSigAlgs []…
54 func signMessage(version uint16, key crypto.PrivateKey, config *Config, sigAlg signatureAlgorithm, …
70 func verifyMessage(version uint16, key crypto.PublicKey, config *Config, sigAlg signatureAlgorithm,…
84 hash crypto.Hash
88 if r.hash == crypto.MD5SHA1 {
102 func (r *rsaPKCS1Signer) supportsKey(key crypto.PrivateKey) bool {
107 func (r *rsaPKCS1Signer) signMessage(key crypto.PrivateKey, config *Config, msg []byte) ([]byte, er…
116 func (r *rsaPKCS1Signer) verifyMessage(key crypto.PublicKey, msg, sig []byte) error {
129 hash crypto.Hash
142 func (e *ecdsaSigner) supportsKey(key crypto.PrivateKey) bool {
165 func (e *ecdsaSigner) signMessage(key crypto.PrivateKey, config *Config, msg []byte) ([]byte, error…
188 func (e *ecdsaSigner) verifyMessage(key crypto.PublicKey, msg, sig []byte) error {
216 hash crypto.Hash
219 func (r *rsaPSSSigner) supportsKey(key crypto.PrivateKey) bool {
224 func (r *rsaPSSSigner) signMessage(key crypto.PrivateKey, config *Config, msg []byte) ([]byte, erro…
235 func (r *rsaPSSSigner) verifyMessage(key crypto.PublicKey, msg, sig []byte) error {
248 func (e *ed25519Signer) supportsKey(key crypto.PrivateKey) bool {
253 func (e *ed25519Signer) signMessage(key crypto.PrivateKey, config *Config, msg []byte) ([]byte, err…
262 func (e *ed25519Signer) verifyMessage(key crypto.PublicKey, msg, sig []byte) error {
281 return &rsaPKCS1Signer{crypto.MD5SHA1}, nil
283 return &ecdsaSigner{version, config, nil, crypto.SHA1}, nil
296 return &rsaPKCS1Signer{crypto.MD5}, nil
300 return &rsaPKCS1Signer{crypto.SHA1}, nil
304 return &rsaPKCS1Signer{crypto.SHA256}, nil
308 return &rsaPKCS1Signer{crypto.SHA384}, nil
312 return &rsaPKCS1Signer{crypto.SHA512}, nil
315 return &ecdsaSigner{version, config, nil, crypto.SHA1}, nil
317 return &ecdsaSigner{version, config, elliptic.P256(), crypto.SHA256}, nil
319 return &ecdsaSigner{version, config, elliptic.P384(), crypto.SHA384}, nil
321 return &ecdsaSigner{version, config, elliptic.P521(), crypto.SHA512}, nil
323 return &rsaPSSSigner{crypto.SHA256}, nil
325 return &rsaPSSSigner{crypto.SHA384}, nil
327 return &rsaPSSSigner{crypto.SHA512}, nil