...
...
December 3, 2026

How Post-Quantum Cryptography Will Break Your Architecture

The NSA's advisory on post-quantum cryptography is not academic paranoia. It is an immediate engineering challenge that will break MTU limits, database schemas, and TLS handshakes if teams do not prepare now.

architecturedeveloper toolsbest practicesperformanceweb development
V
VooStack Team
December 3, 2026
◷ 13 min read

The National Security Agency just published a directive that caught a lot of infrastructure teams off guard: transition to post-quantum cryptography immediately, as Hacker News reported. Most software engineers read headlines like that, assume Shor's algorithm is still a distant theoretical headache for academic cryptographers, and go back to tuning Postgres queries. That reaction is a mistake.

The NSA is not publishing urgent guidance because a cryptographically relevant quantum computer (CRQC) will break RSA-2048 next Tuesday. They are publishing it because state-backed adversaries have spent the last half-decade executing "Store Now, Decrypt Later" (SNDL) attacks against public internet traffic. Everything your systems send across public backbones right now, including encrypted customer payloads, database replication streams, and API tokens, is being hoarded in bulk. If that data has a shelf life longer than seven years, its confidentiality is already running on borrowed time.

More importantly, upgrading cryptographic primitives across an enterprise software stack is not like bumping a minor npm dependency. It touches your database schemas, load balancers, MTU limits, hardware security modules, and mobile SDKs. If you wait until NIST standards become mandatory compliance mandates in 2026 or 2030, you will be scrambling through a multi-year migration with broken production traffic.

The Physics of Post-Quantum: Why Everything Gets Huge

To understand why post-quantum algorithms cause operational failures, you have to look at the raw byte sizes. Modern web infrastructure was built around elliptic curve cryptography (ECC). Curves like X25519 and P-256 are extraordinarily elegant. A public key fits in 32 bytes. A signature fits in 64 bytes. You can tuck an ECC signature into a single HTTP header, an OAuth token, or a compact JSON payload without noticing the bandwidth impact.

Post-quantum algorithms, specifically the lattice-based cryptography standardized by NIST (FIPS 203, 204, and 205), operate on completely different mathematical foundations. They solve high-dimensional lattice problems like Learning With Errors (LWE). That math protects against quantum factorization, but the tradeoff is massive payloads.

Let us look at the numbers for the primary algorithms you will have to run:

  • Classic ECDH (X25519): Public key: 32 bytes. Ciphertext: 32 bytes.
  • ML-KEM-768 (Kyber, security category 3): Public key: 1,184 bytes. Ciphertext: 1,088 bytes.
  • ML-KEM-1024 (Kyber, security category 5): Public key: 1,568 bytes. Ciphertext: 1,568 bytes.
  • Ed25519 (Signature): Public key: 32 bytes. Signature: 64 bytes.
  • ML-DSA-65 (Dilithium, security category 3): Public key: 1,952 bytes. Signature: 3,309 bytes.
  • ML-DSA-87 (Dilithium, security category 5): Public key: 2,592 bytes. Signature: 4,627 bytes.
  • SLH-DSA (SPHINCS+, stateless hash-based): Signatures range from 7,856 bytes to over 49,000 bytes.

Think about those numbers for a second. An ML-DSA-65 signature is 3.3 kilobytes. That is more than 50 times larger than an Ed25519 signature. If your application signs every API request, or stores cryptographic proofs inside audit logs, you are not dealing with a simple cryptographic swap. You are introducing substantial network overhead and storage expansion.

The Network Bottleneck: MTU, Packet Fragmentation, and Latency

The standard Ethernet Maximum Transmission Unit (MTU) on the public internet is 1,500 bytes. Subtract 20 bytes for the standard IPv4 header and 20 bytes for the TCP header, and your Maximum Segment Size (MSS) drops to 1,460 bytes.

In a standard TLS 1.3 handshake using X25519, the client and server exchange their public keys directly inside the ClientHello and ServerHello messages. The entire key share fits comfortably within a single TCP packet. The client sends a packet, the server responds, and the session is established in a single round trip (1-RTT).

