crypto

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EncrypterDecrypter

type EncrypterDecrypter interface {
	Encrypt(ctx context.Context, data []byte) ([]byte, error)
	Decrypt(ctx context.Context, data []byte) ([]byte, error)
}

func NewAwsKMSCrypto added in v0.2.0

func NewAwsKMSCrypto(
	ctx context.Context,
	keyID, region string,
) (EncrypterDecrypter, error)

func NewCloudKMSCrypto

func NewCloudKMSCrypto(
	ctx context.Context,
	keyName string,
) (EncrypterDecrypter, error)

Jump to

Keyboard shortcuts

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