srp6 1.0.0-beta.2

A safe implementation of the secure remote password authentication and key-exchange protocol - SRP version 6 and 6a
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#[cfg(all(feature = "hash-sha1", feature = "hash-sha512"))]
compile_error!("either feature `hash-sha1` or `hash-sha512` is used, not both");

#[cfg(all(not(feature = "hash-sha1"), not(feature = "hash-sha512")))]
compile_error!("either feature `hash-sha1` or `hash-sha512` must be used");

#[cfg(feature = "hash-sha1")]
mod sha1;
#[cfg(feature = "hash-sha1")]
pub use sha1::*;

#[cfg(feature = "hash-sha512")]
mod sha512;
#[cfg(feature = "hash-sha512")]
pub use sha512::*;

pub type Hash = [u8; HASH_LENGTH];
pub use HASH_LENGTH;