cipher

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2026 License: GPL-3.0, LGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const GCMNonceSize = 12

Variables

This section is empty.

Functions

func DecryptGCM

func DecryptGCM(key, nonce, ciphertext, additionalData []byte) ([]byte, error)

DecryptGCM decrypts ciphertext using AES-GCM with the given key and nonce.

func EncryptGCM

func EncryptGCM(dest, key, nonce, plaintext, additionalData []byte) ([]byte, error)

EncryptGCM encrypts plaintext using AES-GCM with the given key and nonce. The ciphertext is appended to dest, which must not overlap with plaintext.

Types

This section is empty.

Jump to

Keyboard shortcuts

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