chacha20poly1305

package
v0.0.0-...-c3ad350 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidParams = errors.New("chacha20poly1305: invalid params")

Functions

func Decrypt

func Decrypt(key32 []byte, nonce8 string, ciphertext []byte) ([]byte, error)

Decrypt - decrypt without verify

func DecryptAndVerify

func DecryptAndVerify(key32, dst, nonce8, ciphertext, verify []byte) ([]byte, error)

func Encrypt

func Encrypt(key32 []byte, nonce8 string, plaintext []byte) ([]byte, error)

Encrypt - encrypt without seal

func EncryptAndSeal

func EncryptAndSeal(key32, dst, nonce8, plaintext, verify []byte) ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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