Documentation ¶
Index ¶
- type Options
- type OptionsFunc
- type RawKeyProvider
- func (rawKP *RawKeyProvider[KT]) AddMasterKey(keyID string) (model.MasterKey, error)
- func (rawKP *RawKeyProvider[KT]) DecryptDataKey(ctx context.Context, encryptedDataKey model.EncryptedDataKeyI, ...) (model.DataKeyI, error)
- func (rawKP *RawKeyProvider[KT]) DecryptDataKeyFromList(ctx context.Context, encryptedDataKeys []model.EncryptedDataKeyI, ...) (model.DataKeyI, error)
- func (rawKP *RawKeyProvider[KT]) MasterKeyForDecrypt(_ context.Context, _ model.KeyMeta) (model.MasterKey, error)
- func (rawKP *RawKeyProvider[KT]) MasterKeysForDecryption() []model.MasterKey
- func (rawKP *RawKeyProvider[KT]) MasterKeysForEncryption(_ context.Context, _ suite.EncryptionContext) (model.MasterKey, []model.MasterKey, error)
- func (rawKP *RawKeyProvider[KT]) NewMasterKey(_ context.Context, keyID string) (model.MasterKey, error)
- func (rawKP *RawKeyProvider[KT]) ProviderID() string
- func (rawKP *RawKeyProvider[KT]) ProviderKind() types.ProviderKind
- func (rawKP *RawKeyProvider[KT]) ValidateMasterKey(keyID string) error
- func (rawKP *RawKeyProvider[KT]) ValidateProviderID(otherID string) error
- type RawProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OptionsFunc ¶
func WithKeyFactory ¶
func WithKeyFactory(keyFactory model.MasterKeyFactory) OptionsFunc
func WithKeyProvider ¶
func WithKeyProvider(keyProvider model.BaseKeyProvider) OptionsFunc
func WithStaticKey ¶
func WithStaticKey(keyID string, key []byte) OptionsFunc
type RawKeyProvider ¶
func NewWithOpts ¶
func (*RawKeyProvider[KT]) AddMasterKey ¶
func (rawKP *RawKeyProvider[KT]) AddMasterKey(keyID string) (model.MasterKey, error)
func (*RawKeyProvider[KT]) DecryptDataKey ¶
func (rawKP *RawKeyProvider[KT]) DecryptDataKey(ctx context.Context, encryptedDataKey model.EncryptedDataKeyI, alg *suite.AlgorithmSuite, ec suite.EncryptionContext) (model.DataKeyI, error)
func (*RawKeyProvider[KT]) DecryptDataKeyFromList ¶
func (rawKP *RawKeyProvider[KT]) DecryptDataKeyFromList(ctx context.Context, encryptedDataKeys []model.EncryptedDataKeyI, alg *suite.AlgorithmSuite, ec suite.EncryptionContext) (model.DataKeyI, error)
func (*RawKeyProvider[KT]) MasterKeyForDecrypt ¶
func (*RawKeyProvider[KT]) MasterKeysForDecryption ¶
func (rawKP *RawKeyProvider[KT]) MasterKeysForDecryption() []model.MasterKey
func (*RawKeyProvider[KT]) MasterKeysForEncryption ¶
func (rawKP *RawKeyProvider[KT]) MasterKeysForEncryption(_ context.Context, _ suite.EncryptionContext) (model.MasterKey, []model.MasterKey, error)
func (*RawKeyProvider[KT]) NewMasterKey ¶
func (*RawKeyProvider[KT]) ProviderID ¶
func (rawKP *RawKeyProvider[KT]) ProviderID() string
func (*RawKeyProvider[KT]) ProviderKind ¶
func (rawKP *RawKeyProvider[KT]) ProviderKind() types.ProviderKind
func (*RawKeyProvider[KT]) ValidateMasterKey ¶
func (rawKP *RawKeyProvider[KT]) ValidateMasterKey(keyID string) error
func (*RawKeyProvider[KT]) ValidateProviderID ¶
func (rawKP *RawKeyProvider[KT]) ValidateProviderID(otherID string) error
type RawProvider ¶
type RawProvider interface { model.MasterKeyProvider // contains filtered or unexported methods }
Click to show internal directories.
Click to hide internal directories.