Now introduce post-quantum hybrid key exchange, such as X25519MLKEM768, which combines classical curve math with post-quantum lattice keys so you stay safe if one primitive is compromised. The client public key alone is roughly 1,216 bytes. When you combine that with standard TLS extensions, ALPN tokens, SNI headers, and session tickets, your ClientHello immediately bursts through the 1,460-byte MSS limit.

What happens next?

  1. TCP Packet Fragmentation: The operating system's networking stack must fragment the ClientHello across two TCP packets.
  2. Middlebox Drops: Misconfigured intermediate firewalls, carrier-grade NATs, and legacy enterprise intrusion prevention systems (IPS) hate fragmented initial handshakes. Many middleboxes silently drop secondary fragments, causing TCP timeouts and connection drops that masquerade as intermittent network glitches.
  3. Head-of-Line Blocking in Mobile Apps: On spotty 4G or 5G mobile connections with packet loss rates above 2%, requiring two or three packets just to negotiate a handshake doubles or triples your p99 connection setup latency. A cold start that took 80ms now takes 260ms.
  4. Amplification Attacks and QUIC: In HTTP/3 and QUIC (which run on top of UDP), the server cannot send more than three times the bytes it received from the client before the client's IP is verified, in order to prevent UDP amplification DDoS attacks. When server certificates and signatures balloon into 4KB or 8KB payloads due to ML-DSA, servers cannot complete the handshake without adding an extra round-trip verification step. Your zero-round-trip time (0-RTT) performance optimizations vanish.

The Database and Schema Time Bomb

Most software engineers treat cryptographic tokens as black boxes. You generate a JWT, an asymmetric signature, or an encrypted envelope, and you write it into a relational database or a Redis cache.

Take a look at your current database migrations. How many columns are defined like this?

-- A standard schema design for signed webhooks or audit tokens
CREATE TABLE webhook_deliveries (
    id UUID PRIMARY KEY,
    endpoint_url TEXT NOT NULL,
    signature VARCHAR(256) NOT NULL,
    payload JSONB NOT NULL,
    created_at TIMESTAMP WITH TIME ZONE DEFAULT NOW()
);

CREATE TABLE api_keys (
    id UUID PRIMARY KEY,
    public_key VARCHAR(512) NOT NULL,
    account_id UUID REFERENCES accounts(id)
);

If you try to store an ML-DSA-65 signature in that signature column, your database will throw an error (value too long for type character varying(256)). If your service silently truncates strings, you will write corrupt, unparseable signatures to disk and permanently break your verification checks.

At VooStack, we see this problem firsthand across client architectures and our own internal products. In our e-signature engine, ESig, a signed document does not just contain one cryptographic hash. It contains a cryptographic envelope linking multiple signer identities, audit trails, and document hashes. An audit trail that stored ten Ed25519 signatures occupied roughly 640 bytes. Migrating that same audit chain to post-quantum signatures expands that payload to over 33 kilobytes per document revision. Multiply that across millions of records, and your cold-storage snapshots, cache hit ratios, and index sizes look completely different.

If your systems use Redis for caching signed sessions, your Redis memory footprint will grow. An internal cache cluster holding 10 million active sessions with classic keys might consume 2GB of RAM. If you attach ML-KEM session tickets or ML-DSA signed claims, that memory footprint can jump to 15GB or 20GB, forcing you into higher cloud instance tiers simply to hold network overhead.

Implementing Hybrid TLS Today: A Practical Go Example

You do not need to wait for 2030 to start testing post-quantum handshakes. Major runtimes and browsers are rolling out support right now. Chrome and Cloudflare already enabled X25519MLKEM768 for millions of public web requests.

In Go 1.24, hybrid post-quantum key exchange is available directly in the standard library's crypto/tls package. Here is how you configure a modern HTTP server in Go to require and prioritize hybrid post-quantum cipher suites while maintaining fallback support for older clients.

package main

import (
	"crypto/tls"
	"log"
	"net/http"
	"time"
)

