Documentation ¶
Index ¶
- type Crypto
- func (c *Crypto) Decrypt(cipher, aad, nonce []byte, kh interface{}) ([]byte, error)
- func (c *Crypto) Encrypt(msg, aad []byte, kh interface{}) ([]byte, []byte, error)
- func (c *Crypto) Sign(msg []byte, kh interface{}) ([]byte, error)
- func (c *Crypto) Verify(signature, msg []byte, kh interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Crypto ¶
type Crypto struct { EncryptValue []byte EncryptNonceValue []byte EncryptErr error DecryptValue []byte DecryptErr error SignValue []byte SignErr error VerifyErr error }
Crypto mock
Click to show internal directories.
Click to hide internal directories.