[][src]Function ssb_handshake::client_side

pub async fn client_side<S, '_, '_, '_>(
    __arg0: S,
    net_key: &'_ NetworkKey,
    keypair: &'_ Keypair,
    server_pk: &'_ PublicKey
) -> Result<HandshakeKeys, HandshakeError<Error>> where
    S: AsyncRead + AsyncWrite + Unpin

Perform the client side of the handshake over an AsyncRead + AsyncWrite stream. Closes the stream on handshake failure.