Versions in this module Expand all Collapse all v0 v0.5.0 Apr 15, 2020 Changes in this version + var ErrBadHandshakeRole = errors.New("bad handshake role") + var ErrBadHandshakeState = errors.New("bad handshake state") + type EncryptedKey [encryptedKeySize]byte + type EncryptedNothing [encryptedNothingSize]byte + type Handshake struct + func (hs *Handshake) ConsumeRecipientResponse(sSec *ppk.PrivateKey, rPubTmp *ppk.PublicKey, enc *EncryptedNothing) error + func (hs *Handshake) Exchange(cPub *ppk.PublicKey, cPubEnc *EncryptedKey) error + func (hs *Handshake) Finalize(send, recv *[ppk.KeySize]byte) error + func (hs *Handshake) InitializeRecipient(rSec *ppk.PrivateKey, cPubTmp *ppk.PublicKey) error + func (hs *Handshake) InitializeSender(rPub *ppk.PublicKey) error + func (hs *Handshake) PrepareRecipientResponse(sPubTmp, sPub *ppk.PublicKey, enc *EncryptedNothing) error + func (hs *Handshake) PublicKey() ppk.PublicKey