Versions in this module Expand all Collapse all v1 v1.1.0 Feb 27, 2023 v1.0.0 Feb 19, 2023 Changes in this version + var ErrInvalidHandshake = errors.New("the remote end of the tunnel provided invalid handshake data") + var ErrNonceExhaustion = errors.New("the set of nonces for this symmetric key has been exhausted") + var ErrVerificationFailed = errors.New("verification from the remote end of the tunnel was provided but invalid") + var ErrVerificationOmitted = errors.New("verification from the remote end of the tunnel was expected but not provided") + func BufferedPipe() (*BufferedMemoryReadWriter, *BufferedMemoryReadWriter) + type BufferedMemoryReadWriter struct + func (bmrw *BufferedMemoryReadWriter) Read(p []byte) (int, error) + func (bmrw *BufferedMemoryReadWriter) Write(p []byte) (int, error) + type SecureReadWriter struct + func NewSecureReadWriterWithPrivateAndPublicKey(rw io.ReadWriter, privateKey ed25519.PrivateKey, publicKey ed25519.PublicKey) *SecureReadWriter + func NewSecureReadWriterWithPrivateKey(rw io.ReadWriter, privateKey ed25519.PrivateKey) *SecureReadWriter + func NewSecureReadWriterWithPublicKey(rw io.ReadWriter, publicKey ed25519.PublicKey) *SecureReadWriter + func (srw *SecureReadWriter) Read(p []byte) (int, error) + func (srw *SecureReadWriter) Write(p []byte) (int, error)