7. Signatures from lattices
Draft
A signature is a proof that you know the secret
A digital signature must convince anyone, at any later time, that the holder of a private key stood behind a message, without leaking anything about that private key. Classical signatures start from a three-move interactive proof: a prover commits to a random mask, a verifier replies with an unpredictable challenge, and the prover responds with a value combining the mask, the challenge, and the secret; replacing the live verifier with a cryptographic hash of the commitment and the message turns those three moves into a standalone signature. Carried straight over to lattices, however, both standard signature designs leak the private key through the statistics of honest signatures. In commit-challenge-respond, adding a short secret shift to a bounded integer mask nudges responses past the edges of the mask, so thousands of signatures trace out the secret; ML-DSA (Dilithium), the primary lattice signature standard, seals that leak by rejection sampling, discarding any attempt that lands near the mask boundary where the shift could show. The alternative route, hash-and-sign with a lattice trapdoor, hashes a message to a target point in space and uses a short secret basis to locate a nearby lattice point; naive rounding leaks the secret basis because the rounding residuals fill its fundamental parallelepiped, and FN-DSA (Falcon) erases that shape by sampling nearby lattice points from a spherical discrete Gaussian cloud.
identification the prover knows x = 7; the verifier knows only y = 2^7 = 13 (numbers mod 23, where 2 has order 11)
prover verifier
picks r = 4
commitment R = 2^4 = 16 ---->
<---- challenge c = 6, drawn at random
response s = 4 + 6 * 7 = 2 ----> checks 2^2 = 16 * 13^6 = 4: accepted
signature the same moves; the challenge is SHA-256 of R and the message, mod 11
signer anyone, later
picks r = 4, commits to R = 16
challenge c = hash(16, "hello") = 9
response s = 4 + 9 * 7 = 1
"hello" and (R, s) = (16, 1) ----> the same hash, c = 9; checks 2^1 = 16 * 13^9 = 2: accepted
cheat without x the challenge has to be guessed before committing: of 1,000 tries 102 passed the
verifier and 84 passed the hash; 1 guess in 11 is right (91 of 1,000)
real size ML-DSA-65: a hash of 48 bytes picks the challenge, 1 of 2^225
(the live figure needs JavaScript; it loads no data)
In a group where computing \(g^x\) from \(x\) is easy while recovering \(x\) from \(y = g^x\) is hard, a prover shows knowledge of \(x\) by hiding \(x\) behind a fresh one-time exponent \(r\): commit to \(R = g^r\) first, receive a random challenge \(c\) that could not be foreseen when \(R\) was chosen, and answer with \(s = r + c\,x\) modulo the group order. Because a cryptographic hash \(c = H(R, m)\) is just as unpredictable before \(R\) is fixed, Fiat and Shamir observed that the signer can compute the challenge alone and publish the transcript, letting anyone recompute \(c\) and verify \(g^s = R\,y^c\). Schnorr's scheme instantiates this recipe, illustrated above on the 23-hour clock of Section 1.2.
Definition 7.1.1 (Schnorr's identification, and his signature). Let \(g\) generate a group of prime order in which discrete logarithms are hard to find, with exponents taken modulo that order. The private key is an exponent \(x\) and the public key is \(y = g^x\). An identification is three moves and a check:
\[\begin{aligned} \text{commit:} \quad & R = g^r \ \text{ for a uniformly random } r, \\ \text{challenge:} \quad & c, \ \text{ uniformly random}, \\ \text{respond:} \quad & s = r + c\,x, \\ \text{check:} \quad & g^s = R\,y^c . \end{aligned}\]The signature of a message \(m\) is the pair \((R, s)\) of the same moves made by the signer alone, with \(c = H(R, m)\) for a hash function \(H\). To verify it, compute \(c\) and make the check.
The check passes for an honest prover because \(g^{r + cx} = g^r (g^x)^c\). What passing it proves is seen best on numbers.
Example 7.1.2 (two answers give the secret). Work modulo 23, where \(g = 2\) generates a subgroup of prime order 11, with private key \(x = 7\) and public key \(y = 2^7 \bmod 23 = 13\). Suppose a prover answers two distinct challenges \(c\) and \(c^{\prime}\) against the same commitment \(R\), producing valid responses \(s\) and \(s^{\prime}\). Dividing \(g^s = R\,y^c\) by \(g^{s^{\prime}} = R\,y^{c^{\prime}}\) cancels \(R\) and leaves \(g^{s - s^{\prime}} = y^{c - c^{\prime}}\), so taking exponents modulo 11 recovers the private key directly:
\[x = \frac{s - s^{\prime}}{c - c^{\prime}} \bmod 11 .\]In the figure's round on \(R = 2^4 = 16\), the live verifier's challenge \(c = 6\) receives the response \(s = 2\), while the hash challenge \(c^{\prime} = 9\) on the same commitment receives \(s^{\prime} = 1\). Since \(6 - 9 \equiv 8 \pmod{11}\) and \(8 \cdot 7 = 56 = 5 \cdot 11 + 1\), dividing \(2 - 1 = 1\) by \(8\) modulo 11 gives \(x = 7\). ◁
That single calculation captures both why the proof convinces and what the signer must guard against. Any prover capable of answering two challenges on one commitment could extract \(x\) from its own two responses, which is the precise sense in which passing the check proves knowledge of \(x\); an impostor without \(x\) can prepare a commitment for at most one pre-guessed challenge, succeeding only one time in 11 on this clock. By the same algebra, an honest signer must never reuse one mask \(r\) across two different messages, or the two published signatures immediately hand \(x\) to anyone watching.
Schnorr's transcript leaks nothing about \(x\) for a geometric reason that will vanish on lattices: because \(r\) is drawn uniformly modulo the group order, modular addition wraps around a closed cycle of residues, so adding \(c\,x\) merely rotates that uniform cycle onto itself and leaves \(s = r + c\,x\) uniformly distributed for every \(x\). Anyone can even simulate valid transcripts without knowing \(x\) by picking \(c\) and \(s\) at random first and setting \(R = g^s y^{-c}\) afterward. That backward trick fails as a forgery only because the hash function forces \(c = H(R, m)\) to be computed after \(R\) is fixed; since an offline attacker can test hashes privately until a guess matches, real schemes draw challenges from a space far too large to brute-force, such as the roughly \(2^{225}\) challenges of ML-DSA-65.
FIPS 204, the federal standard in which the US National Institute of Standards and Technology (NIST) specifies ML-DSA, begins its own account of the scheme with these three moves.
ML-DSA is a Schnorr-like signature with several optimizations. The Schnorr signature scheme applies the Fiat-Shamir heuristic to an interactive protocol between a verifier who knows 𝑔 (the generator of a group in which discrete logs are believed to be difficult) and the value 𝑦 = 𝑔𝑥 and a prover who knows 𝑔 and 𝑥. The interactive protocol, where the prover demonstrates knowledge of 𝑥 to the verifier, consists of three steps: 1. Commitment: The prover generates a random positive integer 𝑟 that is less than the order of 𝑔 and commits to its value by sending 𝑔𝑟 to the verifier. 2. Challenge: The verifier sends a random positive integer 𝑐 that is less than the order of 𝑔 to the prover. 3. Response: The prover returns 𝑠 = 𝑟 − 𝑐𝑥 reduced modulo the order of 𝑔, and the verifier checks whether 𝑔𝑠 ⋅ 𝑦𝑐 = 𝑔𝑟. This protocol is made noninteractive and turned into a signature scheme by replacing the verifier’s random choice of 𝑐 in step 2 with a deterministic process that pseudorandomly derives 𝑐 from a hash of the commitment 𝑔𝑟 concatenated with the message to be signed. For this signature scheme, 𝑦 is the public key, and 𝑥 is the private key.
—NIST, FIPS 204, "Module-Lattice-Based Digital Signature Standard" (2024). Section 3.3 of the standard, published on 13 August 2024: its opening paragraph, with the three steps that it sets as a numbered list. The standard writes the response with a minus sign, \(s = r - c\,x\). Definition 7.1.1 writes \(s = r + c\,x\), as the code of this page does and as the response of ML-DSA itself does: the same protocol with the sign of the challenge turned.
A quantum computer breaks the problem under this scheme, the discrete logarithm (Section 2.5). It does not break the recipe, which needs only another hard problem to stand on.
The lattice version leaks, unless answers are thrown away
Now replace discrete logarithms with the noisy linear equations of Section 4. The private key consists of two short vectors \(s_1, s_2\), and the public key consists of a random matrix \(A\) together with \(t = A s_1 + s_2\), hiding \(s_1\) behind Learning With Errors. Imitating Schnorr move for move, the prover draws a mask vector \(y\), commits to \(w = A y\), receives a challenge \(c\) with small entries, and responds with
\[z = y + c\, s_1 .\]Verification is linear too: \(A z - c\,t = A(y + c\,s_1) - c(A s_1 + s_2) = w - c\,s_2\), recovering the commitment up to the small error \(-c\,s_2\). Yet we cannot draw the mask \(y\) uniformly modulo \(q\) the way Schnorr did. If arbitrary residues modulo \(q\) were accepted for \(z\), the verification check \(A z \approx w + c\,t \pmod q\) would be an underdetermined system of linear equations, and anyone without the private key could pick \(w\), compute \(c\), and solve for \(z\) by Gaussian elimination (Section 4.1). Forgery is prevented only when the verifier demands that \(z\) and the leftover error have small integer entries, turning forgery into the Short Integer Solution (SIS) problem. Requiring \(z\) to be short, however, forces the mask \(y\) to come from a bounded integer interval rather than a wrap-around cycle modulo \(q\), and a bounded interval does not hide \(c\,s_1\) at its two ends.
edge the response is z = y + c s1: a mask y, uniform on 1,048,576 values (up to 524,288 in size), plus the
challenge times the secret, at most 196. How many responses fall where, at the end of the mask's range:
523,700 the bound 524,092 the mask ends 524,288 524,484
without rejection =============|======================|=-.
with rejection =============| nothing: such an attempt is thrown away
secret two secrets, 50,000 signatures of each kind for each, in one run
without rejection the 182 coefficients that left the mask's range, with their public challenges, give
68 of secret A's 256 coefficients exactly, where a guess of 0 gets 28 (secret B: 78,
where 0 gets 30); over 10 runs: 56 to 82 exact, correlation 0.71 to 0.77
with rejection no response leaves the range: this attack has nothing to count, and its estimate is 0
check the two secrets' responses have the same histogram either way (two-sample chi-square on 32 bins: 30.5
without rejection, 25.6 with; 31 if alike); rejection keeps 61.8 % and 61.9 % of attempts, 61.9 % by formula
(the live figure needs JavaScript; it loads no data and computes in a Worker)
In ML-DSA-65 each coefficient of the mask \(y\) has magnitude at most \(\gamma_1 = 524{,}288\), while each coefficient of \(c\,s_1\) has magnitude at most \(\beta = 196\). Whenever a response coefficient lands beyond \(\pm \gamma_1\), only the shift \(c\,s_1\) could have pushed it out of the mask's range, telling an observer the sign of \((c\,s_1)_i\); because the challenge \(c\) is public, correlating those boundary pushes with \(c\) across many signatures reconstructs \(s_1\). Boundary hits are rare, yet deadly. With a real ML-DSA-65 secret key and random masks and challenges, just 182 out of the 12,800,000 coefficients in one polynomial of \(z\) across 50,000 signatures fell outside the mask's range in one run. Over ten runs of 50,000 signatures, simple correlation recovered between 56 and 82 of the 256 coefficients of a secret polynomial exactly, where guessing all zeros gets 28 or 30; extending one run to a million signatures recovered 184 and 166 coefficients for two secrets. An attacker who instead treated each out-of-range coefficient as a linear inequality on \(s_1\) and solved the system jointly should need far fewer signatures; that attack was not run here.
Remark 7.2.1 (the leak is not in the average). FIPS 204 says of the response that it "will be biased in a direction related to the private value". The bias is the shift \(c\,s_1\), and it turns with the challenge. For a given \(c\) the range of \(z\) is the range of the mask shifted by \(c\,s_1\), but the non-zero coefficients of \(c\) are \(+1\) or \(-1\) with equal chance, so over many signatures the shifts cancel. The mean of a response coefficient is the same for every secret, and its histogram is the mask's except within \(\beta\) of its two ends, where two secrets look alike to the eye. What gives the secret away is a response read together with its challenge, and whoever holds a signature holds both.
The fix is direct, and its name is rejection sampling. Picture the mask coefficient \(y_i\) as a flat-topped rectangle of probability \(1/(2\gamma_1)\) over \([-\gamma_1 + 1, \gamma_1]\): shifting that rectangle left or right by \(v_i = (c\,s_1)_i\), with \(\lvert v_i \rvert \le \beta\), exposes overhangs at the ends yet still covers the inner safe interval \((-(\gamma_1 - \beta),\, \gamma_1 - \beta)\) at the exact same constant height \(1/(2\gamma_1)\). If the signer publishes \(z\) only when every coefficient satisfies \(\lvert z_i \rvert < \gamma_1 - \beta\), and otherwise discards the mask, commitment, and challenge to start over with a fresh mask, both overhangs vanish and the kept responses become completely independent of \(s_1\).
Proposition 7.2.2 (what is kept does not depend on the secret). Let the \(N\) coefficients of the mask be independent, each uniform on the integers from \(-\gamma_1 + 1\) to \(\gamma_1\), and let the mask be independent of the challenge \(c\). Write \(y_i\) for a coefficient of the mask and \(v_i\) for the same coefficient of \(c\,s_1\), so that \(\lvert v_i \rvert \le \beta\). Then for every integer \(u\) with \(\lvert u \rvert < \gamma_1 - \beta\),
\[\Pr[\, y_i + v_i = u \mid c \,] = \frac{1}{2\gamma_1}, \quad \text{whatever } c \text{ and } s_1 \text{ are.}\]So, given the challenge, the response \(z = y + c\,s_1\) is equally likely to be any point of the box in which every coefficient is smaller than \(\gamma_1 - \beta\) in size. An attempt is therefore kept with probability
\[\Bigl( \frac{2(\gamma_1 - \beta) - 1}{2\gamma_1} \Bigr)^{N} \approx e^{-N\beta/\gamma_1},\]and a response that is kept is uniform on that box. Its law, and the chance of keeping it, are the same for every challenge and for every secret.
Proof. Given the challenge, \(v_i\) is a fixed number, and the coefficient of the response equals \(u\) exactly when \(y_i\) equals \(u - v_i\). Since \(\lvert u - v_i \rvert < \gamma_1\), that is one of the \(2\gamma_1\) equally likely values of \(y_i\), and the challenge, of which the mask is independent, does not change their chances. The coefficients of the mask are independent of one another, so every point of the box has the probability \((2\gamma_1)^{-N}\), and the box holds \((2(\gamma_1 - \beta) - 1)^N\) points. ∎
With the rule in force no response leaves the mask's range, and that attack has nothing to count. The proposition says more: a kept response and its challenge have one and the same law for every key, so nothing computed from them can tell one secret from another. It takes the challenge to be independent of the mask: in a signature the challenge is a hash of the commitment, and the security argument treats that hash as a random function. And it is about this check alone: the loop of ML-DSA makes three more, which it does not cover and Section 7.3 takes up. For ML-DSA-65, whose response has \(N = 1{,}280\) coefficients, this check keeps 61.9% of attempts.
Throwing answers away would be a nuisance in a live identification, where the whole exchange has to be run again. In a signature there is nobody to notice, and that is what makes the method, Fiat-Shamir with aborts, cost so little.
The same technique can also be applied to Girault’s scheme. Notice that if we pick y uniformly at random from the range [0, …, 2R] instead of from [0, …, 264R], the length of sc + y will be 63 bits shorter. We point out that our aborting factoring-based ID scheme in Figure 1 which uses this idea is actually worse than the corresponding non-aborting one because the savings gained by shortening sc + y are lost in case the prover has to abort and the ID protocol has to be repeated. But the advantage of aborting does show itself when the ID protocol is converted into a signature scheme using the Fiat-Shamir paradigm (Figure 5). In a signature scheme, there is no interaction, and therefore there is no need for the signer to ever include the aborted signing attempts into the final signature. So if the signer needs to abort, he simply reruns the protocol until he gets a signature in the correct range. The end result is that the eventual signature is shorter than it would have been in schemes such as [10, 11, 31] where the signer does not have the option to abort.
—V. Lyubashevsky, "Fiat-Shamir With Aborts: Applications to Lattice and Factoring-Based Signatures" (2009). ASIACRYPT 2009, Section 1.3, "Intuition for Aborting", its last paragraph (archived copy). The references [10, 11, 31] of the passage are to Girault's scheme, which multiplies the secret by the challenge over the integers: it picks the mask from a range far larger than what it hides and never aborts. In the passage sc is that product, at most R, and y is the mask; Figures 1 and 5 are the paper's.
What rejection sampling costs is paid in signature bytes more than in signing time. Because all \(N\) coefficients of \(z\) must stay inside the safe box simultaneously on the same attempt, \(\gamma_1\) must be orders of magnitude wider than \(\beta\): 524,288 compared with 196, a ratio of roughly 2,700, so that \(e^{-N\beta/\gamma_1}\) keeps 62% of attempts. Each coefficient of \(z\) then takes 20 bits to encode where a coefficient of \(s_1\) took four, which is why an ML-DSA signature spans several kilobytes. Making \(\gamma_1\) narrower would shrink the signature at the price of many more aborted loops; making \(\gamma_1\) exponentially wide so that aborts were never needed, as pre-2009 schemes did, would inflate \(z\) and force security to rely on much weaker lattice hardness assumptions.
ML-DSA
ML-DSA, the module-lattice-based digital signature algorithm of FIPS 204, a standard since 13 August 2024, is the scheme of Section 7.2 made concrete. Its numbers are polynomials, as in Section 5; its verifier is a hash; and signing is a loop that runs until an attempt may be shown.
loop ML-DSA-65 signs "hello" in the page. A column is an attempt; a check is passed (.), failed (x) or no
longer reached (o); the 5th attempt is the accepted one, the other 4 are thrown away
attempt 1 2 3 4 5
response too large? |z| < 524,092 . . x . .
low bits too large? |r0| < 261,692 x x x x .
c t0 too large? |c t0| < 261,888 o o o o .
too many hints? ones of h <= 55 o o o o .
attempts over 10,000 signatures measured, the loop ran 5.2 times on average (5.1 by the standard's table) and
41 times at most; 19.6 % of signatures pass at the first attempt, the geometric law of mean 5.1 says 19.6 %
bytes what leaves the signer, to scale: signature 3,309 bytes = hash 48 + response z 3,200 + hint 61
public key 1,952 bytes = seed 32 + t1 1,920
(the live figure needs JavaScript; it loads 13.5 kB of measurements)
An attempt that fails any check in the loop is discarded immediately; only the accepted attempt ever leaves the signer. Before writing down the scheme, one obstacle separates the lattice check from Schnorr's: because the public key \(t = A s_1 + s_2\) contains the secret error \(s_2\), the verifier's combination \(A z - c\,t = w - c\,s_2\) recovers the commitment \(w = A y\) only up to the unknown small perturbation \(-c\,s_2\). Sending \(w\) in full so the verifier could hash it would add kilobytes to the signature. Instead, ML-DSA splits every residue modulo \(q\) into coarse high bits \(r_1\) and fine low bits \(r_0 \in [-\gamma_2, \gamma_2]\), hashes only \(\mathrm{HighBits}(w)\), and adds a second rejection check requiring \(\mathrm{LowBits}(w - c\,s_2)\) to stay at least \(\beta\) away from the rounding boundaries \(\pm \gamma_2\). That margin guarantees that adding \(c\,s_2\) back cannot trigger a carry into the high bits, so the verifier's \(\mathrm{HighBits}(A z - c\,t)\) matches \(\mathrm{HighBits}(w)\) bit for bit without \(w\) ever being sent. With public-key compression deferred to the end of the section, the entire scheme fits into a few lines.
Definition 7.3.1 (ML-DSA, without its compression). The ring is \(R_q = \mathbb Z_q[X]/(X^{256} + 1)\) with \(q = 8{,}380{,}417\). For a vector \(v\) of polynomials, \(\lVert v \rVert_\infty\) is the largest absolute value of a coefficient, residues being taken between \(-q/2\) and \(q/2\). A coefficient \(r\) splits as \(r = r_1 \cdot 2\gamma_2 + r_0\) with \(\lvert r_0 \rvert \le \gamma_2\) into its high bits \(r_1\) and its low bits \(r_0\).
Keys. \(A\) is a uniformly random matrix of \(k \times \ell\) polynomials; \(s_1\) and \(s_2\) are vectors of \(\ell\) and of \(k\) polynomials with coefficients between \(-\eta\) and \(\eta\); and \(t = A s_1 + s_2\). The public key is \((A, t)\), the private key \((s_1, s_2)\).
Signing a message \(\mu\). Draw a mask \(y\) of \(\ell\) polynomials with coefficients uniform between \(-\gamma_1 + 1\) and \(\gamma_1\), and compute
\[w = A y, \qquad c = H(\mu, \mathrm{HighBits}(w)), \qquad z = y + c\,s_1,\]where the hash \(H\) returns a polynomial with \(\tau\) coefficients \(\pm 1\) and the others zero. If
\[\lVert z \rVert_\infty < \gamma_1 - \beta \quad \text{and} \quad \lVert \mathrm{LowBits}(w - c\,s_2) \rVert_\infty < \gamma_2 - \beta, \qquad \beta = \tau\eta,\]the signature is \((c, z)\). Otherwise start again with a new mask.
Verifying. Accept \((c, z)\) if \(\lVert z \rVert_\infty < \gamma_1 - \beta\) and \(c = H(\mu, \mathrm{HighBits}(A z - c\,t))\).
ML-DSA-65 has \((k, \ell) = (6, 5)\), \(\eta = 4\) and \(\tau = 49\), so that \(\beta = 196\), with \(\gamma_1 = 2^{19}\) and \(\gamma_2 = (q - 1)/32 = 261{,}888\).
Accordingly, the signature transmits the challenge \(c\) rather than the commitment \(w\), and the verifier reconstructs \(\mathrm{HighBits}(w)\) as \(\mathrm{HighBits}(A z - c\,t)\). That second bound \(\lVert \mathrm{LowBits}(w - c\,s_2) \rVert_\infty < \gamma_2 - \beta\) simultaneously prevents leaks of the second secret vector \(s_2\): anyone holding a signature can compute \(\mathrm{LowBits}(A z - c\,t) = \mathrm{LowBits}(w - c\,s_2)\), which shifts \(\mathrm{LowBits}(w)\) by \(-c\,s_2\), and rejecting values near \(\pm \gamma_2\) trims away the boundary band where that shift would show. Proposition 7.2.2 does not apply directly here because \(\mathrm{LowBits}(w)\) is not strictly uniform, so the Dilithium specification argues more simply: once \((c, z)\) passes the first check, its distribution is independent of the private key, and the second check depends only on \(A z - c\,t\) and the public key \((A, t)\), so filtering by a publicly computable test cannot reveal anything beyond the public key itself.S. Bai, L. Ducas, E. Kiltz, T. Lepoint, V. Lyubashevsky, P. Schwabe, G. Seiler and D. Stehlé, "CRYSTALS-Dilithium Algorithm Specifications and Supporting Documentation (Version 3.1)", 8 February 2021 (specification), Appendix B: with the hash modeled as a random function, a challenge and a response that passes the first condition are uniform whatever the key, and the second condition can be tested without the private key.
In the code. The page's JavaScript implementation runs the rejection loop of Definition 7.3.1 using the Number-Theoretic Transform (matrixVectorNTT, nttVector) to compute \(w = A y\) and \(c\,s_1\), hashes \(\mu\) with the encoded high bits w1 into cTilde, and calls sampleInBall to turn cTilde into a sparse polynomial c with \(\tau\) entries equal to \(\pm 1\) (numbered comments match Algorithm 7 of FIPS 204, omitting the low-bits and compression checks for clarity):
for (;;) { // 10: rejection sampling loop
var y = expandMask(P, rhoPP, kappa); // 11
var w = nttInverseVector(matrixVectorNTT(key.Ahat, nttVector(y))); // 12: w = A y
var w1 = w.map(function (p) { return p.map(function (x) { return highBits(P, x); }); }); // 13
var cTilde = H(BYTES.concat(mu, w1Encode(P, w1)), P.lambda / 4); // 15: commitment hash
var c = sampleInBall(P, cTilde); // 16: challenge
var cHat = ntt(c); // 17
var cs1 = nttInverseVector(scalarVectorNTT(cHat, key.s1Hat)); // 18
var z = y.map(function (p, i) { return p.map(function (x, j) { return x + modPM(cs1[i][j], Q); }); }); // 20
var zNorm = infNorm(z);
var zOk = zNorm < P.gamma1 - P.beta;
// ...
kappa += P.l; // 31
}
The mask is not taken from the system's random numbers. expandMask expands it from a seed, rhoPP, and a counter that moves on at every attempt, and the seed is a hash of a secret part of the private key, of the message and, by default, of 32 fresh random bytes. The standard calls this hedged signing, and Example 7.1.2 says why it matters: two responses made with one mask satisfy \(z - z^{\prime} = (c - c^{\prime})\,s_1\), a linear equation for the secret with public coefficients. A mask must never serve two messages, and nobody must be able to guess it. The fresh bytes help against side-channel attacks, which watch or disturb the device that signs, and the secret part protects a signer whose random-number generator is bad.FIPS 204, Section 3.4. The standard also permits a deterministic variant, without the fresh bytes, for signers that have no source of randomness, and warns against it where side-channel attacks are a concern.
The standard introduces the loop in one paragraph, and its first sentence says what the loop is for.
The main part of the signing algorithm consists of a rejection sampling loop in which each iteration of the loop either produces a valid signature or an invalid signature whose release would leak information about the private key. The loop is repeated until a valid signature is produced, which can then be encoded as a byte string and output.10 The rejection sampling loop follows the Fiat-Shamir With Aborts paradigm [10] and (aside from the rejection step) is similar in structure to Schnorr signatures [30] (e.g., EdDSA [31]). The signer first produces a “commitment” 𝐰1 and then pseudorandomly derives a “challenge” 𝑐 from 𝐰1 and the message representative 𝜇. Finally, the signer computes a response 𝐳.
—NIST, FIPS 204 (2024). Section 6.2, the paragraph on the main loop; the numbers in square brackets are the standard's references, and 𝜇 is the hash that stands for the message. The 10 after its second sentence is the mark of a footnote, by which an implementation may give up after a fixed number of attempts and return an error; by Appendix C of the standard that number must be at least 814, a bound that is reached with probability about \(2^{-256}\).
How many attempts does a signature take? By Proposition 7.2.2 the first condition keeps 62% of the attempts of ML-DSA-65. The same count for the second condition, with the low bits of \(w\) taken as uniform, gives 32%. So about one attempt in five passes both, and the standard's table says 5.1 attempts a signature. Over 10,000 signatures made with the code of this page (100 keys, 100 messages each, one run) the mean was 5.20. The loop has no memory, so the number of attempts follows the geometric law: about one signature in five is done at the first attempt, and one of the 10,000 took 41. The number may be shown, and so may the time that signing takes: by the designers' analysis the chance that an attempt is kept does not depend on the private key.Bai et al., Section 3.4: the expected number of iterations does not depend on the private key, so nothing is learned by counting them. The table's 5.1 is its Equation 5, an approximation for the two conditions of Definition 7.3.1.
| parameter set | category | public key | signature | attempts, standard | attempts, measured |
|---|---|---|---|---|---|
| ML-DSA-44 | 2 | 1,312 | 2,420 | 4.25 | 4.38 |
| ML-DSA-65 | 3 | 1,952 | 3,309 | 5.1 | 5.20 |
| ML-DSA-87 | 5 | 2,592 | 4,627 | 3.85 | 3.92 |
The categories are NIST's measure of strength. To break a scheme of category 2, 3 or 5 must cost at least as much as to find a collision in the hash function SHA-256, or the key of the cipher AES with 192 or with 256 bits (Section 10.4).
Full FIPS 204 differs from Definition 7.3.1 mainly in how keys and signatures are packed into bytes. Rather than hashing the raw message, \(\mu\) hashes the message together with a digest of the public key, and \(A\) is expanded on the fly from a 32-byte seed rather than stored. The signature encodes a 48-byte commitment hash cTilde (from which anyone expands \(c\)) plus the response \(z\) in 3,200 bytes, with nothing of \(w\). Finally, the public key stores only the top ten of the 23 bits of each coefficient of \(t\), cutting \(t\) from 4,416 bytes to 1,920. Dropping those bottom 13 bits \(t_0\) means the verifier can compute \(A z - c(t - t_0)\) rather than \(A z - c\,t\), missing \(-c\,t_0\), which occasionally nudges a coefficient across \(\pm \gamma_2\) and shifts its high bits by 1. Because the signer knows \(t_0\), it appends a list of one-bit carry hints naming the affected positions, at most 55 of them packed into 61 bytes; the remaining two checks of the signing loop keep \(-c\,t_0\) small and cap the hint count at 55, failing on just 47 of the 41,989 rejections in those 10,000 measured signatures. Together those fields bring an ML-DSA-65 signature to 3,309 bytes and its public key to 1,952.Bai et al., Section 1.2: the public key shrinks by a factor slightly larger than two, at the expense of fewer than 100 bytes of signature. Its Appendix B says of these two checks that they are made with public information: they use the dropped bits of \(t\), on whose secrecy the security of the scheme does not rest.
What is proved about the scheme is conditional. With the hash treated as a random function, its designers show that a forger could be turned into a solver of one of two problems: to tell \(t = A s_1 + s_2\) from a random vector, which is learning with errors in its module form (Section 5.3), or to find a short solution of a linear system built from \(A\) and \(t\), with the hash tying the solution to a message. That these problems are hard at the standard's sizes is believed, not proved. No algorithm that is practical at those sizes was known in November 2026, classical or quantum (Section 5.6).Bai et al., Section 1.2. The second problem is called SelfTargetMSIS there. For an attacker who queries the hash as a classical computer does, its hardness follows, with a loss, from that of the plain short integer solution problem, to find a short non-zero \(z\) with \(A z = 0\). For an attacker who queries the hash in superposition the specification has no such reduction, and gives its reasons for believing the problem hard all the same.
The other route: hash and sign
The second route does not start from a proof. It starts from the trapdoor of Section 3.3: a lattice of which the signer knows a good basis, short and nearly orthogonal, and everyone else only a bad one. To sign, hash the message to a point of space and use the good basis to find a lattice point close to it. To verify, check with the public basis that the signature is a point of the lattice and that it lies close to the hash. Without a good basis, to find a lattice point close to a given target is the closest vector problem. The first signatures built this way, that of Goldreich, Goldwasser and Halevi (1997) and NTRUSign after it, found the close point in the simplest way there is, by rounding the coordinates of the hash in the secret basis.
panes one lattice (its cell has area 22) and two of its bases, A and B, each a secret key; the same 1,000 hashes
are signed with both, by rounding in the basis. A point: a hash minus its signature
basis A (5, 1), (−2, 4) the points fill A's cell, the parallelogram on those two vectors
basis B (3, 5), (−2, 4) the same hashes fill B's cell, another shape of the same area
learn the edges of each cell, from its points alone: 1.6° off (A), 0.20° off (B);
rounded to whole numbers they are the two secret bases
chart the same attack on ten keys: how far off the learned edges are, median (least to most), and in how many
of the ten keys they round to the secret basis; a blind guess is 22.5° off on average
200 signatures 2.30° (0.94° to 3.85°) 1 of 10
2,000 1.08° (0.34° to 2.09°) 5
20,000 0.34° (0.04° to 0.97°) 10
real NTRUSign-251 without perturbation, a lattice of 502 dimensions, fell to 400 signatures, each worth 251 points
through the lattice's symmetry (100,400 points); without the symmetry, to 90,000 signatures
(the live figure needs JavaScript; it loads no data)
Rounding sends a hash to the lattice point whose cell it falls in, so a hash minus its signature is a point of that cell, and a thousand of them draw it. The cell is the secret: its edges are the basis vectors.
Writing the secret basis vectors as the columns of a matrix \(B\) shows how the geometry leaks. Any hashed target in \(\mathbb R^n\) has real coordinates \(x\) in that basis, namely \(B x\); coordinate rounding signs with \(B \lfloor x \rceil\), rounding each entry of \(x\) to its nearest integer, so the residual vector from signature to hash is
\[B\,(x - \lfloor x \rceil) = B u, \qquad u \in [-\tfrac12, \tfrac12]^n .\]Because hashes land uniformly across space modulo the lattice, \(u\) is distributed uniformly over the unit hypercube \([-\tfrac12, \tfrac12]^n\), and the observed residuals \(B u\) fill the fundamental parallelepiped of \(B\) uniformly. Recovering an unknown matrix \(B\) from uniform samples of \(B u\) is a classical problem of statistics, solved for lattice signatures by Nguyen and Regev in 2006 in two steps. First, the sample covariance matrix converges to \(B B^{\top}/12\), which suffices to rescale space so that the skewed parallelepiped becomes a hypercube of side 2 at an unknown rotation. Second, unlike a round sphere, a hypercube has flat faces and protruding corners: along any unit vector with coordinates \(a_i\) in the cube's frame, one-dimensional projections have fourth moment \(\tfrac13 - \tfrac{2}{15} \sum_i a_i^4\), which achieves its minimum precisely along the coordinate axes. Gradient descent on the unit sphere therefore locks onto the cube's edges one after another. Nguyen and Regev noted that this procedure is independent component analysis (ICA), in what they believed to be its first use in cryptanalysis: the independent uniform coordinates \(u_i\) are the hidden sources, and the columns of \(B\) are their mixing directions.
In the plane a few hundred signatures give the directions of the cell to within a few degrees, and the last step is free: the basis vectors have whole-number coordinates, so an estimate that is near enough rounds to the secret basis itself. Over ten keys that happened for one key from 200 signatures, for five from 2,000 and for all ten from 20,000. At real size the attack recovered the private key of NTRUSign-251, a lattice of 502 dimensions, in the form without an added perturbation that was then before a standards committee, from 400 signatures, each worth 251 points of the cloud through a symmetry of that lattice. Without the symmetry the paper's experiments needed 90,000 signatures. The paper's explanation of the leak is the last sentence of this passage.
In [9], Goldreich et al. described how the underlying principle of their encryption scheme could also provide a signature scheme. The resulting GGH signature scheme did not attract much interest in the research literature until the company NTRU Cryptosystems proposed a relatively efficient signature scheme called NTRUSign [11], based exactly on the GGH design but using the compact NTRU lattices. NTRUSign had a predecessor NSS [14] less connected to the GGH design, and which was broken in [6, 7]. Gentry and Szydlo [7] observed that the GGH signature scheme has an unusual property (compared to traditional signature schemes): each signature released leaks information on the secret key, and once sufficiently many signatures have been obtained, a certain Gram matrix related to the secret key can be approximated. The fact that GGH signatures are not zero-knowledge can be explained intuitively as follows: for a given message, many valid signatures are possible, and the one selected by the secret key says something about the secret key itself.
—P. Q. Nguyen and O. Regev, "Learning a Parallelepiped: Cryptanalysis of GGH and NTRU Signatures" (2009). Journal of Cryptology 22, pp. 139 to 160 (paper), Section 1, its second paragraph, whose numbers in brackets are the paper's references; a first version appeared at EUROCRYPT 2006. GGH is the scheme of Goldreich, Goldwasser and Halevi. The related work of the same section names independent component analysis; the experiments on NTRUSign-251 are in Sections 3 and 5.1. A perturbation alters the hash before it is signed; the paper leaves open whether that is enough to prevent the attack.
Set this beside Section 7.2. There, many responses would pass the check, and which one the signer sends depends on the secret through the edge of a box. Here, many lattice points lie close enough to the hash, and which one the signer sends depends on the secret through the shape of a cell.
A round cloud, and Falcon
Keep the lattice, the two bases and the hashes of that experiment and change one thing. Instead of rounding to a lattice point, draw one at random around the hash, near points likelier than far ones, with the weights of a Gaussian.
panes the lattice, the two secret bases and the 1,000 hashes of the figure before; each hash is now signed by a
lattice point drawn at random around it, near points likelier: a discrete Gaussian of width 4.0
basis A (5, 1), (−2, 4) a round cloud, spread 4.21 by 3.98
basis B (3, 5), (−2, 4) the same round cloud, spread 4.11 by 3.94
learned from them: edges 11° off (A) and 15° off (B), a blind guess (anywhere from 0° to 45°)
width the least width of a basis is 0.55 × its longest Gram-Schmidt vector; narrower (hatched), the cloud
takes the shape of the basis again
A 0.55 × 5.10 = 2.81 ///////////////| B 0.55 × 5.83 = 3.22 /////////////////|
chart the attack on ten keys, error of the learned edges, median (least to most); a blind guess: 22.5°
signatures 200 2,000 20,000
by rounding 2.30° (0.94° to 3.85°) 1.08° (0.34° to 2.09°) 0.34° (0.04° to 0.97°)
Gaussian, 0.5 × least 8.3° 8.2° 4.6°
Gaussian, 3.8 × least 20.4° (7.9° to 41.1°) 19.1° (4.3° to 40.5°) 20.1° (7.9° to 37.4°)
real Falcon-512 signs at its least width, 165.74: about 1.278 × 129.7
(the live figure needs JavaScript; it loads no data)
Sampled from a wide enough Gaussian, the signature follows the exact same probability distribution whichever short basis produced it, leaving a rotationally symmetric cloud that reveals nothing about the secret basis. Independent component analysis loses its foothold completely on a spherical Gaussian, which looks identical in every rotated coordinate frame. Across the ten test keys, the attack that came within a third of a degree of a rounding signer's basis stays near the blind-guess level of about 20° in median error whether it sees 200 signatures or 20,000; although a single run can land close by chance (one of the 30 runs landed 4.3° off), collecting more signatures brings no improvement. Formally, restricting the weights of a continuous spherical bell curve around a target \(t\) to the points of a lattice \(\mathcal L\) defines a distribution that depends on \(\mathcal L\) alone and never mentions a basis.
Definition 7.5.1 (the discrete Gaussian on a lattice). For a lattice \(\mathcal L\), a center \(t\) in space and a width \(\sigma > 0\), the discrete Gaussian \(D_{\mathcal L, \sigma, t}\) gives every lattice point \(v\) a probability proportional to \(\exp\bigl(-\lVert v - t \rVert^2 / 2\sigma^2\bigr)\).
All the algorithmic work goes into sampling from \(D_{\mathcal L, \sigma, t}\) using a short secret basis, and the core sampler changes just one line of an older deterministic decoder: Babai's nearest-plane algorithm. Walking through the basis from the last vector \(b_{n-1}\) down to \(b_0\), Babai projects the remaining target rest onto the orthogonalized Gram-Schmidt vector \(b_i^{\ast}\) (gs.bstar[i], with squared length gs.norms2[i]) and rounds that real projection s / gs.norms2[i] to the nearest integer k[i] so as to land on the lattice hyperplane closest to rest:
for (var i = n - 1; i >= 0; i--) {
var s = 0, w = gs.bstar[i];
for (c = 0; c < dim; c++) s += rest[c] * w[c];
k[i] = Math.round(s / gs.norms2[i]) + 0;
if (k[i] !== 0) for (c = 0; c < dim; c++) rest[c] -= k[i] * basis[i][c];
}
Signing with deterministic nearest-plane rounding would still leak the private key: the residuals uniformly fill the orthogonal box spanned by the Gram-Schmidt vectors \(b_i^{\ast}\) (Definition 3.4.1), exposing their lengths and directions. Klein's randomized sampler, which Gentry, Peikert, and Vaikuntanathan turned into a provably secure signing method in 2008, replaces Math.round on that single line with a randomized integer draw:
for (var i = n - 1; i >= 0; i--) {
var s = 0, w = gs.bstar[i];
for (c = 0; c < dim; c++) s += rest[c] * w[c];
z[i] = sampleInteger(rng, sigma / Math.sqrt(gs.norms2[i]), s / gs.norms2[i]);
if (z[i] !== 0) for (c = 0; c < dim; c++) rest[c] -= z[i] * basis[i][c];
}
At step \(i\), sampleInteger draws an integer from a one-dimensional discrete Gaussian centered at s / gs.norms2[i] with standard deviation \(\sigma / \lVert b_i^{\ast} \rVert\). That ratio \(\sigma / \lVert b_i^{\ast} \rVert\) explains why the secret basis must be short. Wherever a Gram-Schmidt vector \(b_i^{\ast}\) is long, the one-dimensional draw becomes narrow; if \(\sigma / \lVert b_i^{\ast} \rVert\) drops too low to blur across the unit spacing between adjacent integers, sampleInteger collapses back to deterministic rounding and the output cloud regains the rectangular imprint of \(b_i^{\ast}\). To erase every trace of the basis, \(\sigma\) must exceed a slowly growing smoothing factor times \(\max_i \lVert b_i^{\ast} \rVert\): 0.55 for the two planar bases above (keeping the cloud within 1% of spherical), and 1.278 for Falcon-512. Cut \(\sigma\) to half that threshold, and the attack of Section 7.4 narrows the basis angle down to a median error of 4.6° across the ten keys after 20,000 signatures. A shorter, more orthogonal secret basis keeps \(\max_i \lVert b_i^{\ast} \rVert\) smaller, permitting a tighter Gaussian width \(\sigma\) and therefore shorter signatures.
Concretely, our hash-and-sign schemes represent a more theoretically sound way of instantiating the original (but insecure) GGH proposal [GGH97] and its variants, e.g., NTRUSign [HHGP+03]. Informally, in these schemes a message is hashed to a point in some region of space, and its signature is essentially a nearby lattice point, which is found using a “good” secret basis. Our schemes have two main differences: first, they are based on random lattices that enjoy worst-case hardness; second and more importantly, the signatures are generated by a randomized decoding algorithm whose output distribution is oblivious to the geometry of the secret basis. (Recall that the original GGH proposal is insecure precisely because its signatures leak information about the “shape” of the trapdoor basis [NR06].)
—C. Gentry, C. Peikert and V. Vaikuntanathan, "Trapdoors for Hard Lattices and New Cryptographic Constructions" (2008). STOC 2008; Section 1.1.2 of the version of 25 August 2008. Section 1.1.1 states the condition on the width and credits the sampler to Klein, who had proposed it in 2000 in another context.
Falcon instantiates this Gaussian trapdoor paradigm over compact polynomial rings (NIST calls the forthcoming standard FN-DSA; the figures here come from Falcon's 2020 specification). It works over NTRU lattices built from the ring \(\mathbb Z[X]/(X^n + 1)\) at degree \(n = 512\) or 1,024 with modulus \(q = 12{,}289\). The private key consists of four short polynomials \(f, g, F, G\) satisfying \(f G - g F = q\), which form a short basis of a \(2n\)-dimensional lattice, while the public key is the single quotient polynomial \(h = g/f \bmod q\) (897 bytes at \(n = 512\)). To sign a message hashed with a random salt to a target polynomial \(c\) modulo \(q\), the signer uses the trapdoor basis to sample a short pair \((s_1, s_2)\) satisfying \(s_1 + s_2 h \equiv c \pmod q\). Because anyone knowing \(c\), \(h\), and \(s_2\) can immediately recover \(s_1 = (c - s_2 h) \bmod q\), the signature sends only the salt and the single short polynomial \(s_2\), taking just 666 bytes at \(n = 512\); the verifier recomputes \(s_1\) and checks that the combined vector \((s_1, s_2)\) is short. Every parameter is tuned to minimize the Gaussian width: key generation resamples until the longest Gram-Schmidt vector satisfies \(\max_i \lVert b_i^{\ast} \rVert \le 1.17 \sqrt q = 129.7\), so signing can run at \(\sigma = 1.278 \times 129.7 = 165.74\). Rather than executing Klein's quadratic loop on a \(1{,}024 \times 1{,}024\) matrix, Falcon splits polynomials recursively in the complex Fourier domain along a precomputed tree, drawing from the same discrete Gaussian in \(O(n \log n)\) operations.P.-A. Fouque, J. Hoffstein, P. Kirchner, V. Lyubashevsky, T. Pornin, T. Prest, T. Ricosset, G. Seiler, W. Whyte and Z. Zhang, "Falcon: Fast-Fourier Lattice-based Compact Signatures over NTRU", specification v1.2, 1 October 2020: Sections 2.3 and 2.4 and Table 3.3. The stated aim of the design is the least sum of the sizes of public key and signature.
One rule of care has the same shape as on the first route. There a mask must never serve two messages. Here a hash must never be signed twice: two different signatures of one hash would differ by a short vector of the lattice, and the proof of security does not survive their publication. Falcon therefore hashes every message together with a fresh salt of 40 random bytes.Falcon's specification, Section 2.2.2.
The delicate part is the sampler. The centers and the widths of its integer draws, the two arguments of sampleInteger in the listing, are real numbers computed from the private basis. Falcon computes them in floating-point arithmetic with 53 bits of precision, the double precision of ordinary processors, while the argument that the cloud is round is about exact numbers. The specification answers with an experiment: run at 200 bits and at 53, the centers and the widths agreed to within \(2^{-40}\), where its analysis asks for \(2^{-46}\), a gap it judges harmless, and it calls leakage through rounding errors "a purely theoretic threat". The practical difficulties are others. Floating-point code is hard to make run in constant time, so that its timing says nothing about the key; small devices may have no floating-point unit; and two implementations that round differently can make different signatures from the same inputs. NIST's report on its choice of algorithms says it without softening.
Unlike the instantiation of NTRU lattices, the trapdoor preimage sampling algorithm of FALCON is fairly involved. In particular, its implementation requires the use of operations such as floating-point arithmetic, which leads to difficulties in secure implementations (e.g., for achieving constant-time signing) [246]. FALCON also has complex data structures, like the FALCON tree. This makes FALCON significantly more challenging to implement than other lattice signature schemes (notably, Dilithium) [58]. NIST encourages further work on how to best implement FALCON, as well as on how to verify implementations.
—NIST, "Status Report on the Third Round of the NIST Post-Quantum Cryptography Standardization Process" (2022). G. Alagic and 13 co-authors, NIST IR 8413-upd1 (report), Section 4.4.2. The precision experiment is in Section 2.5.2 of Falcon's specification. Section 10.5 of this series collects what goes wrong in implementations.
The standard itself is not out. FIPS 206, which is to specify FN-DSA, is not published: NIST's project page said on 30 November 2026 that Falcon "will be published in FIPS 206 (in development)", and the last statement of NIST's that this series found, a status update of 25 September 2025, called the first public draft "basically written, awaiting approval". No public draft had been found by 30 November 2026. As that update previews it, the standard keeps floating point out of verification, expects a signing implementation to reproduce the test vectors exactly, down to the order of its operations, and allows only randomized signing, since an error in floating-point code could otherwise make two signatures of one hash.R. Perlner, "FIPS 206 Status Update", NIST, Sixth PQC Standardization Conference, 25 September 2025 (slides); the plans on the slides are marked provisional. The project page is NIST's post-quantum cryptography standardization page.
On paper, the security reduction on this route is cleaner than ML-DSA's, while the underlying hardness assumption is of the same empirical kind. Above the smoothing bound and under exact Gaussian sampling, it is proved that signatures follow the same distribution up to negligible statistical distance regardless of which short basis generated them, and that in the random-oracle model any forger can be converted into an algorithm that finds short nonzero vectors in the public lattice. Gentry, Peikert, and Vaikuntanathan proved worst-case-to-average-case hardness for unstructured random lattices modulo \(q\) (Section 4.5); Falcon trades those unstructured matrices for compact NTRU rings, resting on the assumption that no feasible algorithm can recover short vectors such as \((g, -f)\) from the public ratio \(h = g/f \bmod q\).
Step for step, the two routes tell one story.
Two routes to a lattice signatureread across: a row is the same step on both routes
- starts from
a proof of knowledge Schnorr's three moves · Commit, challenge, respond. A hash of the commitment and the message plays the verifier.
a trapdoor a good basis · The signer knows a short, nearly orthogonal basis of a lattice; everyone else knows a bad one.
- a signature is
a mask plus challenge times secret The response z = y + c·s1, which must be short, with the challenge that the hash returned.
a lattice point near the hash The message is hashed to a point of space, and the trapdoor finds a lattice point close to it.
- the leak
the edge of the mask A response past the end of the mask's range was pushed there by c·s1, and c is public: the pushes add up to the secret.
the cell of the basis By rounding, a hash minus its signature is a uniform point of the secret basis's cell, and the edges of the cell are the key.
- the repair
throw answers away Keep a response only if every coefficient lies inside a smaller box. What is kept is uniform on that box for every key.
sample a round cloud Draw the lattice point from a discrete Gaussian around the hash, wide enough for the basis. The cloud is the same for every basis.
- never twice
a mask Two responses made with one mask give a linear equation for the secret, so the mask is expanded afresh for every message.
a hash Two signatures of one hash differ by a short vector of the lattice, so every message is hashed with a fresh salt.
- the price
a loop and a wide mask ML-DSA-65 · About five attempts a signature, and a signature of 3,309 bytes, 3,200 of them the response.
a delicate sampler Falcon-512 · Floating point with 53 bits of precision in signing, and a signature of 666 bytes.
green: the repair, which makes the law of a signature the same for every key
A lattice signature is a sample, and whatever in the law of that sample depends on the private key, enough signatures give away. ML-DSA makes the law a fixed box by throwing away the answers near the edge; Falcon makes it a round cloud that is the same for every basis.
Every signature on one canvas
Both repairs are paid for in bandwidth and in implementation care. The chart below places every signature scheme in this series beside the classical schemes in use today.
rows a parameter set of a signature scheme a row, 27 rows; columns: key + signature, public key, signature
(bytes), signatures and verifications a second (OpenSSL on one core of this machine, 20 of the rows)
key + sig public key signature signs/s verifies/s
in use today
Ed25519 96 32 64 39,961 12,120 the hairline
from lattices
Falcon-512 (FN-DSA-512) 1,563 897 666 not run here published sizes
ML-DSA-44 3,732 1,312 2,420 2,268 11,414
ML-DSA-65 5,261 1,952 3,309 1,415 7,398 the default
ML-DSA-87 7,219 2,592 4,627 1,206 4,708
from hashes
LMS_SHA256_M32_H10 1,508 56 1,452 not run here published sizes, stateful
SLH-DSA-SHA2-128s 7,888 32 7,856 3.29 3,312 the smallest stateless
SLH-DSA-SHA2-256f 49,920 64 49,856 21.2 805 the largest
also ECDSA and RSA; Falcon-1024; a second LMS and three XMSS sets; the other ten SLH-DSA sets
Falcon-512's signature is 0.28 of ML-DSA-44's, key and signature together 0.42
(the live figure needs JavaScript and loads about 0.2 MB of data)
ML-DSA-65 sends 55 times as many bytes of public key and signature combined as Ed25519, a Schnorr signature over an elliptic curve; on one core of a 16-core server (OpenSSL 3.5.9, one run each) it signs 28 times more slowly and verifies at three fifths of Ed25519's rate. Falcon is the compact post-quantum option: Falcon-512's signature is roughly a quarter the size of ML-DSA-44's, and its public key plus signature about two fifths, claiming security category 1 (comparable to a key search on AES-128) compared with category 2 for ML-DSA-44. Falcon carries no speed dot here because OpenSSL 3.5.9 does not include it, and timings measured on another machine would not be comparable on these axes. At the opposite extreme sits SLH-DSA (SPHINCS+), the stateless hash-based signature of Section 8: its smallest parameter sets exceed the combined public key and signature of ML-DSA-65 by half again, and the faster of them signs only about three times per second, in exchange for resting on a hash function and nothing else.
That spectrum explains why NIST standardized two lattice schemes. Its selection report names Dilithium the primary algorithm for general use thanks to its simpler integer-only signing loop, while selecting Falcon alongside it for protocols that, in NIST's words, "will not work as they are currently designed if the signature and the data being signed cannot fit in a single internet packet".NIST IR 8413-upd1, Section 2.3. Bandwidth matters sharpest where protocols transmit whole chains of certificates at once, as TLS handshakes do in Section 11.3; additional non-lattice signature candidates remain under evaluation for the reasons explored in Section 10.6. Section 8 examines the scheme at the conservative end of the chart, paying the highest price in bytes to drop lattice assumptions altogether.