package gcmutil

import "github.com/LoL-Human/whatsmeow/util/gcmutil"

Index

Functions

func Decrypt

func Decrypt(secretKey, iv, ciphertext, additionalData []byte) ([]byte, error)

func Encrypt

func Encrypt(secretKey, iv, plaintext, additionalData []byte) ([]byte, error)

func Prepare

func Prepare(secretKey []byte) (gcm cipher.AEAD, err error)

Source Files

gcm.go

Version
v0.0.0-20230430105658-b4c86c681ebd (latest)
Published
Apr 30, 2023
Platform
linux/amd64
Imports
3 packages
Last checked
3 months ago

Tools for package owners.