aead

package
v0.0.0-...-e795a0a Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2019 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