func main() {
	mux := http.NewServeMux()
	mux.HandleFunc("/health", func(w http.ResponseWriter, r *http.Request) {
		w.WriteHeader(http.StatusOK)
		w.Write([]byte(`{"status":"healthy","pq_ready":true}`))
	})

	// Configure TLS 1.3 with hybrid post-quantum curve preference.
	// X25519MLKEM768 combines classic X25519 with ML-KEM-768.
	tlsConfig := &tls.Config{
		MinVersion: tls.VersionTLS13,
		CurvePreferences: []tls.CurveID{
			tls.X25519MLKEM768, // Prioritize hybrid post-quantum
			tls.X25519,
			tls.CurveP256,
		},
		// Ensure session tickets and cipher suites are constrained to secure profiles
		PreferServerCipherSuites: true,
	}

	server := &http.Server{
		Addr:         ":8443",
		Handler:      mux,
		TLSConfig:    tlsConfig,
		ReadTimeout:  5 * time.Second,
		WriteTimeout: 10 * time.Second,
		IdleTimeout:  120 * time.Second,
	}

	log.Println("Starting TLS server with X25519MLKEM768 on :8443...")
	// Replace with your valid server cert and key paths
	err := server.ListenAndServeTLS("server.crt", "server.key")
	if err != nil {
		log.Fatalf("Server failed to start: %v", err)
	}
}

Notice that this server still accepts standard tls.X25519 and tls.CurveP256. That fallback is mandatory because legacy HTTP clients, including older Python 3.8 environments, embedded IoT devices, and old mobile runtimes, will choke if you only accept post-quantum parameters.

However, enabling this on your edge server exposes immediate telemetry gaps. If your reverse proxy (such as an Envoy gateway or an AWS Application Load Balancer) does not terminate TLS using hybrid curves, your backend Go server never sees the post-quantum exchange. You must verify that your ingress proxies support curve ID 0x11ec (the codepoint used for X25519MLKEM768).

The Blind Spot: Internal Microservices and KMS

Many engineering leaders think their job is finished once their Cloudflare edge or AWS CloudFront distribution negotiates post-quantum handshakes with consumer browsers. That is only 10% of the problem.

The real risk of SNDL attacks does not target your static marketing site. It targets internal, East-West service traffic inside private subnets and cross-region backbones:

  • Database replication traffic running between us-east-1 and eu-central-1 across third-party fiber.
  • Kafka or RabbitMQ brokers passing plain event payloads over internal TLS.
  • Asymmetric keys used to encrypt sensitive documents stored in Amazon S3 or Google Cloud Storage.

Consider your Key Management Service (KMS). If you use asymmetric customer-managed keys (CMKs) to sign legal documents, financial transactions, or health records, your cloud provider's hardware security modules (HSMs) are enforcing those operations. AWS KMS, Google Cloud KMS, and Azure Key Vault are physically constrained by the firmware and hardware chips inside their data centers.

Those HSMs cannot execute ML-KEM or ML-DSA in silicon today. When you call kms:Sign or kms:Decrypt, you are executing RSA or ECC. Replacing the physical HSM fleet across cloud availability zones takes years. Cloud providers will eventually offer software-emulated post-quantum keys, but software emulation in an HSM environment introduces significant CPU overhead. Your API latencies for cryptographic signing operations will jump from 3ms to 25ms per request.

If your microservice architecture depends on synchronous signing calls to KMS during a checkout or ingestion pipeline, that latency difference will quickly back up your worker queues.

The Post-Quantum Engineering Playbook

You do not need to rewrite your entire product stack this quarter. What you do need is an intentional, structured audit to identify where cryptographic assumptions are hardcoded into your data models and infrastructure.

Here is how technical teams should address the NSA guidance right now:

1. Audit Crypto Agility in Your Schemas

Run a static scan across your database migrations and protobuf definitions. Search for fixed-length fields used for signatures, public keys, and tokens:

  • Find all CHAR(64), VARCHAR(256), or BINARY(32) columns designed for keys and signatures.
  • Convert these columns to variable-length types (TEXT, BYTEA, BLOB) so future algorithm swaps do not require emergency table locks on production databases with hundreds of millions of rows.
  • Audit your API schemas (OpenAPI, GraphQL, gRPC) to ensure fields representing signatures or identity proofs allow string lengths up to 8,192 bytes.

