package gcmutil

import "github.com/testovoleg/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-20230731113359-3e87cabb9327 (latest)
Published
Jul 31, 2023
Platform
linux/amd64
Imports
3 packages
Last checked
1 month ago

Tools for package owners.