keys

package
v1.1.15 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateDH

func GenerateDH() (*[32]byte, *[32]byte, error)

func HKDF

func HKDF(secret, info []byte, outputLength int) ([]byte, error)

func LoadMaterialKey

func LoadMaterialKey(chain []byte) ([]byte, error)

func Secret

func Secret(priv ecdh.PrivateKey, pub ecdh.PublicKey) []byte

func Sign

func Sign(privateKey *[32]byte, message []byte, random [64]byte) *[64]byte

func Verify

func Verify(publicKey [32]byte, message []byte, signature *[64]byte) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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