ULTIMA — Test Suite

Post-quantum cryptographic battery · FIPS 203/204 · ML-KEM-768 + ML-DSA-65 + AES-256-GCM
Full Battery
Run all tests sequentially and aggregate results.

Smoke — is the system basically alive?

ready

Checks Phoenix HTTP, NIF module loaded, all core agents (KeyVault, SigningVault, NoiseGuard, TimingCountermeasure, SecurityMonitor, XqClient, Tunnel.Connector, Tunnel.Listener) registered and alive, XQ session present.

Backend: POST /api/dev/run_smoke. Fastest sanity check — runs in under 50 ms.

Benchmark — PQC throughput

ready

20-iteration average for: ML-KEM-768 encap/decap, ML-DSA-65 sign/verify, ML-DSA-87 sign/verify, AES-256-GCM enc/dec 1 KB, full DSA65+AES256 send/recv pipeline. Microsecond resolution via Erlang monotonic clock.

Backend: POST /api/dev/run_benchmark. Results in µs per operation.

Side-channel diagnostics

ready

TimingCountermeasure agent alive, constant-time compare with equal inputs, constant-time compare with length mismatch, NoiseGuard SHAKE-256 DRBG health, FIPS entropy noise generation, CPU feature detection, register-scrub callable.

Backend: POST /api/dev/run_side_channel. Not a full timing-attack audit — constant-time property is enforced at the Rust NIF layer. This checks the guard agents + entropy pipeline health.

SFT v2.1 — Elixir cryptographic suite

ready

Runs the Elixir NIF-backed SFT v2.1 tests: 10 MB chunked roundtrip, IV uniqueness at scale, chunk-reorder rejection via AAD, cross-session injection rejection, opener tampering rejection, session replay rejection. Source: test_sft_v21.exs.

Backend: POST /api/dev/run_sft_v21. Uses Elixir PQC NIF (FIPS 203/204 reference crate).

Qrypto Chat v2.1 — Adversarial suite (T1/A1–A8)

ready

NIF cross-verification of the Chat v2.1 envelope: wrong-secret-key decap (A1), wrong-DSA-PK verify (A2), enc bit-flip (A3a/A3b), kemCt substitution (A4), cross-account decap (A6), sender-name A8 scope gap validation. Cryptographic reference implementation only — does not drive browser.

Backend: POST /api/dev/run_chat_adversarial. Uses Elixir NIF directly.

SFT Edge Case Battery (T2–T10)

ready

Stores the 2026-04-08 full test-battery results: reverse direction, key rotation, revoked-key, invite flow, expired-key warning, multi-device selection, bidirectional rapid exchange, 1 MB chunked transfer, stale session offline decrypt. Result cache shown inline.

Backend: POST /api/dev/run_sft_edge (cached — no live drivers needed for T4/T6/T7; marks as "historical PASS" from 2026-04-08 report).

FIPS 203/204 Compliance Battery

ready

39-test FIPS 203 (ML-KEM) + FIPS 204 (ML-DSA) compliance battery: deterministic keypair from seed, encapsulate/decapsulate roundtrip, sign/verify with known-answer test vectors, wrong-input rejection, edge-case lengths. Uses NIF reference.

Backend: POST /api/dev/run_fips_battery.

PQC Tunnel Round-trip

ready

Sends a marker message through the live PQC tunnel (Kyber768 + AES-512 + Dilithium5 via sender_encrypt_sign_87_512), waits for peer acknowledgement, reports round-trip latency. Tests live tunnel health, not cryptographic correctness.

Backend: POST /api/dev/run_tunnel_roundtrip. Requires peer (Laptop) online.