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
//! Constants for hash functions
/// Output size of SHA-224 in bytes
pub const SHA224_OUTPUT_SIZE: usize = 28;
/// Output size of SHA-256 in bytes
pub const SHA256_OUTPUT_SIZE: usize = 32;
/// Output size of SHA-384 in bytes
pub const SHA384_OUTPUT_SIZE: usize = 48;
/// Output size of SHA-512 in bytes
pub const SHA512_OUTPUT_SIZE: usize = 64;
/// Output size of SHA3-224 in bytes
pub const SHA3_224_OUTPUT_SIZE: usize = 28;
/// Output size of SHA3-256 in bytes
pub const SHA3_256_OUTPUT_SIZE: usize = 32;
/// Output size of SHA3-384 in bytes
pub const SHA3_384_OUTPUT_SIZE: usize = 48;
/// Output size of SHA3-512 in bytes
pub const SHA3_512_OUTPUT_SIZE: usize = 64;
/// Output size of Keccak-256 in bytes
pub const KECCAK256_OUTPUT_SIZE: usize = 32;
/// Internal block size of SHA-256 in bytes
pub const SHA256_BLOCK_SIZE: usize = 64;
/// Internal block size of SHA-512 in bytes
pub const SHA512_BLOCK_SIZE: usize = 128;
/// Internal block size of SHA3-256 in bytes
pub const SHA3_256_BLOCK_SIZE: usize = 136;
/// Internal block size of SHA3-512 in bytes
pub const SHA3_512_BLOCK_SIZE: usize = 72;
/// Internal block size of Keccak-256 in bytes
pub const KECCAK256_BLOCK_SIZE: usize = 136;