Versions in this module Expand all Collapse all v0 v0.0.1 Oct 12, 2019 Changes in this version + const FOLD + const KEYP + const N + func CreateStream(keys SharedKeys, conn connection.PlainConnection) connection.PacketStream + func Powm(base, exp, modulus *big.Int) *big.Int + func RandomVec(count int) []byte + type PrivateKeys struct + func GenerateKeys() PrivateKeys + func GenerateKeysFromPrivate(private *big.Int, nonce []byte) PrivateKeys + func (p *PrivateKeys) AddRemoteKey(remote []byte, clientPacket []byte, serverPacket []byte) SharedKeys + func (p *PrivateKeys) ClientNonce() []byte + func (p *PrivateKeys) Prime() *big.Int + func (p *PrivateKeys) PrivateKey() *big.Int + func (p *PrivateKeys) PubKey() []byte + func (p *PrivateKeys) SharedKey(publicKey string) []byte + type SharedKeys struct + func (s *SharedKeys) Challenge() []byte