← Back to section · Research & Analysis

The Constant-Time Bill: Cycles Paid for Not Leaking

Secret-dependent branches, table lookups, and variable-length operations all have to be flattened, and each PQC family pays a different amount of this performance tax. This article dissects where constant-time costs arise, Falcon's extreme case, and specification-mandated overheads such as implicit rejection in decapsulation.

Published 22 November 2026 · 5 min read · PQ Frontier

The Constant-Time Bill: Cycles Paid for Not Leaking
AI-generated site artwork
Video explainer · Algorithm Performance: Benchmarks and Methods

Cryptographic performance figures carry an open secret: most numbers in benchmark tables measure the constant-time version of the code. “Constant time” means that execution time and memory-access patterns must not depend on secret data — not that every run takes literally identical time, but that an attacker can read nothing about the key from timing and cache behavior. This discipline is not pedantry: timing side channels are a repeatedly demonstrated, real attack surface. But the discipline has a price tag, and each algorithm family pays a very different price.

Where the tax is collected

Constant-time conversion costs concentrate in four kinds of transformation. First, branch elimination: any if whose condition depends on secrets must be rewritten to compute both outcomes and select with a mask — doubling the computation along the eliminated branch. Second, table-lookup conversion: a table indexed by a secret leaks the index through cache timing, so the constant-time version must scan the entire table linearly and mask-select the target entry; the larger the table, the heavier the tax. Third, flattening variable-length operations: division and modulo are data-dependent, variable-latency instructions on many processors and must be replaced by fixed-length bit-operation sequences. Fourth, removing early exits: returning immediately on verification failure is a leak source in decapsulation, so success and failure must traverse paths of identical length.

Held against the PQC families, these four toll gates produce immediately visible differences. The core operations of ML-KEM and ML-DSA are modular arithmetic and the NTT, naturally free of secret-indexed lookups and data-dependent branches, and their rejection logic handles public parameters or publishable intermediates — the overall tax is light; they are “born” close to constant-time. Code-based schemes pay mainly at the decoding stage, where error location and correction steps need careful masking. The structure of the tax burden is largely decided at algorithm design time.

Falcon: one scheme paying the family’s heaviest tax

Falcon’s signing sampler is the famous hard case of constant-time conversion. Its Gaussian sampler works in floating point: the sampled distribution must be exact, while floating-point timing varies with operand values on some processors, and the sampler’s rejection and recursion structure is full of control flow that depends on the sampled values. Turning such a sampler into one that is both distributionally correct and timing-tight requires extensive bit-level technique and platform-specific validation. The outcome: Falcon’s signing implementation is not only several times slower than its verification, its constant-time assurance is far harder to establish than its peers’. When reading Falcon’s performance numbers, one more question is mandatory: to what extent has this implementation’s constant-time claim actually been verified?

A tax written into the specification: implicit rejection

Another class of constant-time cost lives not in the implementation layer but in the specification. ML-KEM decapsulation uses implicit rejection: when ciphertext validation fails, the operation must not error out; it quietly derives a fake shared secret from a secret seed and returns it. The Fujisaki-Okamoto transform requires decapsulation to execute a complete re-encryption and a constant-time comparison regardless of success — meaning the failure path costs almost exactly what the success path costs, and this overhead is a constitutive requirement of CCA security that no implementation may “optimize” away. In scenarios flooded with invalid ciphertexts (a public-facing key-exchange endpoint, for instance), this tax is amplified by the attacker per request, becoming a very real compute bill.

Why benchmarks rarely itemize this tax

A natural question follows: if the tax is real, why do benchmark tables almost never carry a “constant-time cost” line? The reason is a missing control group. Mainstream reference implementations are written under constant-time discipline from the first line of code; there is no untaxed version of the same implementation to place side by side. The few research comparisons that exist show the untaxed advantage ranging from a few percent to several times, depending on the density of eliminated branches and lookups on the hot path — a range far too wide to compress into one universal figure. Verification tools (statistical timing-leak detectors and the like) can produce evidence of “no leakage found,” but they cannot produce a reading of “what the tax rate is.” The tax can therefore only be estimated structurally: count the toll gates on the hot path and the conversion multiplier at each. That is why this article proceeds by dissection rather than by citing numbers — on this dimension, honest qualitative analysis beats false precision.

The tax as a selection variable

Pulling back to selection: the constant-time tax deserves to stand alongside size and speed as a third dimension of the profile, particularly in two scenarios. First, when implementations run in uncontrollable shared environments (cloud hosts, co-tenancy), the side-channel surface genuinely exists, and lightly taxed schemes carry lower operational risk. Second, when formal verification or high-grade certification is required, the verifiability of constant-time behavior directly drives evaluation difficulty, and a Falcon-grade tax burden propagates all the way into the assessment timeline. Conversely, in physically isolated, single-tenant offline signing machines, the tax’s weight can be dialed down — but no scenario can zero it out, because a leakage surface discovered after deployment costs far more to fix than the prepaid cycle tax.

Summary

Constant-time discipline is the entry fee for cryptographic implementations, and the rate varies by family: lattice KEMs and signatures pay the lowest, structurally compatible rate; code-based schemes sit in the middle; Falcon’s floating-point Gaussian sampling occupies the top bracket alone; and specification-level overheads such as implicit rejection are a reminder that some cycles are not implementation inadequacy but the security definition itself collecting its fee. When reading performance numbers, assume they measure tax-paid code — and if a figure looks implausibly good, check first whether it evaded the tax.

References

  • FIPS 203 — the specification text on implicit rejection in ML-KEM decapsulation
  • The FN-DSA (Falcon) draft — discussion of the constant-time implementation difficulty of floating-point sampling
  • Public research surveys on cache-timing and branch-prediction leakage in the side-channel analysis literature

Tags: Constant TimeSide ChannelsPerformance CostFalcon