package gcmutil

import "github.com/ZED-Magdy/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
v1.0.2 (latest)
Published
Dec 17, 2022
Platform
linux/amd64
Imports
3 packages
Last checked
21 hours ago

Tools for package owners.