diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:02:58 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:02:58 +0000 |
commit | 698f8c2f01ea549d77d7dc3338a12e04c11057b9 (patch) | |
tree | 173a775858bd501c378080a10dca74132f05bc50 /vendor/sha-1-0.8.2/src/consts.rs | |
parent | Initial commit. (diff) | |
download | rustc-698f8c2f01ea549d77d7dc3338a12e04c11057b9.tar.xz rustc-698f8c2f01ea549d77d7dc3338a12e04c11057b9.zip |
Adding upstream version 1.64.0+dfsg1.upstream/1.64.0+dfsg1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/sha-1-0.8.2/src/consts.rs')
-rw-r--r-- | vendor/sha-1-0.8.2/src/consts.rs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/vendor/sha-1-0.8.2/src/consts.rs b/vendor/sha-1-0.8.2/src/consts.rs new file mode 100644 index 000000000..628d4d6e0 --- /dev/null +++ b/vendor/sha-1-0.8.2/src/consts.rs @@ -0,0 +1,19 @@ +#![cfg_attr(feature = "cargo-clippy", allow(unreadable_literal))] + +pub const STATE_LEN: usize = 5; + +#[cfg(any(not(feature = "asm"), feature = "asm-aarch64"))] +pub const BLOCK_LEN: usize = 16; + +#[cfg(any(not(feature = "asm"), feature = "asm-aarch64"))] +pub const K0: u32 = 0x5A827999u32; +#[cfg(any(not(feature = "asm"), feature = "asm-aarch64"))] +pub const K1: u32 = 0x6ED9EBA1u32; +#[cfg(any(not(feature = "asm"), feature = "asm-aarch64"))] +pub const K2: u32 = 0x8F1BBCDCu32; +#[cfg(any(not(feature = "asm"), feature = "asm-aarch64"))] +pub const K3: u32 = 0xCA62C1D6u32; + +pub const H: [u32; STATE_LEN] = [ + 0x67452301, 0xEFCDAB89, 0x98BADCFE, 0x10325476, 0xC3D2E1F0 +]; |