Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cipher ¶
type Cipher interface { //Decrypt decrypts data with supplied key Decrypt(ctx context.Context, key *Key, data []byte) ([]byte, error) //Encrypt encrypts data with supplied key Encrypt(ctx context.Context, key *Key, data []byte) ([]byte, error) }
Cipher defines cipher interface
Click to show internal directories.
Click to hide internal directories.