aead

package
v1.1.1-0...-7cefdf7 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AES256_GCM

func AES256_GCM(sharedKey []byte) (cipher.AEAD, error)

AEAD via. AES-256 GCM (Galois Counter Mode).

func ChaCha20_Poly1305

func ChaCha20_Poly1305(sharedKey []byte) (cipher.AEAD, error)

AEAD via. ChaCha20 Poly1305. Expects a 256-bit shared key.

func New

func New() *block

func WaitUntilAuthenticated

func WaitUntilAuthenticated(peer *noise.Peer)

func XChaCha20_Poly1305

func XChaCha20_Poly1305(sharedKey []byte) (cipher.AEAD, error)

AEAD via. XChaCha20 Poly1305. Expected a 256-bit shared key.

Types

type ACK

type ACK struct{ noise.EmptyMessage }

Jump to

Keyboard shortcuts

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