Lines Matching refs:crypto
23 supportsKey(key crypto.PrivateKey) bool
24 signMessage(key crypto.PrivateKey, config *Config, msg []byte) ([]byte, error)
25 verifyMessage(key crypto.PublicKey, msg, sig []byte) error
28 func selectSignatureAlgorithm(version uint16, key crypto.PrivateKey, config *Config, peerSigAlgs []…
53 func signMessage(version uint16, key crypto.PrivateKey, config *Config, sigAlg signatureAlgorithm, …
69 func verifyMessage(version uint16, key crypto.PublicKey, config *Config, sigAlg signatureAlgorithm,…
83 hash crypto.Hash
87 if r.hash == crypto.MD5SHA1 {
101 func (r *rsaPKCS1Signer) supportsKey(key crypto.PrivateKey) bool {
106 func (r *rsaPKCS1Signer) signMessage(key crypto.PrivateKey, config *Config, msg []byte) ([]byte, er…
115 func (r *rsaPKCS1Signer) verifyMessage(key crypto.PublicKey, msg, sig []byte) error {
128 hash crypto.Hash
141 func (e *ecdsaSigner) supportsKey(key crypto.PrivateKey) bool {
164 func (e *ecdsaSigner) signMessage(key crypto.PrivateKey, config *Config, msg []byte) ([]byte, error…
187 func (e *ecdsaSigner) verifyMessage(key crypto.PublicKey, msg, sig []byte) error {
215 hash crypto.Hash
218 func (r *rsaPSSSigner) supportsKey(key crypto.PrivateKey) bool {
223 func (r *rsaPSSSigner) signMessage(key crypto.PrivateKey, config *Config, msg []byte) ([]byte, erro…
234 func (r *rsaPSSSigner) verifyMessage(key crypto.PublicKey, msg, sig []byte) error {
250 return &rsaPKCS1Signer{crypto.MD5SHA1}, nil
252 return &ecdsaSigner{version, config, nil, crypto.SHA1}, nil
262 return &rsaPKCS1Signer{crypto.MD5}, nil
266 return &rsaPKCS1Signer{crypto.SHA1}, nil
270 return &rsaPKCS1Signer{crypto.SHA256}, nil
274 return &rsaPKCS1Signer{crypto.SHA384}, nil
278 return &rsaPKCS1Signer{crypto.SHA512}, nil
281 return &ecdsaSigner{version, config, nil, crypto.SHA1}, nil
283 return &ecdsaSigner{version, config, elliptic.P256(), crypto.SHA256}, nil
285 return &ecdsaSigner{version, config, elliptic.P384(), crypto.SHA384}, nil
287 return &ecdsaSigner{version, config, elliptic.P521(), crypto.SHA512}, nil
289 return &rsaPSSSigner{crypto.SHA256}, nil
291 return &rsaPSSSigner{crypto.SHA384}, nil
293 return &rsaPSSSigner{crypto.SHA512}, nil