Documentation ¶
Index ¶
- type KeyProvider
- func (kp *KeyProvider) DecryptDataKey(ctx context.Context, MKP model.MasterKeyProvider, ...) (model.DataKeyI, error)
- func (kp *KeyProvider) DecryptDataKeyFromList(ctx context.Context, MKP model.MasterKeyProvider, ...) (model.DataKeyI, error)
- func (kp *KeyProvider) GoString() string
- func (kp *KeyProvider) ID() string
- func (kp *KeyProvider) Kind() types.ProviderKind
- func (kp *KeyProvider) String() string
- func (kp *KeyProvider) VendOnDecrypt() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyProvider ¶
type KeyProvider struct {
// contains filtered or unexported fields
}
func NewKeyProvider ¶
func NewKeyProvider(providerID string, providerKind types.ProviderKind, vendOnDecrypt bool) *KeyProvider
func (*KeyProvider) DecryptDataKey ¶
func (kp *KeyProvider) DecryptDataKey(ctx context.Context, MKP model.MasterKeyProvider, encryptedDataKey model.EncryptedDataKeyI, alg *suite.AlgorithmSuite, ec suite.EncryptionContext) (model.DataKeyI, error)
func (*KeyProvider) DecryptDataKeyFromList ¶
func (kp *KeyProvider) DecryptDataKeyFromList(ctx context.Context, MKP model.MasterKeyProvider, encryptedDataKeys []model.EncryptedDataKeyI, alg *suite.AlgorithmSuite, ec suite.EncryptionContext) (model.DataKeyI, error)
func (*KeyProvider) GoString ¶
func (kp *KeyProvider) GoString() string
func (*KeyProvider) ID ¶
func (kp *KeyProvider) ID() string
func (*KeyProvider) Kind ¶
func (kp *KeyProvider) Kind() types.ProviderKind
func (*KeyProvider) String ¶
func (kp *KeyProvider) String() string
func (*KeyProvider) VendOnDecrypt ¶
func (kp *KeyProvider) VendOnDecrypt() bool
Click to show internal directories.
Click to hide internal directories.