Documentation ¶
Index ¶
- func Sign(key, data []byte) ([]byte, error)
- func SignBase64(key, data []byte) (string, error)
- func SignHex(key, data []byte) (string, error)
- func Verify(key, data, sig []byte) error
- func VerifyBase64(key, data []byte, sig string) error
- func VerifyHex(key, data []byte, sig string) error
- type Signer
- type Verifier
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SignBase64 ¶
func VerifyBase64 ¶
Types ¶
type Signer ¶
type Signer struct {
Key *rsa.PrivateKey
}
type Verifier ¶
func NewVerifier ¶
Click to show internal directories.
Click to hide internal directories.