chacha20

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2021 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Overview

Package chacha20 provides handy wrappers to encrypt with chacha20poly1305.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecryptChacha20Poly1305

func DecryptChacha20Poly1305(key []byte, msg []byte) []byte

DecryptChacha20Poly1305 decrypts a byte slice that has been encrypted with EncryptChacha20Poly1305.

func EncryptChacha20Poly1305

func EncryptChacha20Poly1305(key []byte, nonce []byte, msg []byte) []byte

EncryptChacha20Poly1305 encrypts a byte slice using the given 256bit key and 12 byte long nonce. The nonce will be prepended to the ciphertext.

Types

This section is empty.

Jump to

Keyboard shortcuts

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