crypt

package module
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: May 18, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecryptBytes

func DecryptBytes(dek, data []byte) ([]byte, error)

DecryptBytes decrypts data (nonce||ciphertext||tag) produced by EncryptBytes.

func EncryptBytes

func EncryptBytes(dek, plaintext []byte) ([]byte, error)

EncryptBytes encrypts plaintext with AES-256-GCM using dek, returning nonce||ciphertext||tag.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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