SPB Git

Repository Public Apache-2.0

STATUS.md 6.3 KB

# STATUS — SPB Quantum Crypto 1.0.0-alpha.1

EXPERIMENTAL / NOT AUDITED. Passing the NIST vectors is not a FIPS 140-3 validation. Last update: 2026-12-03. Every PASS names the command that produced it; anything that was not executed is NOT TESTED.

# 1. What is implemented

Area Content State
ML-KEM (FIPS 203) ML-KEM-512, 768, 1024: KeyGen, Encaps, Decaps, key checks, implicit rejection implemented
ML-DSA (FIPS 204) ML-DSA-44, 65, 87: pure and HashML-DSA (12 hash functions), context, hedged and deterministic implemented
SLH-DSA (FIPS 205) all 12 sets (SHA2 / SHAKE × 128, 192, 256 × s, f), pure and HashSLH-DSA implemented
Hashes SHA3-224/256/384/512, SHAKE128/256 (FIPS 202); SHA-224/256/384/512, SHA-512/224, SHA-512/256 (FIPS 180-4); HMAC, MGF1 implemented
Key containers SPKI and PKCS #8 (RFC 9935, 9881, 9909), expandedKey output; seed-only private keys rejected implemented
Bindings C ABI v1 (include/spb_pqc.h), Swift package + XCFramework, WebAssembly + TypeScript ESM, Node package, CLI spbqc implemented
Envelope (KEM + KDF + AEAD), hybrid X25519 + ML-KEM — not implemented (capabilities().envelope is empty; see docs/security/composition.md)
FN-DSA / Falcon, HQC — not implemented
Python, Android — not implemented
NEON / AVX2 optimisations — not implemented (portable scalar code only)
Independent audit — not done

# 2. Conformance to official vectors

NIST ACVP-Server revision c719d09ba78c58c8a2083f0967c23fafb2e088bc (provenance and hashes: tests/kat/). Command: cargo test --workspace (macOS arm64 and Linux x86_64: PASS).

File Replayed Result
ML-KEM keyGen 75 / 75 PASS
ML-KEM encapDecap (encapsulation, decapsulation, ek and dk checks) 165 / 165 PASS
ML-DSA keyGen 75 / 75 PASS
ML-DSA sigGen (external, internal, external-μ; pure, pre-hash; deterministic, hedged) 360 / 360 PASS
ML-DSA sigVer 180 / 180 PASS
SLH-DSA keyGen 120 / 120 PASS
SLH-DSA sigGen 624 / 624 PASS
SLH-DSA sigVer 504 / 504 PASS
SHA2-256, SHA2-512, SHA3-256, SHA3-512, SHAKE-128, SHAKE-256 (byte-aligned AFT / VOT) 512, 1024, 151, 86, 236, 210 PASS
SHA-2 and SHA-3 Monte-Carlo chains 4 PASS
Hash vectors with bit lengths not multiple of 8; LDT (multi-gigabyte); SHAKE Monte-Carlo — NOT TESTED (byte-oriented API; LDT and SHAKE MCT not replayed)

Through the JavaScript API (cd packages/javascript && node --test test/): 2,735 official vectors replayed, PASS.

# 3. Differential and interoperability tests

Test Command Result
OpenSSL 3.6.3 (independent implementation), both directions, ML-KEM ×3, ML-DSA ×3, SLH-DSA ×12; SPKI / PKCS #8; identical implicit-rejection secrets; bit-identical deterministic signatures scripts/interop-openssl.sh 159 / 159 PASS
OpenSSL 4.1.0, same suite same 159 / 159 PASS
OpenSSL 3.0.13 on Linux (no PQC support) same NOT TESTED
Rust CLI ↔ WASM/Node ↔ Swift, every pairing, KEM and signatures (pure, pre-hash, context, deterministic identity) scripts/interop-bindings.sh 396 / 396 PASS (macOS arm64)
C consumer (header + static library, -Wall -Wextra -Werror -pedantic, then ASan + UBSan) scripts/test-c-abi.sh PASS (macOS arm64, Linux x86_64)

Raw reports: tests/interop/results/.

# 4. Platforms

Platform What ran Result
macOS 27.3, Apple M5 Max (arm64) cargo test --workspace, clippy -D warnings, rustfmt, interop, fuzzing, Miri, benchmarks, swift test (34 tests, 1 skipped: data-protection keychain needs an entitlement) PASS
macOS x86_64 under Rosetta 2 Swift package tests (34 tests, 1 skipped); spbqc selftest PASS
iOS Simulator 26.5 (arm64) Swift package tests (32 tests, 1 skipped); demo app --self-check incl. Keychain store / load / delete PASS
iOS device (arm64) compile and link only NOT TESTED on a physical device (none connected)
iOS Simulator x86_64 compile and link only NOT TESTED (not executed)
Linux x86_64 (Ubuntu 24.04, AMD EPYC 4245P) scripts/ci.sh: fixtures, rustfmt, clippy, cargo test --workspace, C ABI + sanitizers, CLI self-test; benchmarks; timing test PASS
Linux aarch64, Windows — NOT TESTED (not built)
Node 26.13 (WASM) 71 + 3 tests PASS
Bun 1.3.14 examples + self-test PASS
Chromium 151, Firefox 153, WebKit 26.5 (Playwright engines, headless, strict CSP, Web Worker) 12 / 12 PASS
Safari, Google Chrome and Firefox applications; Deno — NOT TESTED
Biometric / passcode Keychain gate — NOT TESTED

# 5. Security testing

Activity Detail Result
Fuzzing (libFuzzer, 45 s per target, macOS arm64) der_parsers 21.4 M runs, key_import 20.2 M, kem_decapsulate 21.2 M, sig_verify 16.7 k, ffi_surface 2.3 M no crash, no artifact
Miri (nightly, strict provenance) 27 unit tests of the RNG-free modules no undefined behaviour reported
Timing (dudect-style, 400 000 samples, tests/sidechannel) ct::eq_mask; ML-KEM-512/768/1024 decapsulation valid vs invalid and fixed vs random no difference detected on Apple M5 Max and AMD EPYC 4245P; positive control detected
RNG failure injection key generation, encapsulation, hedged signing, self-test fail closed (random_failure)
Negative tests wrong lengths, non-canonical keys, corrupted signatures and hints, truncated ciphertexts, malformed DER typed errors, covered by unit and binding tests

Limits: short fuzzing runs; a timing test that finds nothing is not a proof of constant-time behaviour; no power / EM / fault-injection testing; no compiler-output (assembly) review recorded yet; Apple DIT is not enabled by the library. See docs/security/.

# 6. Benchmarks

Raw JSON and CSV with machine, OS, compiler and flags: benchmarks/results/ (cargo bench). Measured on Apple M5 Max (macOS 27.3, rustc 1.95.0) and AMD EPYC 4245P (Linux 6.8). Whole-process peak memory per operation (macOS arm64): benchmarks/results/memory-*.csv (benchmarks/measure-memory.sh) — 4.0 to 4.4 MB including a 4.0 MB process baseline. iPhone and in-browser benchmarks: NOT MEASURED.

# 7. Distribution

See section 8 for the live state of https://pqce.spboucher.ai and docs/DISTRIBUTION.md.

Files main
Menu

Theme