Computational fuzzy extractors and secure sketches #
A fuzzy extractor (Gen, Rep) over a metric space (M, dis) derives a reproducible key r : Key
and public helper value p : Helper from a noisy source reading w : M, and reproduces r from
any reading w' within distance t of w using p ([DORS08], Section 8;
[FMR20], Section 2.1, Definitions 2.1 and 2.2).
In the computational setting of Fuller, Meng, and Reyzin ([FMR20], Definition 2.2),
security is parameterized by a family of source distributions sources : Set (PMF M) and requires
that for every W ∈ sources, the joint distribution (R, P) produced by Gen(W) is
computationally indistinguishable from (U, P), where U is uniform over Key and independent of
P.
This module also formalizes secure sketches ([FMR20], Definition 2.3), average-case
extractors (Definition 2.4), and the sketch-and-extract construction (Lemma 2.5), proving that
sketch-and-extract preserves both zero-error and δ-error reproduction correctness and transfers
average-case extractor security on (W, SS(W)) directly to fuzzy-extractor security.
Main definitions #
Cslib.Crypto.FuzzyExtractor: syntax of a fuzzy extractor(gen, rep)asProbCompprograms.Cslib.Crypto.FuzzyExtractor.reproduceCheck,Cslib.Crypto.FuzzyExtractor.reproduceGame: the reproduction correctness experiment on(w, w').Cslib.Crypto.FuzzyExtractor.Correct,Cslib.Crypto.FuzzyExtractor.CorrectWithError,Cslib.Crypto.FuzzyExtractor.CorrectHamming,Cslib.Crypto.FuzzyExtractor.CorrectHammingWithError: zero-error andδ-error correctness for general distance functions and for Hamming distance.Cslib.Crypto.FuzzyExtractor.realDistribution,Cslib.Crypto.FuzzyExtractor.idealDistribution: the real(R, P)and ideal(U, P)distributions on a sourceW(Definition 2.2).Cslib.Crypto.FuzzyExtractor.realExperiment,Cslib.Crypto.FuzzyExtractor.idealExperiment,Cslib.Crypto.FuzzyExtractor.realGame,Cslib.Crypto.FuzzyExtractor.idealGame,Cslib.Crypto.FuzzyExtractor.securityAdvantage,Cslib.Crypto.FuzzyExtractor.ComputationallySecureFor: the distinguishing experiments on a fixed reading, the games averaging them overWwithCslib.Crypto.Game.withSetup, the advantage, and computational security over a source family (Definition 2.2). Distinguishers areCslib.Crypto.ExperimentprogramsKey → Helper → Experiment.Cslib.Crypto.FuzzyExtractor.ComputationallySecure: its asymptotic form for a family of fuzzy extractors indexed by the security parameter, a set of source ensembles and a class of distinguisher families, with negligible advantage in place of the concrete bound.Cslib.Crypto.SecureSketch,Cslib.Crypto.SketchHelper,Cslib.Crypto.SecureSketch.sketchAndExtract: secure sketches (Definition 2.3) and the sketch-and-extract fuzzy extractor (Lemma 2.5).
Main results #
Cslib.Crypto.FuzzyExtractor.Correct.reproduceGame_eq_pure_true,Cslib.Crypto.FuzzyExtractor.Correct.correctWithError: zero-error correctness impliesreproduceGame w w' = PMF.pure trueandCorrectWithErrorfor everyδ.Cslib.Crypto.FuzzyExtractor.CorrectWithError.one_sub_le_succProbability: a failure boundδimplies reproduction success probability at least1 - δ.Cslib.Crypto.FuzzyExtractor.realGame_eq_bind,Cslib.Crypto.FuzzyExtractor.idealGame_eq_bind: the games are the distinguisher run onrealDistribution WandidealDistribution W.Cslib.Crypto.FuzzyExtractor.securityAdvantage_eq_zero_of_realDistribution_eq,Cslib.Crypto.FuzzyExtractor.computationallySecureFor_zero_of_realDistribution_eq: exact equality of(R, P)and(U, P)implies zero distinguishing advantage against all distinguishers.Cslib.Crypto.FuzzyExtractor.computationallySecure_iff,Cslib.Crypto.FuzzyExtractor.ComputationallySecure.of_computationallySecureFor: asymptotic security as negligible advantage, and from negligible concrete bounds.Cslib.Crypto.SecureSketch.failProbability_reproduceGame_sketchAndExtract_le,Cslib.Crypto.SecureSketch.Correct.sketchAndExtract,Cslib.Crypto.SecureSketch.CorrectWithError.sketchAndExtract,Cslib.Crypto.SecureSketch.securityAdvantage_sketchAndExtract_eq: Lemma 2.5 correctness and security transfer for sketch-and-extract.
References #
- Y. Dodis, R. Ostrovsky, L. Reyzin, and A. Smith, Fuzzy Extractors: How to Generate Strong Keys from Biometrics and Other Noisy Data, Section 8.
- B. Fuller, X. Meng, and L. Reyzin, Computational Fuzzy Extractors, Sections 2.1 and 2.2 (Definitions 2.1–2.4, Lemma 2.5).
A fuzzy extractor (Gen, Rep) over a metric space M with extracted key type Key and
public helper type Helper ([FMR20], Definitions 2.1 and 2.2).
Generation procedure
Gen(w), outputting an extracted keyrand public helperp.- rep : M → Helper → ProbComp Key
Reproduction procedure
Rep(w', p), recovering the key from a close readingw'and helperp.
Reproduction correctness (Definitions 2.1 and 2.2, item 3) #
The reproduction check program on original reading w and noisy reading w': sample
(r, p) ← Gen(w), sample r' ← Rep(w', p), and test whether r' = r.
The reproduction correctness experiment on (w, w') as a Boolean Game.
Unfold reproduceGame into PMF bind form over Gen(w) and Rep(w', p).
Zero-error reproduction correctness up to distance t with respect to dis:
whenever dis w w' ≤ t, every (r, p) in the support of Gen(w) and r' in the support of
Rep(w', p) satisfies r' = r.
Reproduction correctness with error δ up to distance t ([FMR20],
Definition 2.1, item 3): whenever dis w w' ≤ t, Rep(w', P) fails to equal R with
probability at most δ over the coins of Gen and Rep.
Zero-error reproduction correctness for the Hamming metric on Fin m → α.
Reproduction correctness with error δ for the Hamming metric on Fin m → α.
Under CorrectWithError, whenever dis w w' ≤ t, Rep(w', P) = R holds with probability
at least 1 - δ ([FMR20], Definition 2.1, item 3).
Relaxing the error bound δ or shrinking the distance threshold t preserves
CorrectWithError.
Zero-error correctness makes reproduceGame w w' identically PMF.pure true whenever
dis w w' ≤ t.
Zero-error correctness implies CorrectWithError with error 0.
Zero-error correctness implies CorrectWithError for every error bound δ.
Computational security (Definition 2.2, item 4) #
The real joint distribution (R, P) produced by Gen(W) on a source distribution W : PMF M
([FMR20], Definition 2.2).
The marginal distribution of the public helper string P produced by Gen(W).
The ideal joint distribution (U, P) for a source W : PMF M, where P is the helper string
from Gen(W) and U is uniform over Key and independent of P
([FMR20], Definition 2.2).
The ideal distribution samples p ← helperDistribution W and u ← uniformOfFintype Key
independently.
The real distinguishing experiment on a fixed reading w: sample (r, p) ← Gen(w) and run
D r p.
The ideal distinguishing experiment on a fixed reading w: sample (_, p) ← Gen(w) and an
independent uniform key u, and run D u p.
The real distinguishing game for source W and distinguisher D: sample w ← W and run
realExperiment w D.
The ideal distinguishing game for source W and distinguisher D: sample w ← W and run
idealExperiment w D.
The real game runs D on a sample of realDistribution W.
The ideal game runs D on a sample of idealDistribution W.
The distinguishing advantage δ^D((R, P), (U, P)) of D on source W
([FMR20], Definition 2.2).
Concrete computational security of a fuzzy extractor for a source family sources against
a distinguisher class Admissible with advantage bound ε
([FMR20], Definition 2.2, item 4, p. 6 of the ePrint revision of June 23, 2020).
The caller supplies the distinguisher class, where the source fixes D_{s_sec}, the randomized
circuits of size at most s_sec (p. 5), so this is the source's notion only for an instance that
supplies that class. Distinguishers are probabilistic programs reading the key and the helper, and
the ideal key is uniform on the finite type Key rather than on {0,1}^ℓ.
When the real (R, P) and ideal (U, P) distributions coincide, every distinguisher
(regardless of computational resources) has advantage 0.
Exact equality of real and ideal distributions on every source in sources implies
ComputationallySecureFor with error 0 against any class of distinguishers.
Enlarging the error budget ε, shrinking the source family, or restricting the admissible
distinguishers preserves ComputationallySecureFor.
Asymptotic computational security #
Asymptotic computational security of a family of fuzzy extractors fe κ, indexed by the
security parameter κ, for a set sources of source ensembles and a class Admissible of
distinguisher families ([FMR20], Definition 2.2, item 4, in asymptotic form):
for every ensemble source ∈ sources, the real and ideal games of fe κ on source κ are
indistinguishable to admissible distinguishers. Equivalently, every
admissible D has negligible advantage (fe κ).securityAdvantage (source κ) (D κ)
(computationallySecure_iff). This is the asymptotic form of ComputationallySecureFor, with the
concrete bound ε replaced by negligibility in κ; each construction fixes its distinguisher
class, typically uniform strict PPT on an encoding of the key and helper.
ComputationallySecure states that every admissible distinguisher family has negligible
advantage on every source ensemble.
A negligible concrete bound gives asymptotic security: if at every parameter κ each
fe κ is ε κ-secure (ComputationallySecureFor) for the source source κ against the
κ-th members of the admissible families, and ε is negligible, then the family is
ComputationallySecure.
Secure sketches and the sketch-and-extract construction (Section 2.2) #
A secure sketch (SS, Rec) over M with sketch type Sketch
([FMR20], Definition 2.3).
The public helper value p = (s, x) of the sketch-and-extract construction
([FMR20], Lemma 2.5), pairing a sketch s with an extractor seed x.
- sketch : Sketch
The public sketch
s ← SS(w). - seed : Seed
The public uniform extractor seed
x.
Instances For
The recovery check program on original reading w and noisy reading w': sample
s ← SS(w), sample wHat ← Rec(w', s), and test whether wHat = w.
The recovery correctness experiment on (w, w') as a Boolean Game.
Zero-error recovery correctness up to distance t with respect to dis.
Recovery correctness with error δ up to distance t ([FMR20],
Definition 2.3, item 3).
The sketch-and-extract fuzzy extractor of [FMR20], Lemma 2.5:
Gen(w)sampless ← SS(w)and uniform seedx ← Seed, and outputs(ext w x, ⟨s, x⟩);Rep(w', ⟨s, x⟩)recoverswHat ← Rec(w', s)and outputsext wHat x.
Zero-error correctness of sketchAndExtract ([FMR20], Lemma 2.5):
if ss recovers w without error within distance t, then ss.sketchAndExtract ext
reproduces r = ext w x without error within distance t.
For every pair (w, w'), the reproduction failure probability of ss.sketchAndExtract ext
is at most the recovery failure probability of ss: whenever Rec(w', s) = w,
ext (Rec(w', s)) x = ext w x holds for every seed x.
δ-error correctness of sketchAndExtract ([FMR20], Lemma 2.5):
if ss recovers w with error at most δ within distance t, then ss.sketchAndExtract ext
reproduces r with error at most δ within distance t.
The joint distribution (W, SS(W)) of a source reading and its sketch.
The real average-case extractor distribution (ext(X, U_d), ⟨Y, U_d⟩) on a joint source
(X, Y) : PMF (M × Sketch) ([FMR20], Definition 2.4).
The ideal average-case extractor distribution (U_Key, ⟨Y, U_d⟩) on a joint source
(X, Y) : PMF (M × Sketch) ([FMR20], Definition 2.4).
The real distribution of ss.sketchAndExtract ext on W is the average-case extractor real
law on (W, SS(W)).
The ideal distribution of ss.sketchAndExtract ext on W is the average-case extractor ideal
law on (W, SS(W)).
Security of sketchAndExtract ([FMR20], Lemma 2.5): the fuzzy-extractor
distinguishing advantage of D on source W equals the average-case extractor advantage of D
on the joint distribution (W, SS(W)).