2. Turn on Hybrid Key Exchange at the Edge

If you use Cloudflare, Fastly, or modern NGINX builds, enable hybrid key agreement (X25519MLKEM768). Monitor your telemetry for two metrics:

  • Handshake Failure Rate: Check if legacy clients (especially embedded clients or third-party webhooks) reset connections during negotiation.
  • p95 and p99 TLS Handshake Duration: Measure the impact of packet fragmentation on cellular networks. If p99 latency spikes, inspect your TCP initial congestion window (initcwnd) settings on your origin servers. Setting initcwnd to at least 10 or 16 MSS packets ensures your larger ServerHello and certificate chains transmit without stalling on an artificial TCP window bottleneck.

3. Identify Data with Long-Term Confidentiality Lifespans

Classify your data based on how long it must remain confidential:

  • Low risk (under 12 months): Session tokens, ephemeral SMS codes, temporary cache records. Classic AES-GCM and X25519 are completely fine here for now.
  • High risk (5 to 30 years): User biometric profiles, electronic medical records, e-signature audit trails, Master Service Agreements, trade secrets, and persistent identity records. This data must be wrapped in quantum-resistant encryption envelopes immediately. Even if your transport layer is not fully post-quantum, your application-layer encryption should use hybrid symmetric/asymmetric encapsulation before data hits the wire or disk.

4. Stop Rolling Custom Signature Wrappers

Do not attempt to roll your own lattice cryptography implementation. Algorithms like ML-KEM and ML-DSA are vulnerable to subtle side-channel attacks, cache-timing discrepancies, and fault injection attacks if implemented naively. Use peer-reviewed, vetted libraries such as liboqs (the Open Quantum Safe project), Google's BoringSSL, or the official Go standard library implementations.

Summary of Key Tradeoffs

Attribute Classical (X25519 / Ed25519) Post-Quantum (ML-KEM-768 / ML-DSA-65) Operational Impact
Public Key Size 32 bytes 1,184 to 1,952 bytes Breaks single-packet MTU; requires multi-segment TCP frames.
Ciphertext / Signature 32 to 64 bytes 1,088 to 3,309 bytes Increases database record sizes, cache footprints, and API payloads.
CPU Verification Cost Extremely low Moderate to High Increases CPU utilization on ingress proxies during heavy TLS handshakes.
Middlebox Compatibility Universal Fragile Legacy firewalls and proxies drop fragmented ClientHello packets.
Quantum Resistance Zero High Protects long-term sensitive data against Store Now, Decrypt Later threats.

The Pragmatic Next Step

The NSA advisory is not a fire drill that requires you to pull your engineers off their roadmap this sprint. It is a clear operational signal that the baseline assumptions of internet infrastructure have changed.

Upgrading crypto always takes five times longer than engineering teams estimate. The SHA-1 to SHA-256 transition took the industry nearly a decade. Deprecating TLS 1.0 and 1.1 dragged on for years after both standards were known to be broken. If your application handles sensitive data that will still matter in 2032, you cannot afford to wait until cloud platforms force your hand.

Start with an inventory. Inspect your wire sizes, audit your database column constraints, and enable hybrid TLS on your staging ingress proxies this week. When post-quantum becomes mandatory, the teams who prepared will execute a routine configuration update, while everyone else will be debugging broken handshakes and dropped packets in production.


Building something in this space? AgileStack helps teams ship enterprise-grade software without the consulting-firm overhead. Book a 30-minute call and tell us what you're working on.

Topics
architecturedeveloper toolsbest practicesperformanceweb development
Authored by
V

VooStack Team

Engineering, VooStack

The VooStack engineering team. A veteran-owned, SDVOSB-certified software house building Flutter, .NET, and cloud-native products end to end, from San Antonio, TX and Oklahoma City, OK.

Share this article