Documentation ¶ Index ¶ func GenPrivPubkey() ([]byte, []byte, error) func ReadHostKey(hostKeyFile string) (hostKey crypto.PrivKey, err error) func ReadKeys(hostKeyFile, peerKeyFile string) (crypto.PrivKey, crypto.PubKey, error) 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. Source Files ¶ View all Source files keys.go Click to show internal directories. Click to hide internal directories.