Documentation ¶
Index ¶
- type KeyFactory
- type KeyHandler
- type MasterKey
- func (rawMK *MasterKey) DecryptDataKey(_ context.Context, encryptedDataKey model.EncryptedDataKeyI, ...) (model.DataKeyI, error)
- func (rawMK *MasterKey) EncryptDataKey(_ context.Context, dk model.DataKeyI, alg *suite.AlgorithmSuite, ...) (model.EncryptedDataKeyI, error)
- func (rawMK *MasterKey) GenerateDataKey(_ context.Context, alg *suite.AlgorithmSuite, ec suite.EncryptionContext) (model.DataKeyI, error)
- func (rawMK *MasterKey) OwnsDataKey(key model.Key) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyFactory ¶
type KeyFactory struct{}
func (*KeyFactory) NewMasterKey ¶
func (f *KeyFactory) NewMasterKey(args ...interface{}) (model.MasterKey, error)
type KeyHandler ¶
type MasterKey ¶
type MasterKey struct { keys.BaseKey Encrypter encryption.GcmBase // contains filtered or unexported fields }
func NewRawMasterKey ¶
func (*MasterKey) DecryptDataKey ¶
func (rawMK *MasterKey) DecryptDataKey(_ context.Context, encryptedDataKey model.EncryptedDataKeyI, alg *suite.AlgorithmSuite, ec suite.EncryptionContext) (model.DataKeyI, error)
func (*MasterKey) EncryptDataKey ¶
func (rawMK *MasterKey) EncryptDataKey(_ context.Context, dk model.DataKeyI, alg *suite.AlgorithmSuite, ec suite.EncryptionContext) (model.EncryptedDataKeyI, error)
func (*MasterKey) GenerateDataKey ¶
func (rawMK *MasterKey) GenerateDataKey(_ context.Context, alg *suite.AlgorithmSuite, ec suite.EncryptionContext) (model.DataKeyI, error)
Click to show internal directories.
Click to hide internal directories.