mirror of
https://github.com/luxfi/crypto.git
synced 2026-07-27 01:54:50 +00:00
All 23 lux-crypto-* crates now have: - README.md with algorithm description, build instructions (CRYPTO_DIR / CRYPTO_BUILD_DIR), source attribution - workspace-inherited authors/homepage/repository/documentation - crates.io-ready metadata (description, keywords, categories) cargo publish --dry-run --no-verify passes for all 23 crates. PUBLISHING.md documents the publish runbook: license decision required before upload, cargo login flow, name reservation order, dry-run sweep, ordered upload, native-archive dependency (Option C documented), docs.rs follow-up, versioning policy, source attribution table. This prepares the crates for a human with a crates.io token to run the real cargo publish step. No upload happens automatically -- the LICENSE decision (BSD-3-Clause vs Lux Ecosystem License) must be confirmed first.
618 B
618 B
lux-crypto-sha256
Canonical Rust binding for SHA-256 (FIPS 180-4).
Wraps the C-ABI exposed by luxcpp/crypto/sha256. Verified against FIPS 180-4
reference vectors.
Algorithm
- SHA-256 -- 32-byte digest, FIPS 180-4 standard
Build
Set CRYPTO_DIR (install prefix) or CRYPTO_BUILD_DIR (cmake build dir) so
the build script can find libsha256_cpu.a.
git clone https://github.com/luxfi/crypto
cd crypto && cmake -S . -B build-cto && cmake --build build-cto
export CRYPTO_BUILD_DIR=$(pwd)/build-cto
cargo build -p lux-crypto-sha256
License
See LICENSE at the repository root.