[−][src]Trait loco_protocol::secure::SecureHandshakeRead
Required methods
pub fn read_handshake_header(&mut self) -> Result<SecureHandshakeHeader, Error>
[src]
Read secure handshake header.
pub fn read_handshake_key<K: HasPrivate>(
&mut self,
header: &SecureHandshakeHeader,
crypto: &mut impl LocoCrypto,
key: &Rsa<K>
) -> Result<(), Error>
[src]
&mut self,
header: &SecureHandshakeHeader,
crypto: &mut impl LocoCrypto,
key: &Rsa<K>
) -> Result<(), Error>
Read secure handshake key and update crypto.
Provided methods
pub fn read_handshake<K: HasPrivate>(
&mut self,
crypto: &mut impl LocoCrypto,
key: &Rsa<K>
) -> Result<SecureHandshakeHeader, Error>
[src]
&mut self,
crypto: &mut impl LocoCrypto,
key: &Rsa<K>
) -> Result<SecureHandshakeHeader, Error>
Implementors
impl<T: Read> SecureHandshakeRead for T
[src]
pub fn read_handshake_header(&mut self) -> Result<SecureHandshakeHeader, Error>
[src]
pub fn read_handshake_key<K: HasPrivate>(
&mut self,
header: &SecureHandshakeHeader,
crypto: &mut impl LocoCrypto,
key: &Rsa<K>
) -> Result<(), Error>
[src]
&mut self,
header: &SecureHandshakeHeader,
crypto: &mut impl LocoCrypto,
key: &Rsa<K>
) -> Result<(), Error>