keysecurity

package
v0.51.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewInsecurePlaintextClient

func NewInsecurePlaintextClient() registry.KMSClient

NewClient returns a fake KMS client which will handle keys with uriPrefix prefix. keyURI must have the following format: 'insecure-plaintext-kms://'.

func NewLocalKeyEncryptionClient

func NewLocalKeyEncryptionClient(jsonCleartextKeyEncryptionKeysetReader io.Reader) (registry.KMSClient, error)

NewLocalKeyEncryptionClient returns a KMS client which will handle encryption locally using the supplied, shared Tink keyring. It is up to the implementer to ensure that the supplied keyring is being handled securely. keyURI must have the following format: 'local-key-encryption://'.

Types

type KeyEncrypter

type KeyEncrypter interface {
	EncryptKeyToBase64Ciphertext(kmsURI string, data []byte, publicKeyBase64Encoded string) (string, error)
	DecryptKeyFromBase64Ciphertext(kmsURI string, ciphertext string, publicKeyBase64Encoded string) ([]byte, error)
}

func NewKeyEncrypterTinkAead

func NewKeyEncrypterTinkAead() (KeyEncrypter, error)

Jump to

Keyboard shortcuts

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