ecdh

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidPEMStructure = errors.New(`invalid pem structure`)
)

Functions

func GenerateSharedSecret

func GenerateSharedSecret(privKey *ecdsa.PrivateKey, pubKey *ecdsa.PublicKey) ([]byte, error)

func Marshall

func Marshall(pubKey *ecdsa.PublicKey) []byte

func PrivateKey

func PrivateKey(keyBytes []byte) (*ecdsa.PrivateKey, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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