LWE decode-then-extract computational fuzzy extractor #
Construction 4.1 of Fuller, Meng, and Reyzin ([FMR20], Section 4) builds a
computational fuzzy extractor over the Hamming space (Fin m → ZMod q, hammingDist) by reversing
the role of the noisy source reading w: rather than extracting randomness from w, Gen(w)
samples a uniform matrix A : Matrix (Fin m) (Fin n) (ZMod q) and secret s : Fin n → ZMod q
and uses w as the error vector in an LWE-style code-offset sample c = A s + w.
Given a close reading w' with hammingDist w w' ≤ t, Rep(w', p) subtracts w' from c to
form c - w' = A s + (w - w'), where the residual error e = w - w' has Hamming weight
hammingNorm (w - w') = hammingDist w w' ≤ t, runs a t-error decoder decode A (c - w') to
recover s, and derives the key from s.
Main definitions #
Cslib.Crypto.FuzzyExtractor.DecodeHelper: the public helper(A, c, x)of the decode-then-extract construction.Cslib.Crypto.FuzzyExtractor.decodeThenExtract: the generic decode-then-extractFuzzyExtractor, with the key derived from the decoded secret by an arbitrary seeded functionext.Cslib.Crypto.FuzzyExtractor.lweFuzzyExtractor: Construction 4.1 as stated in the paper (key = the firstkcoordinates of the secret, no seed).Cslib.Crypto.FuzzyExtractor.decodeCheck,Cslib.Crypto.FuzzyExtractor.decodeGame,Cslib.Crypto.FuzzyExtractor.DecoderCorrectWithError:(1 - δ)average-case decoding correctness over uniformAup to Hamming weightt. Correctness is stated only on average overA: forA = 0the decoder's inputA s + e = edoes not depend ons, so no decoder recoverssfor every matrix unlessFin n → ZMod qhas one element.Cslib.Crypto.FuzzyExtractor.joinCols,Cslib.Crypto.FuzzyExtractor.hardcoreKeyReduction,Cslib.Crypto.FuzzyExtractor.hardcoreUniformReduction: the secret-splitting reductions behind Lemma 4.7, as LWE distinguishersMatrix (Fin m) (Fin l) (ZMod q) → (Fin m → ZMod q) → Experiment.
Main results #
Cslib.Crypto.FuzzyExtractor.failProbability_reproduceGame_decodeThenExtract_leandCslib.Crypto.FuzzyExtractor.correctHammingWithError_decodeThenExtract_of_decoderCorrectWithErrorare decoder-relative steps establishingδ-error Hamming reproduction correctness ofdecodeThenExtractfrom a caller-suppliedDecoderCorrectWithErrorhypothesis, not the unconditional correctness part of Theorem 4.11 (p. 17), since the random-subset LWE decoder of Construction 4.9 / Lemma 4.10 (pp. 15–16, over primeq) is not formalized (#6040).Cslib.Crypto.FuzzyExtractor.uniform_bind_decode_bind_apply_false_le: the decode-failure step shared with the correctness proofs of the reusable extractors inCslibFrontier.Crypto.Computational.FuzzyExtractor.Reusable.Cslib.Crypto.FuzzyExtractor.securityAdvantage_lweFuzzyExtractor_le: for every sourceWand every distinguisherD, the security advantage oflweFuzzyExtractoris at most the sum of two decisional LWE advantagesCslib.Crypto.LWE.advantage, with a uniform secret in dimensionland error distributionW, against explicit reductions that never see the secret of their challenge. This is Lemma 4.7 (secret-splitting form) composed into the security part of Theorem 4.11.Cslib.Crypto.FuzzyExtractor.realDistribution_decodeThenExtract_add_uniform,Cslib.Crypto.FuzzyExtractor.securityAdvantage_decodeThenExtract_add_uniform_eq_zero: sanity checks for a uniform source and the additive key derivationext s x = s + x, where the real and ideal distributions coincide.
What is not proved #
- Hardness of LWE with error distribution
W. Theorems 4.6 and 4.8 of the paper, due to Döttling and Müller-Quade [DMQ13] and to Bai et al. [BLRL+18], derive it for uniform-intervalWand primeqfrom LWE with Gaussian errors. The security theorem is a reduction to that assumption, stated as an inequality between advantages. - Running time of the reductions and asymptotic security, here. The parameters
m, k, l, qare fixed, sosecurityAdvantage_lweFuzzyExtractor_leis a concrete reduction inequality, not a security theorem on its own. The moduleCslibFrontier.Crypto.Computational.FuzzyExtractor.DecodeThenExtract.Securitycertifies the reductions as strict PPT and proves the asymptotic step at modulus2 ^ w κ,computationallySecure_lweFuzzyExtractor_of_decisionLWEWithErrors. - The random-subset LWE decoder of Construction 4.9 and its correctness over prime
q(Lemma 4.10, pp. 15–16), which stays open (#6040); decoder correctness is taken as a hypothesis (DecoderCorrectWithError). - The symbol-fixing and block-source results of Section 5.
- No security claim is made for
decodeThenExtractwith a generalext: with a public seed and anextthat reveals the secret (for exampleext s x = s + x), the key determines the secret and the construction is insecure for non-uniformW.
References #
- B. Fuller, X. Meng, and L. Reyzin, Computational Fuzzy Extractors, Section 4 (Construction 4.1, Definition 4.5, Lemma 4.7, Construction 4.9, Lemma 4.10, Theorem 4.11).
- N. Döttling and J. Müller-Quade, Lossy Codes and a New Variant of the Learning-With-Errors Problem
- S. Bai, T. Lepoint, A. Roux-Langlois, A. Sakzad, D. Stehlé and R. Steinfeld, Improved Security Proofs in Lattice-Based Cryptography
The public helper p = (A, c, x) of the decode-then-extract construction
([FMR20], Construction 4.1), pairing the LWE sample (A, c) with the public
extractor seed x.
The public random matrix
A ∈ Z_q^{m × n}.The code-offset vector
c = A s + w ∈ Z_q^m.- seed : Seed
The public extractor seed
x.
Construction 4.1: Decode-then-extract fuzzy extractor #
The decode-then-extract computational fuzzy extractor ([FMR20], Construction 4.1):
Gen(w)samples uniformA : Matrix (Fin m) (Fin n) (ZMod q), uniform secrets : Fin n → ZMod q, and uniform seedx : Seed, and outputs(ext s x, ⟨A, A s + w, x⟩);Rep(w', p)computesp.cipher - w', runsdecode p.matrix (p.cipher - w'), and outputsext s' p.seedwhen the decoder returnssome s'(ordefaultonnone).
Algebraic code-offset identities and reproduction correctness #
The average-case decoding check on secret s and error e over a uniform matrix A:
sample A ← Matrix (Fin m) (Fin n) (ZMod q), run decode A (A s + e), and test whether the
output equals some s.
Average-case decoder correctness with failure probability at most δ up to Hamming weight t
(abstracting the conclusion of [FMR20], Lemma 4.10, p. 16): for every secret s
and error e with hammingNorm e ≤ t, decode A (A s + e) fails to output some s with
probability at most δ over uniform A and the coins of decode.
No concrete random-subset LWE decoder ([FMR20], Construction 4.9 and Lemma 4.10,
pp. 15–16, over prime q) is formalized in the library yet (#6040).
The decode-failure step shared by the correctness proofs of the decode-based fuzzy
extractors: run decode A (A s + e) on a uniform matrix A, then a continuation k A that
returns true with certainty when the decoder outputs some s. The result is false with
probability at most the decoding failure probability decodeGame decode s e false.
uniform_bind_decode_bind_apply_false_le with the decoding failure probability bounded by
δ.
Pointwise bound on the reproduction failure probability of decodeThenExtract:
whenever decodeGame decode s (w - w') fails with probability at most δ for every secret s,
reproduceGame w w' also fails with probability at most δ.
A step of [FMR20] Theorem 4.11 (p. 17) establishing δ-error Hamming
reproduction correctness of decodeThenExtract relative to a caller-supplied decoder
(hdec : DecoderCorrectWithError decode t δ), not the unconditional correctness part of
Theorem 4.11, because the random-subset LWE decoder of Construction 4.9 and Lemma 4.10
(pp. 15–16, over prime q) is not formalized (#6040).
Exact uniformity for a uniform source #
Sanity check for a uniform source: with W uniform on Fin m → ZMod q and the additive key
derivation ext s x = s + x, the real distribution (R, P) of decodeThenExtract equals the
ideal distribution (U, P), because translation by A s and then by x are bijections.
On a uniform source with the additive key derivation ext s x = s + x, every distinguisher
has advantage 0 against decodeThenExtract.
Construction 4.1 with hardcore key coordinates (Lemma 4.7) #
Construction 4.1 of [FMR20] as stated in the paper: the secret is
x : Fin (k + l) → ZMod q (the paper takes k = n/2), and the key is the first k coordinates
r = x₁, …, x_k. There is no extractor seed (Seed = Unit).
The real-key branch of the reduction behind [FMR20], Lemma 4.7 (from
Akavia, Goldwasser, and Vaikuntanathan), as an LWE distinguisher: given a sample (A₂, c₂) for
secret dimension l, sample A₁ and x₁ itself and run D x₁ ⟨[A₁ | A₂], A₁ x₁ + c₂, ()⟩.
The reduction never sees the secret of the sample it is given.
The uniform-key branch of the reduction behind [FMR20], Lemma 4.7: as
hardcoreKeyReduction, but D receives an independent uniform key r in place of x₁.
Security of Construction 4.1 from decisional LWE in dimension l
([FMR20], Lemma 4.7 and the security part of Theorem 4.11): for every source W
(used as the LWE error distribution) and every distinguisher D, the advantage of D against
lweFuzzyExtractor is at most the sum of the decisional LWE advantages LWE.advantage, with a
uniform secret in dimension l and error distribution W, of the two explicit reductions
hardcoreKeyReduction D and hardcoreUniformReduction D.
This is an exact statement with no hypotheses; it does not bound the running time of the
reductions, and it does not prove that LWE with error distribution W is hard (the paper obtains
this from Theorem 4.6 for uniform-interval errors). The asymptotic step built on it, at modulus
2 ^ w κ, is computationallySecure_lweFuzzyExtractor_of_decisionLWEWithErrors, whose
reductions are certified strict PPT.