Struct snow::TransportState
[−]
[src]
pub struct TransportState { pub cipherstates: CipherStates, // some fields omitted }
A state machine encompassing the transport phase of a Noise session, using the two
CipherState
s (for sending and receiving) that were spawned from the SymmetricState
's
Split()
method, called after a handshake has been finished.
See: http://noiseprotocol.org/noise.html#the-handshakestate-object
Fields
cipherstates: CipherStates
Methods
impl TransportState
[src]
fn new(cipherstates: CipherStates, initiator: bool) -> Self
fn write_transport_message(&mut self,
payload: &[u8],
message: &mut [u8])
-> Result<usize, NoiseError>
payload: &[u8],
message: &mut [u8])
-> Result<usize, NoiseError>
fn read_transport_message(&mut self,
payload: &[u8],
message: &mut [u8])
-> Result<usize, NoiseError>
payload: &[u8],
message: &mut [u8])
-> Result<usize, NoiseError>
Trait Implementations
impl NoiseSessionState for TransportState
[src]
fn is_payload_encrypted(&self) -> bool
fn write_message(&mut self,
payload: &[u8],
output: &mut [u8])
-> Result<usize, NoiseError>
payload: &[u8],
output: &mut [u8])
-> Result<usize, NoiseError>
fn read_message(&mut self,
input: &[u8],
payload: &mut [u8])
-> Result<usize, NoiseError>
input: &[u8],
payload: &mut [u8])
-> Result<usize, NoiseError>