envelope

package
v0.2.11 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2023 License: Apache-2.0 Imports: 7 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Transformer

func Transformer(envelopeService Service, transformerFactory encryption.TransformerFactoryFunc) (value.Transformer, error)

Transformer returns an envelope encryption value transformer.

Types

type Service

type Service interface {
	Decrypt(ctx context.Context, encrypted []byte) ([]byte, error)
	Encrypt(ctx context.Context, cleartext []byte) ([]byte, error)
}

Service declares envelope encryption service contract.

Jump to

Keyboard shortcuts

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