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
36
37
extern crate byteorder;
extern crate digest;
extern crate hmac;
extern crate num_bigint;
extern crate rand;
extern crate sha2;
#[cfg(not(target_arch = "wasm32"))]
extern crate crypto;
#[cfg(all(target_arch = "wasm32"))]
extern crate wasm_bindgen;
pub mod srd_blob;
mod message_types;
mod srd;
mod srd_errors;
mod dh_params;
pub mod ffi;
pub type Result<T> = std::result::Result<T, srd_errors::SrdError>;
pub use srd::Srd;
pub use srd_errors::SrdError;
#[cfg(test)]
mod tests;