Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrEncryptionConfig is used as an error when given string representation if the // key can not be interpreted ErrInvalidEncryptionConfig = errors.New("invalid encryption config") ErrInvalidEncryptionConfigKeyType = fmt.Errorf("%w: wrong key type", ErrInvalidEncryptionConfig) ErrInvalidEncryptionConfigKeySize = fmt.Errorf("%w: wrong XChaCha20 key size, expected %d bytes", ErrInvalidEncryptionConfig, chacha20.KeySize+1) ErrInvalidEncryptionConfigIVSize = fmt.Errorf("%w: wrong XChaCha20 iv size, expected %d bytes", ErrInvalidEncryptionConfig, chacha20.NonceSizeX) )
Functions ¶
Types ¶
type IVGenerator ¶
func NewIVGenerator ¶
func NewIVGenerator(t common.BlobType) IVGenerator
type KeyGenerator ¶
func NewKeyGenerator ¶
func NewKeyGenerator(t common.BlobType) KeyGenerator
Click to show internal directories.
Click to hide internal directories.