[][src]Trait loco_protocol::secure::SecureHandshakeRead

pub trait SecureHandshakeRead {
    pub fn read_handshake_header(
        &mut self
    ) -> Result<SecureHandshakeHeader, Error>;
pub fn read_handshake_key<K: HasPrivate>(
        &mut self,
        header: &SecureHandshakeHeader,
        crypto: &mut impl LocoCrypto,
        key: &Rsa<K>
    ) -> Result<(), Error>; pub fn read_handshake<K: HasPrivate>(
        &mut self,
        crypto: &mut impl LocoCrypto,
        key: &Rsa<K>
    ) -> Result<SecureHandshakeHeader, Error> { ... } }

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]

Read secure handshake key and update crypto.

Loading content...

Provided methods

pub fn read_handshake<K: HasPrivate>(
    &mut self,
    crypto: &mut impl LocoCrypto,
    key: &Rsa<K>
) -> Result<SecureHandshakeHeader, Error>
[src]

Loading content...

Implementors

impl<T: Read> SecureHandshakeRead for T[src]

Loading content...