Files
crypto/rust
Hanzo AI d97fe02730 rust: ship lux-crypto-blake3 with 140-vector spec_vectors KAT
Real Rust binding over the now-real luxcpp/crypto/blake3 C-ABI
(commit c4a1d2e0, "vendor BLAKE3 v1.5.0 reference C"). Exposes all four
canonical BLAKE3 modes:

    hash(input)                          -> [u8; 32]
    keyed_hash(key, input)               -> [u8; 32]
    derive_key(context_z, key_material)  -> [u8; 32]
    hash_xof(input, &mut output)         -> ()

Statically links libblake3.a + libblake3_cpu.a from the build dir
(CRYPTO_BUILD_DIR or the canonical build-cto/ default).

Test (tests/spec_vectors.rs) parses upstream test_vectors.json (vendored
under luxcpp/crypto/blake3/test/vectors/) and asserts byte-equality
across all 35 cases x 4 modes = 140 assertions. cargo test PASS.
2025-12-28 02:01:07 -08:00
..