Struct kuska_handshake::BoxStreamSend [−][src]
pub struct BoxStreamSend { /* fields omitted */ }
Expand description
The transport agnostic boxstream sending side.
Implementations
Encrypt a single boxstream message by taking bytes from buf
and encrypting them into
enc
. Returns the number of bytes read from buf
and the number of bytes written into
enc
.
Encrypt a goodbye message into enc
. Returns the number of bytes written into enc
.
Returns whether the goodbye message has been sent or not.