Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Encryptor ¶
type Encryptor interface { Encrypt(plaintext []byte) ([]byte, error) Decrypt(ciphertext []byte) ([]byte, error) }
Encryptor does symmetric encryption and decryption.
type Option ¶
type Option func(*config)
Option is optional configuration of the encryptor.
func WithBlockCypherProvider ¶
WithBlockCypherProvider overwrites the provider for the block cipher.
func WithRandomDataFunc ¶
WithRandomDataFunc overwrites the random data function.
Click to show internal directories.
Click to hide internal directories.