raw

package
v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 22, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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 KeyHandler interface {
	model.MasterKey
	// contains filtered or unexported methods
}

type MasterKey

type MasterKey struct {
	keys.BaseKey

	Encrypter encryption.GcmBase
	// contains filtered or unexported fields
}

func NewRawMasterKey

func NewRawMasterKey(providerID, keyID string, rawKey []byte) (*MasterKey, error)

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 (*MasterKey) GenerateDataKey

func (rawMK *MasterKey) GenerateDataKey(_ context.Context, alg *suite.AlgorithmSuite, ec suite.EncryptionContext) (model.DataKeyI, error)

func (*MasterKey) OwnsDataKey

func (rawMK *MasterKey) OwnsDataKey(key model.Key) bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL