Versions in this module Expand all Collapse all v1 v1.0.0 Feb 9, 2020 Changes in this version + type Database interface + Close func() error + FindKey func(id string) (map[string]interface{}, bool, error) + ListKeys func() ([]string, error) + Remove func(id string) error + Save func(id string, data map[string]interface{}) error + type Key struct + func (k *Key) Attributes() cryptokit.KeyAttributes + func (k *Key) Close() error + func (k *Key) Destroy() error + func (k *Key) Extract() ([]byte, error) + func (k *Key) ID() string + func (k *Key) Length() uint + func (k *Key) Session() cryptokit.Session + func (k *Key) Type() cryptokit.KeyType + type Provider struct + func New(path string, key []byte) (*Provider, error) + func NewWithBolt(path string, key []byte) (*Provider, error) + func NewWithDatabase(db Database) (*Provider, error) + func NewWithVault(address, token, base string) (*Provider, error) + func (p *Provider) Close() error + func (p *Provider) OpenSession() (cryptokit.Session, error) + type Session struct + func (s *Session) Close() error + func (s *Session) Decrypt(mech cryptokit.Mechanism, key cryptokit.Key, in []byte) ([]byte, error) + func (s *Session) Derive(mech cryptokit.Mechanism, key cryptokit.Key, ...) (cryptokit.Key, error) + func (s *Session) Encrypt(mech cryptokit.Mechanism, key cryptokit.Key, in []byte) ([]byte, error) + func (s *Session) FindKey(id string) (cryptokit.Key, bool, error) + func (s *Session) Generate(mech cryptokit.Mechanism, attributes cryptokit.KeyAttributes) (cryptokit.Key, error) + func (s *Session) Hash(mech cryptokit.Mechanism, in []byte) ([]byte, error) + func (s *Session) ListKeys() ([]string, error) + func (s *Session) Translate(mech cryptokit.Mechanism, inKey cryptokit.Key, in []byte, outKey cryptokit.Key) ([]byte, error) + func (s *Session) Unwrap(mech cryptokit.Mechanism, kek cryptokit.Key, key []byte, ...) (cryptokit.Key, error) + func (s *Session) Wrap(mech cryptokit.Mechanism, kek, key cryptokit.Key) ([]byte, error)