crypto

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: May 26, 2017 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateKeyExChange

func GenerateKeyExChange() ([]byte, []byte)

func NewCryptoStream

func NewCryptoStream(conn io.ReadWriteCloser, key []byte) (*cryptoStream, error)

func NewPrf12

func NewPrf12() func(result, secret, label, seed []byte)

func ProcessKeyExchange

func ProcessKeyExchange(priv []byte, ciphertext []byte) ([]byte, error)

Types

type CurveID

type CurveID int
const (
	CurveP256 CurveID = 23
	CurveP384 CurveID = 24
	CurveP521 CurveID = 25
)

Jump to

Keyboard shortcuts

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