make coral-tunnel hardening; FINDINGS 6 wording; deterministic lopt sign#48
Merged
Conversation
- Makefile coral-tunnel: -4 forces IPv4 (host's IPv6 to coral times out in this network), ServerAliveInterval keeps the tunnel from silently dying on idle, ExitOnForwardFailure fails fast instead of leaving a stale tunnel. - FINDINGS entry 6: replace "closed line of investigation" with the honest split — the architectural-fix arc is closed (built and measured), the optimization arc on the Coral-side per-step bookkeeping is open and unattempted (C/Cython rewrite of the Boltzmann selection, on-device softmax fused with the matmul). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
ML-DSA in pqcrypto's PQClean is hedged (fresh OS randomness per sign,
two signs of the same (sk, message) differ). For callers that need
bit-reproducible signatures — auditability, regression tests,
content-addressed signed artifacts — add a liboqs backend that drives
liboqs's RNG callback with a SHAKE-256 DRBG seeded from --sign-seed-hex.
This uses the documented OQS_randombytes_custom_algorithm C extension
point that liboqs provides explicitly for callers needing a custom
RNG; the binding lives in lopt/_liboqs_rng.py (the same one keygen
already uses). FIPS 204 deterministic mode by construction.
Wire-format compatibility: liboqs-produced signatures verify against
pqcrypto's verify and vice versa (both implement the same standard).
lopt sign --algo ml-dsa-65 --sk-hex $SK --message-file msg \\
--backend liboqs --sign-seed-hex $(lopt seed sign-1 --n-bytes 64)
# same invocation, same bytes out. Pipe to a content-hash, ship.
Default backend stays pqcrypto (no extra C dep). --backend liboqs
errors loudly if liboqs-python or the liboqs shared library isn't
installed; users opt into the heavier dep deliberately.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
The auto-installer in liboqs-python 0.14.1 pins a non-existent upstream tag; the brew bottle is static-only. Source-build is currently the only working path on macOS. Documented end-to-end with the OQS_INSTALL_PATH knob, plus an explicit "what you get" table that now covers signing reproducibility per backend, not just keygen. Upstream tracking: liboqs-python issue #133 (already open). Comment posted with the concrete failure mode + macOS workaround. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Three follow-ups, all under-the-hood (no headline numbers change):
make coral-tunnelhardening — pin-4(IPv4),ServerAliveInterval=30,ExitOnForwardFailure=yes. Saw the tunnel die silently twice during PR V3 throughput bench + FINDINGS entry 5: network bottleneck retires planned experiment #47 work; this stops it.lopt sign --backend liboqs— deterministic FIPS 204 signatures via the documentedOQS_randombytes_custom_algorithmextension point. Same(sk, message, sign-seed)→ bit-identical signature bytes; cross-backend interop with pqcrypto's verify confirmed.Determinism table (ML-DSA-65, end-to-end smoke test)
Test plan
make coral-tunnelworks with the new flags on this network (IPv6 was the bug)lopt signwithout--backendstill uses pqcrypto🤖 Generated with Claude Code