crypto

package
v0.0.0-...-8fcfbba Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2023 License: LGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecryptWithDH

func DecryptWithDH(pub, priv, enc, ad []byte) ([]byte, error)

func DecryptWithKey

func DecryptWithKey(key, enc, ad []byte) ([]byte, error)

func EncryptWithDH

func EncryptWithDH(pub, priv, msg, ad []byte) ([]byte, error)

func EncryptWithKey

func EncryptWithKey(key, msg, ad []byte) ([]byte, error)

func SliceToKey

func SliceToKey(b []byte) nacl.Key

Types

This section is empty.

Jump to

Keyboard shortcuts

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