Repository Public Apache-2.0
1# STATUS — SPB Quantum Crypto 1.0.0-alpha.123**EXPERIMENTAL / NOT AUDITED.** Passing the NIST vectors is not a FIPS 140-3 validation.4Last update: 2026-12-03. Every PASS names the command that produced it; anything that5was not executed is NOT TESTED.67## 1. What is implemented89| Area | Content | State |10|---|---|---|11| ML-KEM (FIPS 203) | ML-KEM-512, 768, 1024: KeyGen, Encaps, Decaps, key checks, implicit rejection | implemented |12| ML-DSA (FIPS 204) | ML-DSA-44, 65, 87: pure and HashML-DSA (12 hash functions), context, hedged and deterministic | implemented |13| SLH-DSA (FIPS 205) | all 12 sets (SHA2 / SHAKE × 128, 192, 256 × s, f), pure and HashSLH-DSA | implemented |14| 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 |15| Key containers | SPKI and PKCS #8 (RFC 9935, 9881, 9909), `expandedKey` output; seed-only private keys rejected | implemented |16| Bindings | C ABI v1 (`include/spb_pqc.h`), Swift package + XCFramework, WebAssembly + TypeScript ESM, Node package, CLI `spbqc` | implemented |17| Envelope (KEM + KDF + AEAD), hybrid X25519 + ML-KEM | — | **not implemented** (`capabilities().envelope` is empty; see `docs/security/composition.md`) |18| FN-DSA / Falcon, HQC | — | **not implemented** |19| Python, Android | — | **not implemented** |20| NEON / AVX2 optimisations | — | **not implemented** (portable scalar code only) |21| Independent audit | — | **not done** |2223## 2. Conformance to official vectors2425NIST ACVP-Server revision `c719d09ba78c58c8a2083f0967c23fafb2e088bc` (provenance and hashes: `tests/kat/`).26Command: `cargo test --workspace` (macOS arm64 and Linux x86_64: PASS).2728| File | Replayed | Result |29|---|---|---|30| ML-KEM keyGen | 75 / 75 | PASS |31| ML-KEM encapDecap (encapsulation, decapsulation, ek and dk checks) | 165 / 165 | PASS |32| ML-DSA keyGen | 75 / 75 | PASS |33| ML-DSA sigGen (external, internal, external-μ; pure, pre-hash; deterministic, hedged) | 360 / 360 | PASS |34| ML-DSA sigVer | 180 / 180 | PASS |35| SLH-DSA keyGen | 120 / 120 | PASS |36| SLH-DSA sigGen | 624 / 624 | PASS |37| SLH-DSA sigVer | 504 / 504 | PASS |38| SHA2-256, SHA2-512, SHA3-256, SHA3-512, SHAKE-128, SHAKE-256 (byte-aligned AFT / VOT) | 512, 1024, 151, 86, 236, 210 | PASS |39| SHA-2 and SHA-3 Monte-Carlo chains | 4 | PASS |40| 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) |4142Through the JavaScript API (`cd packages/javascript && node --test test/`): 2,735 official vectors replayed, PASS.4344## 3. Differential and interoperability tests4546| Test | Command | Result |47|---|---|---|48| 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 |49| OpenSSL 4.1.0, same suite | same | 159 / 159 PASS |50| OpenSSL 3.0.13 on Linux (no PQC support) | same | NOT TESTED |51| 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) |52| C consumer (header + static library, `-Wall -Wextra -Werror -pedantic`, then ASan + UBSan) | `scripts/test-c-abi.sh` | PASS (macOS arm64, Linux x86_64) |5354Raw reports: `tests/interop/results/`.5556## 4. Platforms5758| Platform | What ran | Result |59|---|---|---|60| 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 |61| macOS x86_64 under Rosetta 2 | Swift package tests (34 tests, 1 skipped); `spbqc selftest` | PASS |62| iOS Simulator 26.5 (arm64) | Swift package tests (32 tests, 1 skipped); demo app `--self-check` incl. Keychain store / load / delete | PASS |63| iOS device (arm64) | compile and link only | **NOT TESTED on a physical device** (none connected) |64| iOS Simulator x86_64 | compile and link only | NOT TESTED (not executed) |65| 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 |66| Linux aarch64, Windows | — | NOT TESTED (not built) |67| Node 26.13 (WASM) | 71 + 3 tests | PASS |68| Bun 1.3.14 | examples + self-test | PASS |69| Chromium 151, Firefox 153, WebKit 26.5 (Playwright engines, headless, strict CSP, Web Worker) | 12 / 12 | PASS |70| Safari, Google Chrome and Firefox applications; Deno | — | **NOT TESTED** |71| Biometric / passcode Keychain gate | — | NOT TESTED |7273## 5. Security testing7475| Activity | Detail | Result |76|---|---|---|77| 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 |78| Miri (nightly, strict provenance) | 27 unit tests of the RNG-free modules | no undefined behaviour reported |79| 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 |80| RNG failure injection | key generation, encapsulation, hedged signing, self-test | fail closed (`random_failure`) |81| Negative tests | wrong lengths, non-canonical keys, corrupted signatures and hints, truncated ciphertexts, malformed DER | typed errors, covered by unit and binding tests |8283Limits: short fuzzing runs; a timing test that finds nothing is not a proof of constant-time84behaviour; no power / EM / fault-injection testing; no compiler-output (assembly) review recorded85yet; Apple DIT is not enabled by the library. See `docs/security/`.8687## 6. Benchmarks8889Raw JSON and CSV with machine, OS, compiler and flags: `benchmarks/results/` (`cargo bench`).90Measured on Apple M5 Max (macOS 27.3, rustc 1.95.0) and AMD EPYC 4245P (Linux 6.8).91Whole-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.9293## 7. Distribution9495See section 8 for the live state of https://pqce.spboucher.ai and `docs/DISTRIBUTION.md`.96