Skip to main content

Module hash

Module hash 

Source
Expand description

Re-export of vyre’s canonical hash primitives (MD5, SHA1/2/3, BLAKE2/3, RIPEMD160, SipHash, xxHash, HMAC, KDF). The canonical implementations live in vyre::ops::hash::reference so that core ops and the IR interpreter agree byte-for-byte; this re-export keeps the vyre_reference::hash::… path stable for downstream consumers. Pure-Rust reference implementations of cryptographic and non-cryptographic hash algorithms used for GPU parity verification.

Each submodule implements a named algorithm directly against the specification, independent of any crate with a WGSL kernel. These are the source-of-truth evaluators that CPU-side conformance tests and the CpuOp adapters in vyre::ops::hash delegate to.

Modules§

blake2
BLAKE2 family reference (blake2s, blake2b). BLAKE2s-256 and BLAKE2b-512 CPU reference implementations.
blake3
BLAKE3 reference implementation. BLAKE3-256 CPU reference implementation.
hex
Hex encoding / decoding helpers used by test vectors. Hex formatting helpers for hash tests.
hmac
HMAC construction over any reference hash. HMAC CPU reference helpers.
kdf
Key-derivation primitives (HKDF, Argon2id parameters, etc). HKDF, PBKDF2, and bounded Argon2id CPU reference helpers.
md5
MD5 reference implementation. MD5 CPU reference implementation.
ripemd160
RIPEMD-160 reference implementation. RIPEMD-160 CPU reference implementation.
sha1
SHA-1 reference implementation. SHA-1 CPU reference implementation.
sha3
SHA-3 (Keccak) family reference (sha3_256, sha3_512). SHA3-256 and SHA3-512 CPU reference implementations.
sha256
SHA-256 / SHA-224 reference implementations. SHA-256 CPU reference implementation.
sha512
SHA-512 / SHA-384 reference implementations. SHA-384 and SHA-512 CPU reference implementations.
siphash
SipHash family reference (siphash13, siphash24). SipHash-1-3 CPU reference implementation.
xxhash
xxHash family reference (xxhash64, xxhash3_64). XXH64 and XXH3-64 CPU reference implementations with seed 0.