Struct noise_sv2::TransportMode [−][src]
pub struct TransportMode { /* fields omitted */ }
Expand description
Helper struct that wraps the transport state and provides convenient interface to read/write messages
Implementations
Decrypt and verify message from in_buf
and append the result to decrypted_message
TODO check if decrypt msg len is always encrypted msg len - TAG_LEN
Return the size that decrypt_msg in Self::read should have in order to decrypt the encrypted payload
If the encrypted payload has an invalid length it panic
Return the size that encrypt_msg in Self::write should have in order to encrypt the payload