Documentation
¶
Index ¶
- type Crypto
- func (c *Crypto) ComputeMAC(data []byte, kh interface{}) ([]byte, error)
- 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
- func (c *Crypto) VerifyMAC(mac, data []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
ComputeMACValue []byte
ComputeMACErr error
VerifyMACErr error
}
Crypto mock
func (*Crypto) ComputeMAC ¶ added in v0.1.3
ComputeMAC returns a mocked value and a mocked error
Click to show internal directories.
Click to hide internal directories.