crypto/
lib.rs

1// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
2// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
3// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
4// option. This file may not be copied, modified, or distributed
5// except according to those terms.
6
7#![cfg_attr(feature = "with-bench", feature(test))]
8
9extern crate rand;
10// extern crate rustc_serialize as serialize;
11extern crate time;
12extern crate libc;
13extern crate base64;
14extern crate hex;
15
16#[cfg(all(test, feature = "with-bench"))]
17extern crate test;
18
19mod util_base64;
20mod util_hex;
21pub mod aead;
22pub mod aes;
23pub mod aes_gcm;
24pub mod aessafe;
25pub mod bcrypt;
26pub mod bcrypt_pbkdf;
27pub mod blake2b;
28pub mod blake2s;
29pub mod blockmodes;
30pub mod blowfish;
31pub mod buffer;
32pub mod chacha20;
33pub mod chacha20poly1305;
34mod cryptoutil;
35pub mod curve25519;
36pub mod digest;
37pub mod ed25519;
38pub mod fortuna;
39pub mod ghash;
40pub mod hc128;
41pub mod hmac;
42pub mod hkdf;
43pub mod mac;
44pub mod md5;
45pub mod pbkdf2;
46pub mod poly1305;
47pub mod rc4;
48pub mod ripemd160;
49pub mod salsa20;
50pub mod scrypt;
51pub mod sha1;
52pub mod sha2;
53pub mod sha3;
54mod simd;
55pub mod sosemanuk;
56mod step_by;
57pub mod symmetriccipher;
58pub mod util;
59pub mod whirlpool;
60
61#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
62pub mod aesni;