dae

package
v0.2.9 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AESGCM

func AESGCM(key string) (value.Transformer, error)

AESGCM returns an AES-GCM value transformer instance.

func AESPMACSIV

func AESPMACSIV(key string) (value.Transformer, error)

AESPMACSIV returns an AES-PMAC-SIV value transformer instance.

func AESSIV

func AESSIV(key string) (value.Transformer, error)

AESSIV returns an AES-SIV/AES-CMAC-SIV value transformer instance.

func Chacha20Poly1305

func Chacha20Poly1305(key string) (value.Transformer, error)

Chacha20Poly1305 returns an ChaCha20Poly1305 value transformer instance.

func XChacha20Poly1305

func XChacha20Poly1305(key string) (value.Transformer, error)

XChacha20Poly1305 returns an XChaCha20Poly1305 value transformer instance.

Types

type NonceDeriverFunc

type NonceDeriverFunc func([]byte, cipher.AEAD) ([]byte, error)

func HMAC

func HMAC(h func() hash.Hash, key []byte) NonceDeriverFunc

func Keyed

func Keyed(key []byte, khf func([]byte) (hash.Hash, error)) NonceDeriverFunc

Jump to

Keyboard shortcuts

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