summaryrefslogtreecommitdiffstats
path: root/vendor/sha-1-0.8.2/src/consts.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/sha-1-0.8.2/src/consts.rs')
-rw-r--r--vendor/sha-1-0.8.2/src/consts.rs19
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
+];