daead

package
v0.16.1 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(kh *keyset.Handle, ciphertext []byte, associatedData []byte) ([]byte, error)

Decrypt takes a keyset handle, ciphertext, and associated data and returns plaintext

func Encrypt

func Encrypt(kh *keyset.Handle, plaintext []byte, associatedData []byte) ([]byte, error)

Encrypt takes a keyset handle, plaintext, and associated data and returns ciphertext

func NewKeyHandle

func NewKeyHandle() (*keyset.Handle, error)

NewKeyHandle creates a new keyset and uses it to encrypt and decrypt a message

Types

This section is empty.

Jump to

Keyboard shortcuts

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