Files
zeekay 01f012c674 rust: 21-crate workspace finalized over luxcpp/crypto C-ABI
One Rust crate per algorithm, plus an `lux-crypto` umbrella that re-exports
each per-algorithm crate behind a Cargo feature.

5 working crates with verified spec vectors:
  - lux-crypto-keccak    (Ethereum keccak256)
  - lux-crypto-secp256k1 (ecrecover precompile + batch)
  - lux-crypto-sha256    (FIPS 180-4)
  - lux-crypto-ripemd160 (Bitcoin/Ethereum address derivation)
  - lux-crypto-blake2b   (RFC 7693)

15 wired-but-NOTIMPL crates (canonical Rust binding shipped, body returns
CRYPTO_ERR_NOTIMPL today; spec-vector tests gated `#[ignore]` with FIXME):
  blake3, ed25519, slhdsa, mldsa, mlkem, bls, kzg, bn254, aead, ipa,
  pedersen, lamport, ntt, poly-mul, evm256.

cargo check --release --workspace --all-features    OK
cargo test  --release --workspace                   55 pass / 0 fail / 25 ignored
cargo doc   --no-deps --workspace                   clean
cargo publish --dry-run --no-verify                 OK for all 20 leaf crates

Workspace docs added at rust/{README,PUBLISHING,RUST_CRATE_STATUS}.md.
Per-crate README.md and `Cargo.toml` metadata (description, license,
repository, keywords, categories, readme) wired for crates.io publish.

Build directives normalized: link both `lib<alg>.a` (C-ABI shim) and
`lib<alg>_cpu.a` (CPU body); brand-neutral C symbols (no lux_ prefix) per
the prefix-uniform audit.
2025-12-28 10:41:53 -08:00

569 B

lux-crypto-poly-mul

Canonical Rust binding for Lux negacyclic polynomial multiplication over Z_Q[X] / (X^n + 1) for the Cyclone-FFT prime (Q = 998244353). Multiplies via Schoolbook (n < 64) or NTT (n a power of two).

Status: C++ body exists in luxcpp/crypto/poly_mul/c-abi/c_poly_mul.cpp, but the symbol is exported from libntt.a and that lib's c_ntt.cpp.o returns CRYPTO_ERR_NOTIMPL. Tests are gated #[ignore] until the NTT C-ABI body lands. Tracked at #poly_mul-c-abi-impl.

Source

C-ABI body: luxcpp/crypto/poly_mul/c-abi/c_poly_mul.cpp.