package
Version:
v1.1.0
Opens a new window with list of versions in this module.
Published: Aug 1, 2018
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
NewCodec returns a new no-op implementation of crypto.Codec
type Codec struct {
EncryptBehavior func(plaintext []byte) ([]byte, error)
DecryptBehavior func(ciphertext []byte) ([]byte, error)
}
Codec is an implementation of crypto.Codec used to facilitate testing
Decrypt delegates decryption to an overridable function
Encrypt delegates encyption to an overridable function
Source Files
¶
Click to show internal directories.
Click to hide internal directories.