Lines Matching refs:crypto
25 supportsKey(key crypto.PrivateKey) bool
26 signMessage(key crypto.PrivateKey, config *Config, msg []byte) ([]byte, error)
27 verifyMessage(key crypto.PublicKey, msg, sig []byte) error
30 func selectSignatureAlgorithm(version uint16, key crypto.PrivateKey, config *Config, peerSigAlgs []…
55 func signMessage(version uint16, key crypto.PrivateKey, config *Config, sigAlg signatureAlgorithm, …
71 func verifyMessage(version uint16, key crypto.PublicKey, config *Config, sigAlg signatureAlgorithm,…
85 hash crypto.Hash
89 if r.hash == crypto.MD5SHA1 {
103 func (r *rsaPKCS1Signer) supportsKey(key crypto.PrivateKey) bool {
108 func (r *rsaPKCS1Signer) signMessage(key crypto.PrivateKey, config *Config, msg []byte) ([]byte, er…
117 func (r *rsaPKCS1Signer) verifyMessage(key crypto.PublicKey, msg, sig []byte) error {
130 hash crypto.Hash
143 func (e *ecdsaSigner) supportsKey(key crypto.PrivateKey) bool {
166 func (e *ecdsaSigner) signMessage(key crypto.PrivateKey, config *Config, msg []byte) ([]byte, error…
189 func (e *ecdsaSigner) verifyMessage(key crypto.PublicKey, msg, sig []byte) error {
217 hash crypto.Hash
220 func (r *rsaPSSSigner) supportsKey(key crypto.PrivateKey) bool {
225 func (r *rsaPSSSigner) signMessage(key crypto.PrivateKey, config *Config, msg []byte) ([]byte, erro…
236 func (r *rsaPSSSigner) verifyMessage(key crypto.PublicKey, msg, sig []byte) error {
249 func (e *ed25519Signer) supportsKey(key crypto.PrivateKey) bool {
254 func (e *ed25519Signer) signMessage(key crypto.PrivateKey, config *Config, msg []byte) ([]byte, err…
263 func (e *ed25519Signer) verifyMessage(key crypto.PublicKey, msg, sig []byte) error {
282 return &rsaPKCS1Signer{crypto.MD5SHA1}, nil
284 return &ecdsaSigner{version, config, nil, crypto.SHA1}, nil
297 return &rsaPKCS1Signer{crypto.MD5}, nil
301 return &rsaPKCS1Signer{crypto.SHA1}, nil
305 return &rsaPKCS1Signer{crypto.SHA256}, nil
309 return &rsaPKCS1Signer{crypto.SHA384}, nil
313 return &rsaPKCS1Signer{crypto.SHA512}, nil
316 return &ecdsaSigner{version, config, nil, crypto.SHA1}, nil
318 return &ecdsaSigner{version, config, elliptic.P256(), crypto.SHA256}, nil
320 return &ecdsaSigner{version, config, elliptic.P384(), crypto.SHA384}, nil
322 return &ecdsaSigner{version, config, elliptic.P521(), crypto.SHA512}, nil
324 return &rsaPSSSigner{crypto.SHA256}, nil
326 return &rsaPSSSigner{crypto.SHA384}, nil
328 return &rsaPSSSigner{crypto.SHA512}, nil