encryption

package
v0.0.0-...-b180f38 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AESEncryptor

type AESEncryptor struct {
	// contains filtered or unexported fields
}

func NewAESEncryptor

func NewAESEncryptor(key []byte, tracer tracing.Tracer) (*AESEncryptor, error)

func (*AESEncryptor) Decrypt

func (e *AESEncryptor) Decrypt(ctx context.Context, data []byte) ([]byte, error)

func (*AESEncryptor) Encrypt

func (e *AESEncryptor) Encrypt(ctx context.Context, data []byte) ([]byte, error)

type Encryptor

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

Jump to

Keyboard shortcuts

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