Documentation
¶
Overview ¶
Package crypto implements the plugin system for cryptography engines. Specifically, the package implements methods to register cryptosystems and then obtain an initialized engine.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrUnknownCrypto is returned in the event that the New() // function is called with the name of an implementation that // does not exist. ErrUnknownCrypto = errors.New("the specified crypto engine does not exist") // ErrInternalError is used to mask errors from the internal // crypto system that are unrecoverable. This error is safe // to return whereas an error from a module may expose secure // information. ErrInternalError = errors.New("the crypto system has encountered an internal error") // ErrAuthorizationFailure is returned in the event the crypto // module determines that the provided secret does not match // the one secured earlier. ErrAuthorizationFailure = errors.New("authorization failed - bad credentials") )
Functions ¶
func Register ¶
Register takes in a name for the engine and a function signature to bind to that name.
func SetParentLogger ¶ added in v0.3.4
func SetParentLogger(l hclog.Logger)
SetParentLogger sets the parent logger for this instance.
Types ¶
Click to show internal directories.
Click to hide internal directories.