Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶ added in v0.363.0
type Builder struct {
// contains filtered or unexported fields
}
Builder constructs a DataEncryptor when used with a provider. Use a chain of With* methods to configure the builder.
func NewBuilder ¶ added in v0.363.0
func NewBuilder() Builder
func (Builder) Build ¶ added in v0.363.0
func (b Builder) Build(ctx context.Context, provider api.KeyStoreProvider) (api.DataEncryptor, error)
type KMSEncryptor ¶ added in v0.363.0
type KMSEncryptor struct {
// contains filtered or unexported fields
}
KMSEncryptor encrypts and decrypts using a KMS key via tink.
func NewKMSEncryptorWithKMS ¶ added in v0.363.0
func (*KMSEncryptor) Decrypt ¶ added in v0.363.0
func (k *KMSEncryptor) Decrypt(encrypted api.Encrypted) ([]byte, error)
func (*KMSEncryptor) Encrypt ¶ added in v0.363.0
func (k *KMSEncryptor) Encrypt(cleartext []byte, dest api.Encrypted) error
func (*KMSEncryptor) GetEncryptedKeyset ¶ added in v0.363.0
func (k *KMSEncryptor) GetEncryptedKeyset() []byte
type NoOpEncryptor ¶ added in v0.363.0
type NoOpEncryptor struct{}
NoOpEncryptor does not encrypt and just passes the input as is.
func NewNoOpEncryptor ¶ added in v0.363.0
func NewNoOpEncryptor() NoOpEncryptor
Click to show internal directories.
Click to hide internal directories.