associated

package
v0.0.0-...-1ef5823 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const MaxPayload = 0x3FFF

Variables

View Source
var AES128GCM = New(&aesgcm{keySize: 16, saltSize: 16})
View Source
var AES192GCM = New(&aesgcm{keySize: 24, saltSize: 24})
View Source
var AES256GCM = New(&aesgcm{keySize: 32, saltSize: 32})
View Source
var Chacha20IetfPoly1305 = New(&chacha20{})

Functions

func New

func New(cipher Cipher) core.TunnelProvider

Types

type Cipher

type Cipher interface {
	Name() string
	KeySize() int
	SaltSize() int
	NonceSize() int
	TagSize() int
	New(key []byte) (cipher.AEAD, error)
}

Jump to

Keyboard shortcuts

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