Skip to content

v0.3.0

Choose a tag to compare

@helsingin helsingin released this 04 Dec 16:52
· 19 commits to main since this release

This release adds versioned cryptographic assessments, required hybrid PQ transport, and ML-KEM-1024 envelopes. TLS reports now separate key establishment from certificate authentication, so a hybrid handshake no longer hides authentication migration gaps.

Changes

  • Add pqc-v1, cnsa2-2026-v1, and cnsa1-transition-2026-v1 assessment policies through the library and --crypto-policy CLI flag. Findings distinguish matches, violations, and missing evidence for key exchange, certificate public keys, issuer signatures, and authentication coverage.
  • Add --tls-require-pqc / PQC_TLS_REQUIRE_PQC to the CLI and daemon. This requires TLS 1.3 hybrid key exchange, rejects classical-only peers, and prevents remote-client HTTP downgrade redirects. Existing hybrid-preferred defaults retain classical fallback unless enforcement is requested.
  • Add ML-KEM-1024 key generation, rotation, public-key export, and envelope encryption/decryption using HKDF-SHA384 and AES-256-GCM. ML-KEM-768 retains its existing HKDF-SHA256 derivation and ciphertext compatibility.
  • Include authentication gaps and cryptographic-policy findings in migration-readiness scoring. Existing scores may decrease; a score is not a compliance verdict.
  • Update the README and CLI, daemon, and policy documentation with examples, pinned sources, and compatibility details.

Scope and compatibility

The CNSA 2.0 TLS assessment follows draft-becker-cnsa2-tls-profile-06, not a final IETF standard. Algorithm assessments do not certify CNSA compliance or validate cryptographic modules. The inspector still cannot establish the negotiated TLS handshake signature scheme or the complete trust path, and reports those gaps as unknown. Pure ML-KEM transport and PQ certificate authentication are not added to Go's TLS stack.

The pqc.envelope.v1 schema is retained with an explicitly labelled ML-KEM-1024/HKDF-SHA384 suite. Older clients reject the new algorithm. Existing ML-KEM-768 ciphertext and all four supported signature algorithms remain interoperable in both directions. Existing keys do not change algorithms automatically.

Requires Go 1.26 or newer. Install with:

go install github.com/helsingin/pqc/cmd/pqc@v0.3.0
go install github.com/helsingin/pqc/cmd/pqcd@v0.3.0

Validation

  • Full go test -race ./..., go vet ./..., and CGO_ENABLED=0 go test ./... on Go 1.26.4 / macOS arm64.
  • Both CLI binaries built; independent Python evidence vectors passed.
  • Bidirectional compatibility with v0.2.3 for ML-KEM-768 encryption and all four supported signature algorithms.
  • ML-KEM-768/1024 interoperability with Go's implementation, tamper rejection, policy classification, classical-fallback rejection, certificate verification, and TLS session-resumption tests.
  • SoftHSM token signatures verified by this release for ML-DSA-65/87 and SLH-DSA-SHA2-192s/256s on Go 1.26.11 / Linux amd64. Because current Keyman replaced its PQC test module with OpenSSL tests, this validation used the retained module from commit 83d2282 against current Keyman implementation fcbeb37 in a temporary directory. The disposable image used cached Debian/Go base images and the repository's checksum-pinned SoftHSM source. This is software-token interoperability, not hardware-HSM certification.