Documentation ¶
Index ¶
- Constants
- func ReverseBytes(in []byte) []byte
- type Access
- type Envelope
- type EnvelopeInfo
- type 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 (s *TestSeal) Init(_ context.Context) error
- func (t *TestSeal) KeyID() string
- func (t *TestSeal) SealType() string
Constants ¶
View Source
const ( Shamir = "shamir" PKCS11 = "pkcs11" AliCloudKMS = "alicloudkms" AWSKMS = "awskms" GCPCKMS = "gcpckms" AzureKeyVault = "azurekeyvault" Test = "test-auto" )
Variables ¶
This section is empty.
Functions ¶
func ReverseBytes ¶ added in v1.0.0
reverseBytes is a helper to simulate "encryption/decryption" on protected values.
Types ¶
type Access ¶ added in v1.0.0
type Access interface { SealType() string KeyID() string Init(context.Context) error Finalize(context.Context) error Encrypt(context.Context, []byte) (*physical.EncryptedBlobInfo, error) Decrypt(context.Context, *physical.EncryptedBlobInfo) ([]byte, error) }
Access is the embedded implemention of autoSeal that contains logic specific to encrypting and decrypting data, or in this case keys.
type Envelope ¶ added in v1.0.0
type Envelope struct{}
func NewEnvelope ¶ added in v1.0.0
func NewEnvelope() *Envelope
type EnvelopeInfo ¶ added in v1.0.0
Click to show internal directories.
Click to hide internal directories.