crypto

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(ctx context.Context, ciphertext []byte) ([]byte, error)

Decrypt ciphertext by envelope encryption.

func Encrypt

func Encrypt(ctx context.Context, kmsKeyID string, plaintext []byte) ([]byte, error)

Encrypt plaintext by envelope encryption.

Types

type Ciphertext

type Ciphertext struct {
	Blob             []byte
	EncryptedDataKey []byte
}

Ciphertext.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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