# quantum-safe: Bridging the Post-Quantum Production Gap with a Hybrid-by-Default Python Cryptography Library

Source: [quantum-safe: Bridging the Post-Quantum Production Gap with a Hybrid-by-Default Python Cryptography Library](<https://www.sota2.com/research/paper/6a0beebedbc836b87d82c5f7>)

Collection index: [llms.txt](<https://www.sota2.com/research/llms.txt>)

Data updated: 2026-05-20T05:00:05.687Z

Authors: Animesh Shaw

Published: 2026-05-16T16:05:11.000Z

## Abstract

The August 2024 finalisation of FIPS 203 (ML-KEM), FIPS 204 (ML-DSA), and FIPS 205 (SLH-DSA) closed the algorithmic gap in post-quantum cryptography (PQC). The production gap -- hybrid combiners, versioned key formats, protocol helpers, and migration tooling -- remains open. We present quantum-safe, a Python library that closes all three critical gaps we identify, and a systematic evaluation of the nine-library ecosystem that quantifies them.   We score nine PQC libraries across eight production-readiness dimensions. Three dimensions have coverage below 35%: hybrid KEM support (11%), migration tooling (22%), and protocol integration (33%). quantum-safe scores Full on all eight. The full API reduces the hybrid KEM task from 45 lines of manual combiner code to three lines, directly lowering the risk of insecure combiner implementations.   We report the first statistically rigorous per-operation overhead measurement for a Python hybrid PQC library (3,000 iterations, CPU-pinned, bootstrapped 95% confidence intervals). A full X25519 + ML-KEM-768 handshake completes in 243 {\\mu}s under Docker/Linux -- 0.5--2.5% of a typical TLS 1.3 round-trip budget. At 5,000 concurrent users, throughput holds at 2,848 ops/s with only 4.9% degradation versus the single-user baseline, confirming that liboqs releases the Python GIL during C-level operations.   We introduce Coefficient of Variation (CoV) as a practical timing side-channel proxy across all FIPS 203/204 operations. ML-KEM-768 decapsulation achieves CoV = 3.9%, within the AES-256-GCM noise floor (2.1%). ML-DSA-65 signing shows CoV = 51.5%, expected from FIPS 204 rejection sampling, not a side-channel. This CoV methodology has not previously been applied to PQC library evaluation and provides a lightweight complement to formal constant-time verification tools. All results are reproducible via a single Docker command.

## Recorded benchmark results

A research result applies to its stated dataset, split, metric and evaluation configuration. Compare like-for-like settings, preserve the metric's unit and direction, and distinguish paper-reported results from independent reproduction. The best result recorded here is not a claim of exhaustive, current global coverage.

- [Cosignature Verification on ENV-2 Docker Linux](<https://www.sota2.com/research/sota/cosignature-verification-on-env-2-docker-linux.md>): Cosignature Verification; ENV-2 Docker Linux; Median Latency (µs): 221.75.

- [Hybrid Certificate Building on ENV Docker Linux 2](<https://www.sota2.com/research/sota/hybrid-certificate-building-on-env-docker-linux-2.md>): Hybrid Certificate Building; ENV Docker Linux 2; Median Latency (µs): 344.05.

- [Key Generation on ENV-2 Docker Linux](<https://www.sota2.com/research/sota/key-generation-on-env-2-docker-linux.md>): Key generation; ENV-2 Docker Linux; Median Latency (µs): 205.38.

- [Signing on ENV-2 Docker Linux](<https://www.sota2.com/research/sota/signing-on-env-2-docker-linux.md>): Signing; ENV-2 Docker Linux; Median Latency (µs): 160.71.

- [Verification on ENV-2 Docker/Linux](<https://www.sota2.com/research/sota/verification-on-env-2-docker-linux.md>): Verification; ENV-2 Docker Linux; Median Latency (µs): 143.94.

## Original sources and implementation

[Original paper](<https://arxiv.org/abs/2605.17061>)

[PDF](<https://arxiv.org/pdf/2605.17061.pdf>)
