Crate secret_handshake [] [src]

An implementation of the secret-handshake protocol version 1. Also provides convenient functions to create box-streams from the outcome of a handshake.

Reexports

pub use crypto::Outcome;

Modules

crypto

Low-level bindings to shs1-c. You probably don't need to use this module directly.

Structs

ClientHandshaker

Performs the client side of a handshake, holding state between different steps.

ServerHandshaker

Performs the server side of a handshake, holding state between different steps.

Enums

AsyncClientHandshakeError

An error which occured during the asynchronous execution of a handshake.

AsyncServerHandshakeError

An error which occured during the asynchronous execution of a handshake.

ClientHandshakeError

An error which occured during the synchronous execution of a handshake.

ClientResumeState

Indicates where a ClientHandshaker will resume a partial handshake.

ServerHandshakeError

An error which occured during the handshake.

ServerResumeState

Indicates where a ServerHandshaker will resume a partial handshake.