provider

package
v0.0.0-...-36387be Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AwsKmsCryptographicMaterialsProvider

type AwsKmsCryptographicMaterialsProvider struct {
	KMSKeyURI         string
	EncryptionContext map[string]string
	DelegatedKey      *delegatedkeys.TinkDelegatedKey
	MaterialStore     *store.MetaStore
}

AwsKmsCryptographicMaterialsProvider uses AWS KMS for key management and Tink for cryptographic operations.

func (*AwsKmsCryptographicMaterialsProvider) DecryptionMaterials

func (p *AwsKmsCryptographicMaterialsProvider) DecryptionMaterials(ctx context.Context, materialName string, version int64) (materials.CryptographicMaterials, error)

func (*AwsKmsCryptographicMaterialsProvider) EncryptionMaterials

EncryptionMaterials retrieves and stores encryption materials for the given encryption context.

func (*AwsKmsCryptographicMaterialsProvider) TableName

type CryptographicMaterialsProvider

type CryptographicMaterialsProvider interface {
	EncryptionMaterials(ctx context.Context, materialName string) (materials.CryptographicMaterials, error)
	DecryptionMaterials(ctx context.Context, materialName string, version int64) (materials.CryptographicMaterials, error)
	TableName() string
}

func NewAwsKmsCryptographicMaterialsProvider

func NewAwsKmsCryptographicMaterialsProvider(keyURI string, encryptionContext map[string]string, materialStore *store.MetaStore) (CryptographicMaterialsProvider, error)

NewAwsKmsCryptographicMaterialsProvider initializes a provider with the specified AWS KMS key ID, encryption context, and material store.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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