Struct secret_handshake::OwningServerHandshaker
[−]
[src]
pub struct OwningServerHandshaker<S>(_);
Performs the server side of a handshake. This copies the keys so that it isn't constrainted by their lifetime.
Methods
impl<S: AsyncRead + AsyncWrite> OwningServerHandshaker<S>
[src]
pub fn new(
stream: S,
network_identifier: [u8; 32],
server_longterm_pk: PublicKey,
server_longterm_sk: SecretKey,
server_ephemeral_pk: PublicKey,
server_ephemeral_sk: SecretKey
) -> OwningServerHandshaker<S>
[src]
stream: S,
network_identifier: [u8; 32],
server_longterm_pk: PublicKey,
server_longterm_sk: SecretKey,
server_ephemeral_pk: PublicKey,
server_ephemeral_sk: SecretKey
) -> OwningServerHandshaker<S>
Creates a new ServerHandshakerWithFilter to accept a connection from a
client which knows the server's public key and uses the right app key
over the given stream
.
Trait Implementations
impl<S: AsyncRead + AsyncWrite> Future for OwningServerHandshaker<S>
[src]
Future implementation to asynchronously drive a handshake.