Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Key ¶
type Key struct {
// contains filtered or unexported fields
}
Key is a wrapper for a symmetric key.
func (*Key) Bytes ¶
Bytes returns raw key bytes. This is cleaner than marshal when your not dealing with an interface type.
func (*Key) Decrypt ¶
Decrypt uses key (:32 key, 32:12 nonce) to perform AES-256 GCM decryption on ciphertext.
Click to show internal directories.
Click to hide internal directories.