Documentation ¶
Index ¶
- type Database
- type Key
- type Provider
- type Session
- 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)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Key ¶
type Key struct {
// contains filtered or unexported fields
}
func (*Key) Attributes ¶
func (k *Key) Attributes() cryptokit.KeyAttributes
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
func NewWithDatabase ¶
func NewWithVault ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.