Documentation ¶
Index ¶
- func Decrypt(bytes []byte, encryptionKey []byte) ([]byte, error)
- func Encrypt(bytes []byte, encryptionKey []byte) ([]byte, error)
- func EncryptThenMAC(bytes []byte, encryptionKey []byte, authenticationKey []byte) ([]byte, error)
- func MACThenDecrypt(bytes []byte, encryptionKey []byte, authenticationKey []byte) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncryptThenMAC ¶
EncryptThenMAC encrypts the given bytes with the given encryption key and appends an HMAC of the encrypted bytes with the given authentication key.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.