1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
//! Implementation of the [secret-handshake](https://github.com/auditdrivencrypto/secret-handshake)
//! protocol version 1.
//!
//! This library uses libsodium internally. In application code, call
//! [`sodiumoxide::init()`](https://dnaq.github.io/sodiumoxide/sodiumoxide/fn.init.html)
//! before performing any handshakes.

#![deny(missing_docs)]
extern crate sodiumoxide;
extern crate libc;
extern crate futures;
extern crate tokio_io;
extern crate void;
extern crate atm_io_utils;

pub mod crypto;
mod client;
mod server;

pub use client::*;
pub use server::*;
pub use crypto::{Outcome, NETWORK_IDENTIFIER_BYTES};

#[cfg(test)]
extern crate partial_io;
#[cfg(test)]
#[macro_use]
extern crate quickcheck;
#[cfg(test)]
extern crate async_ringbuffer;
#[cfg(test)]
extern crate rand;

#[cfg(test)]
mod test;