summaryrefslogtreecommitdiffstats
path: root/third_party/rust/sha-1/src/consts.rs
blob: 7a1bb3435cf7fcefb8796b4398f47bd2c6be09c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#![cfg_attr(feature = "cargo-clippy", allow(unreadable_literal))]

pub const STATE_LEN: usize = 5;

#[cfg(not(feature = "asm"))]
pub const BLOCK_LEN: usize = 16;

#[cfg(not(feature = "asm"))]
pub const K0: u32 = 0x5A827999u32;
#[cfg(not(feature = "asm"))]
pub const K1: u32 = 0x6ED9EBA1u32;
#[cfg(not(feature = "asm"))]
pub const K2: u32 = 0x8F1BBCDCu32;
#[cfg(not(feature = "asm"))]
pub const K3: u32 = 0xCA62C1D6u32;

pub const H: [u32; STATE_LEN] = [
    0x67452301, 0xEFCDAB89, 0x98BADCFE, 0x10325476, 0xC3D2E1F0
];