Versions in this module Expand all Collapse all v0 v0.0.2 Jan 22, 2021 v0.0.1 Jan 22, 2021 Changes in this version + var ErrKeyValueNotFound = errors.New("value for key not found") + type ConfigBackend interface + Lookup func(key string) (interface{}, bool) + type ConfigProvider func() ([]ConfigBackend, error) + type CryptoSuite interface + GetHash func(opts HashOpts) (h hash.Hash, err error) + GetKey func(ski []byte) (k Key, err error) + Hash func(msg []byte, opts HashOpts) (hash []byte, err error) + KeyGen func(opts KeyGenOpts) (k Key, err error) + KeyImport func(raw interface{}, opts KeyImportOpts) (k Key, err error) + Sign func(k Key, digest []byte, opts SignerOpts) (signature []byte, err error) + Verify func(k Key, signature, digest []byte, opts SignerOpts) (valid bool, err error) + type CryptoSuiteConfig interface + IsSecurityEnabled func() bool + KeyStorePath func() string + SecurityAlgorithm func() string + SecurityLevel func() int + SecurityProvider func() string + SecurityProviderLabel func() string + SecurityProviderLibPath func() string + SecurityProviderPin func() string + SoftVerify func() bool + type HashOpts interface + Algorithm func() string + type KVStore interface + Delete func(key interface{}) error + Load func(key interface{}) (interface{}, error) + Store func(key interface{}, value interface{}) error + type Key interface + Bytes func() ([]byte, error) + Private func() bool + PublicKey func() (Key, error) + SKI func() []byte + Symmetric func() bool + type KeyGenOpts interface + Algorithm func() string + Ephemeral func() bool + type KeyImportOpts interface + Algorithm func() string + Ephemeral func() bool + type Providers interface + CryptoSuite func() CryptoSuite + SigningManager func() SigningManager + type SignerOpts interface + type SigningManager interface + Sign func([]byte, Key) ([]byte, error)