Versions in this module Expand all Collapse all v0 v0.4.6 Dec 4, 2023 v0.4.5 Oct 10, 2023 v0.4.4 Aug 14, 2023 v0.4.3 Aug 14, 2023 Changes in this version + const KeyLength + type Key [KeyLength]byte + func GenerateKey() (Key, error) + func GenerateKeyFromPassword(pw string) Key + func GeneratePrivateKey() (Key, error) + func ParseKey(str string) (Key, error) + func ParseKeyBytes(buf []byte) (Key, error) + func (k *Key) UnmarshalText(text []byte) error + func (k Key) Bytes() []byte + func (k Key) IPAddress(p net.IPNet) net.IPNet + func (k Key) IsSet() bool + func (k Key) MarshalText() ([]byte, error) + func (k Key) PublicKey() Key + func (k Key) String() string + type KeyPair struct + Ours Key + Theirs Key + func (kp KeyPair) Public() PublicKeyPair + func (kp KeyPair) Shared() Key + type KeyPassphrase Key + func (k *KeyPassphrase) UnmarshalText(text []byte) error + type Nonce []byte + func GetNonce(length int) (Nonce, error) + type PublicKeyPair KeyPair