Documentation
¶
Overview ¶
Package crypto provides common errors and encryption configuration.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrDecryption is returned when decryption fails. ErrDecryption = errors.New("decryption error") // ErrEncryption is returned when encryption fails. ErrEncryption = errors.New("encryption error") )
Functions ¶
This section is empty.
Types ¶
type DecrypterConfig ¶ added in v0.3.0
type DecrypterConfig struct {
ClientCfg clientconfig.ClientConfig
}
DecrypterConfig is the configuration for the decrypter.
type EncrypterConfig ¶ added in v0.3.0
type EncrypterConfig struct { ClientCfg clientconfig.ClientConfig Algorithm *suite.AlgorithmSuite FrameLength int }
EncrypterConfig is the configuration for the encrypter.
Click to show internal directories.
Click to hide internal directories.