Struct secret_handshake::OwningClientHandshaker
[−]
[src]
pub struct OwningClientHandshaker<S> { /* fields omitted */ }
Performs the client side of a handshake. This copies the keys so that it isn't constrainted by their lifetime.
Methods
impl<S: AsyncRead + AsyncWrite> OwningClientHandshaker<S>
[src]
pub fn new(
stream: S,
network_identifier: [u8; 32],
client_longterm_pk: PublicKey,
client_longterm_sk: SecretKey,
client_ephemeral_pk: PublicKey,
client_ephemeral_sk: SecretKey,
server_longterm_pk: PublicKey
) -> OwningClientHandshaker<S>
[src]
stream: S,
network_identifier: [u8; 32],
client_longterm_pk: PublicKey,
client_longterm_sk: SecretKey,
client_ephemeral_pk: PublicKey,
client_ephemeral_sk: SecretKey,
server_longterm_pk: PublicKey
) -> OwningClientHandshaker<S>
Creates a new OwningClientHandshaker to connect to a server with known public key
and app key over the given stream
.
Trait Implementations
impl<S: AsyncRead + AsyncWrite> Future for OwningClientHandshaker<S>
[src]
Future implementation to asynchronously drive a handshake.