Documentation
¶
Overview ¶
Package crypto implements crypto interfaces.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RSAPSS ¶
type RSAPSS struct {
// contains filtered or unexported fields
}
RSAPSS represents RSA PSS algo for signing/verification (with SHA256 as digest calculation function).
func NewRSAPSS ¶
func NewRSAPSS(privKey rsa.PrivateKey, pubKey rsa.PublicKey) RSAPSS
NewRSAPSS creates new RSAPSS object.
type Signer ¶
type Signer interface {
// Name returns name of the crypto algorithm, used by signer.
Name() string
// Sign returns signature for passed data.
Sign(data []byte) ([]byte, error)
}
Signer implements high-level API for package signing.
type SignerVerifier ¶
SignerVerifier common interface.
Click to show internal directories.
Click to hide internal directories.