xchacha20aead

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// Overhead is the size of mac address
	BlockOverhead = 16

	// Key size
	KeySize = 32

	// Initial nonce size required by XChaCha20Poly1305Init
	InitialNonceSize = 32
)

Variables

This section is empty.

Functions

func MakePlainText

func MakePlainText(size int) []byte

func XChaCha20Poly1305Init

func XChaCha20Poly1305Init(key []byte, nonce []byte) (*cipherState, error)

key : 32 byte nonce : 32 byte = 16 for key derivation + 16 for initial nonce

Types

This section is empty.

Jump to

Keyboard shortcuts

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