Post-Quantum Cryptography (PQC) Overview
API7 Enterprise, Apache APISIX, and AISIX AI Gateway protect TLS 1.3 traffic with hybrid post-quantum key exchange (X25519MLKEM768) enabled by default in current releases. This hybrid mechanism combines classical X25519 elliptic-curve Diffie-Hellman with the NIST-standardized ML-KEM-768 lattice algorithm (FIPS 203) to defend against Harvest-Now, Decrypt-Later (HNDL) threats while remaining compatible with classical clients and servers.
Product Support Matrix
| Product | Minimum Version for Default PQC | Cryptographic Stack | Default TLS 1.3 Key Exchange | Classical Fallback | Product Guide |
|---|---|---|---|---|---|
| API7 Enterprise (API7 Gateway) | 3.10.9 (3.9.x requires upgrade) | Data Plane: OpenSSL 3.5.9 (apisix-runtime)Control Plane: Go crypto/tls (Go 1.24+) | X25519MLKEM768 (Control Plane also includes Go default ML-KEM groups) | Automatic | API7 Gateway PQC Guide |
| Apache APISIX | 3.20.0 | OpenSSL 3.5.9 (apisix-runtime 1.4.2+) | X25519MLKEM768 | Automatic | Apache APISIX PQC Guide |
| AISIX AI Gateway | Current releases (1.13.0 and Dev) | Data Plane: rustls 0.23 (aws-lc-rs)Control Plane: Go crypto/tls (Go 1.24+) | X25519MLKEM768 | Automatic | AISIX AI Gateway PQC Guide |
What Is Protected Today and What Is Not
Post-quantum migration spans three separate cryptographic layers. Separating these layers clarifies what already mitigates quantum risk in production and what still depends on broader ecosystem standardization.
| Cryptographic Layer | Quantum Threat | Current Status Across API7 Products | Technical Basis |
|---|---|---|---|
| TLS 1.3 Key Exchange (Data in Transit) | Immediate HNDL risk. Adversaries can record encrypted traffic today and decrypt it once cryptographically relevant quantum computers exist. | Protected by default via hybrid X25519MLKEM768. | Combines classical X25519 with NIST FIPS 203 ML-KEM-768. Security holds as long as at least one component remains unbroken. |
| TLS 1.3 Session Ciphers and Hashing | Moderate speedup via Grover's algorithm (halves effective bit strength). | Quantum-resistant today with 256-bit ciphers and digests. | TLS 1.3 AES-256-GCM / ChaCha20-Poly1305 and SHA-256 / SHA-384 retain strong post-quantum security margins. |
| Digital Signatures and Certificates (PKI, mTLS, JWT/OIDC) | Future active impersonation risk (requires a live quantum computer during the handshake, not retroactive). | Classical RSA / ECDSA in production. Post-quantum ML-DSA / SLH-DSA certificates are not yet a standard production option. | Public certificate authorities, browser trust stores, X.509 tooling, and JWT/OIDC standards for NIST FIPS 204 (ML-DSA) and FIPS 205 (SLH-DSA) are still rolling out across the industry. |
Standards and Compliance Alignment
API7 products align with finalized NIST and IETF standards rather than pre-standard draft algorithms:
- NIST FIPS 203 (
ML-KEM): Module-Lattice-Based Key-Encapsulation Mechanism (formerly CRYSTALS-Kyber). Used via the IETF hybrid TLS 1.3 groupX25519MLKEM768. - NIST FIPS 204 (
ML-DSA) and FIPS 205 (SLH-DSA): Post-quantum digital signature standards tracked for future certificate and token-signing adoption as CA, client SDK, and control-plane ecosystems mature. - Regulatory Timelines (CNSA 2.0, NIST IR 8547, and Regional Frameworks): Deploying hybrid
X25519MLKEM768at the API and AI gateway layer immediately addresses data-in-transit confidentiality requirements for long-lived sensitive data (financial, healthcare, government, and proprietary AI prompts).
Operational Considerations
Before upgrading production deployments, review three operational behaviors shared across all PQC-enabled TLS 1.3 implementations:
- TLS 1.3 Requirement: Hybrid post-quantum key exchange operates only over TLS 1.3. Connections negotiated over TLS 1.2 automatically use classical ECDHE curves.
- Larger
ClientHelloMessages: Including anML-KEM-768key share increases the TLSClientHellofrom roughly 300–500 bytes to roughly 1,200–1,500 bytes, which can span two TCP packets. Some legacy firewalls, load balancers, or deep packet inspection (DPI) appliances drop or reset fragmentedClientHellomessages. Always test upstream paths through legacy network devices before production rollout. - Steady-State Performance: Hybrid key exchange adds minor CPU and bandwidth overhead per new TLS handshake. With HTTP keep-alive and upstream connection pooling enabled, steady-state throughput and latency impact are negligible.
Product-Specific Guides
Choose your product guide for hop-by-hop coverage, verification commands, audit logging, opt-out procedures, and troubleshooting:
- API7 Gateway (Enterprise) Post-Quantum Cryptography — Covers Data Plane (OpenSSL 3.5.9), Control Plane (Go
crypto/tls),$ssl_curveaudit logging, group customization, and upgrading from3.9.x. - Apache APISIX Post-Quantum Cryptography — Covers APISIX
3.20.0+(apisix-runtime1.4.2+), inbound and upstream configuration, verification, and legacy network device troubleshooting. - AISIX AI Gateway Post-Quantum Cryptography — Covers the Rust
rustls+aws-lc-rsData Plane, AISIX Enterprise and Cloud Control Plane, LLM provider hops, verification, and troubleshooting.
Frequently Asked Questions
Will Legacy Clients or Upstreams Break When PQC Is Enabled?
Compliant TLS peers that do not support X25519MLKEM768 automatically fall back to classical curves such as X25519 or secp256r1 (prime256v1) during the TLS 1.3 handshake. Connection issues occur only when an intermediate network device (such as an older firewall, WAF, or proxy) mishandles a larger, multi-packet ClientHello.
Does PQC Replace Traditional TLS Encryption?
No. X25519MLKEM768 is a hybrid key exchange. Every handshake derives session keys from both X25519 and ML-KEM-768, so the connection remains at least as strong as classical TLS 1.3 even if a weakness were discovered in one algorithm.
How Does PQC Relate to National Cryptographic Standards (Such as SM2, SM3, and SM4)?
PQC and national cryptographic suites (such as China's ShangMi SM2/SM3/SM4) address different requirements. SM2 is an elliptic-curve algorithm and is not quantum-resistant; SM4 (128-bit) and SM3 (256-bit) are symmetric and hash primitives. Hybrid X25519MLKEM768 protects standard TLS 1.3 connections against quantum decryption, while national cipher suites address regional regulatory mandates.
How Can Security Teams Verify PQC for Compliance Audits?
Use OpenSSL 3.5 or newer to inspect the negotiated group (openssl s_client -connect "<host>:443" -tls1_3 -groups X25519MLKEM768:X25519), and in API7 Enterprise or Apache APISIX, log the NGINX $ssl_curve variable in access logs to measure the share of connections using X25519MLKEM768. See the product guides above for full commands and log formats.