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
38
39
40
41
42
43
44
45
46
47
48
//! SHA(Secure Hash Algorithm
//!
//! # Examples
//!
//! ```Rust
//! let cases = [
//! ("ebf81ddcbe5bf13aaabdc4d65354fdf2044f38a7", "Discard medicine more than two years old."),
//! ];
//! let mut sha1 = SHA::sha1();
//! let mut digest = Vec::new();
//! cases.iter().for_each(|e| {
//! sha1.write((e.1).as_bytes());
//! sha1.checksum(&mut digest);
//! sha1.checksum(&mut digest);
//! sha1.reset();
//! });
//! ```
pub use SHA;
pub use SHA1;
pub use ;
pub use ;
// my computer does not support the SHA instructions, so this amd64 implementation didn't test success.
// #[cfg(all(rcrypto_sha = "support", any(target_arch = "x86", target_arch = "x86_64")))]
// mod sha1_amd64;
// #[cfg(not(all(rcrypto_sha = "support", any(target_arch = "x86", target_arch = "x86_64"))))]
// my computer does not support the SHA instructions, so this amd64 implementation didn't test success.
// #[cfg(all(rcrypto_sha = "support", any(target_arch = "x86", target_arch = "x86_64")))]
// mod sha256_amd64;
// #[cfg(not(all(rcrypto_sha = "support", any(target_arch = "x86", target_arch = "x86_64"))))]