keys

package
v0.0.0-...-2f116a2 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenPrivPubkey

func GenPrivPubkey() ([]byte, []byte, error)

func ReadHostKey

func ReadHostKey(hostKeyFile string) (hostKey crypto.PrivKey, err error)

func ReadKeys

func ReadKeys(hostKeyFile, peerKeyFile string) (crypto.PrivKey, crypto.PubKey, error)

We pass in both the private keys of host and peer. We never use the private key of the peer though. That's why this function returns the peer's public key.

Types

This section is empty.

Jump to

Keyboard shortcuts

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