Versions in this module Expand all Collapse all v1 v1.1.7 Apr 1, 2021 Changes in this version + const HSMAutoDeprecated + const PKCS11 + const Shamir + const Test + const Transit + type Access interface + Decrypt func(context.Context, *physical.EncryptedBlobInfo) ([]byte, error) + Encrypt func(context.Context, []byte) (*physical.EncryptedBlobInfo, error) + Finalize func(context.Context) error + Init func(context.Context) error + KeyID func() string + SealType func() string + type Envelope struct + func NewEnvelope() *Envelope + func (e *Envelope) Decrypt(data *EnvelopeInfo) ([]byte, error) + func (e *Envelope) Encrypt(plaintext []byte) (*EnvelopeInfo, error) + type EnvelopeInfo struct + Ciphertext []byte + IV []byte + Key []byte + type TestSeal struct + Type string + func NewTestSeal(secret []byte) *TestSeal + func (t *TestSeal) Decrypt(_ context.Context, dwi *physical.EncryptedBlobInfo) ([]byte, error) + func (t *TestSeal) Encrypt(_ context.Context, plaintext []byte) (*physical.EncryptedBlobInfo, error) + func (t *TestSeal) Finalize(_ context.Context) error + func (t *TestSeal) Init(_ context.Context) error + func (t *TestSeal) KeyID() string + func (t *TestSeal) SealType() string