Auxiliary-Input and Infinitely-Often Cryptographic Primitives #
This module defines auxiliary-input cryptographic primitives (AuxInputFamily, IsAIOWF,
IsDistAIOWF, IsAIPRG, ExistsAIPRG, AuxInputPRFFamily, IsAIPRF) and infinitely-often
cryptographic primitives (IsIoOWF, IsIoPRG, IsIoPRF), built directly on CslibFrontier's
ComputableInPolyTime, IsPPTOn, IsOraclePPTOn, Game, and CloseTo infrastructure.
Quantifier convention and provenance #
All eight hardness/security predicates in this module are novel to this library in their exact
quantifier order: inspired by the auxiliary-input and infinitely-often primitives of
Ostrovsky–Wigderson (1993) and Vadhan (2006), they use the adversary-dependent quantifier order
∀ d A N, ∃ z (for auxiliary-input primitives, and ∃ c, ∀ A N, ∃ z for IsDistAIOWF) and
∀ d A N, ∃ n (for infinitely-often primitives), rather than fixing a single adversary-independent
infinite index set I ⊆ {0, 1}^* or I ⊆ ℕ before quantifying over adversaries. For
IsDistAIOWF in particular, equivalence with an adversary-independent infinite index set is
non-obvious because distributional inversion cannot be efficiently verified to combine arbitrary
adversaries.
Main definitions #
Cslib.Crypto.AuxInputFamily: polynomial-time auxiliary-input function family with polynomial-time input/output length maps.Cslib.Crypto.IsAIOWF: auxiliary-input one-way function.Cslib.Crypto.IsDistAIOWF: distributional auxiliary-input one-way function.Cslib.Crypto.IsAIPRG,Cslib.Crypto.ExistsAIPRG: auxiliary-input PRG and polynomial-stretch existence predicate.Cslib.Crypto.AuxInputPRFFamily,Cslib.Crypto.IsAIPRF: auxiliary-input pseudorandom function family.Cslib.Crypto.IsIoOWF,Cslib.Crypto.IsIoPRG,Cslib.Crypto.IsIoPRF: infinitely-often one-way function, PRG, and PRF.
Main results #
Cslib.Crypto.IsAIOWF.isDistAIOWF: AIOWF implies distributional AIOWF.Cslib.Crypto.IsAIPRG.isAIOWF_of_sq_ltandCslib.Crypto.ExistsAIPRG.exists_aiOWF: polynomial-stretch auxiliary-input PRGs yield auxiliary-input one-way functions (combining inversion with bounded brute-force seed enumeration).Cslib.Crypto.OneWay.isIoOWF,Cslib.Crypto.PseudorandomGenerator.isIoPRG: standard uniform primitives are infinitely-often secure.Cslib.Crypto.IsIoOWF.exists_aiOWF,Cslib.Crypto.IsIoPRG.exists_aiPRG,Cslib.Crypto.IsIoPRF.exists_aiPRF: infinitely-often uniform primitives yield auxiliary-input primitives.
A polynomial-time computable auxiliary-input function family
f = {f_z : {0,1}^{inputLen |z|} → {0,1}^{outputLen |z|}}. Both length maps are computable in
polynomial time from unary |z|, ruling out superpolynomial length loopholes.
Input bit-length as a function of auxiliary-input length
|z|.Output bit-length as a function of auxiliary-input length
|z|.Family evaluation
f_z(x).- polyTime_inputLen : Turing.MultiTapeTM.ComputableInPolyTime self.inputLen Turing.MultiTapeTM.encUnary Turing.MultiTapeTM.encUnary
inputLenis computable in polynomial time in unary. - polyTime_outputLen : Turing.MultiTapeTM.ComputableInPolyTime self.outputLen Turing.MultiTapeTM.encUnary Turing.MultiTapeTM.encUnary
outputLenis computable in polynomial time in unary. - polyTime_eval : Turing.MultiTapeTM.ComputableInPolyTime (fun (p : List Bool × List Bool) => self.eval p.1 p.2) (Turing.MultiTapeTM.encPair Turing.MultiTapeTM.encBits Turing.MultiTapeTM.encBits) Turing.MultiTapeTM.encBits
evalis jointly computable in polynomial time on(z, x). - length_eq (z x : List Bool) : x.length = self.inputLen z.length → (self.eval z x).length = self.outputLen z.length
Exact output length on inputs of length
inputLen |z|.
Inversion game for an auxiliary-input family f against adversary A on auxiliary string z.
The adversary wins when it outputs a preimage x' of exact length f.inputLen z.length.
Auxiliary-input one-way function (AIOWF): for every inverse polynomial (|z| + 1)^{-d} and
every uniform PPT inverter A, there exist arbitrarily long auxiliary strings z on which A
inverts f_z with probability strictly less than (|z| + 1)^{-d}.
This definition is novel to this library: inspired by the auxiliary-input one-way functions of
Ostrovsky–Wigderson (1993) and Vadhan (2006), it uses the adversary-dependent quantifier order
∀ d A N, ∃ z (where z may depend on d, A, and N) rather than a single
adversary-independent infinite index set I ⊆ {0, 1}^*. It is implied by IsIoOWF (with an
exact output-length schedule) via IsIoOWF.exists_aiOWF, hence by standard OneWay functions
(OneWay.isIoOWF), and implies IsDistAIOWF (IsAIOWF.isDistAIOWF).
Distributional auxiliary-input one-way function (distAIOWF): there exists an inverse polynomial
(|z| + 1)^{-c} such that for every uniform PPT A, there exist arbitrarily long auxiliary
strings z on which (A(z, f_z(x)), f_z(x)) and (x, f_z(x)) have total variation distance
strictly exceeding (|z| + 1)^{-c}.
This definition is novel to this library: inspired by Ostrovsky–Wigderson (1993) and Vadhan (2006),
it uses the adversary-dependent quantifier order ∃ c, ∀ A N, ∃ z rather than an
adversary-independent infinite index set I ⊆ {0, 1}^*. Note that equivalence with an
adversary-independent infinite index set is non-obvious for distributional one-wayness because
distributional inversion cannot be efficiently verified to combine arbitrary adversaries. It is
implied by IsAIOWF (IsAIOWF.isDistAIOWF), hence by standard OneWay functions.
Auxiliary-input pseudorandom generator (AIPRG): strictly stretches its seed and fools every
uniform PPT distinguisher up to every inverse polynomial on arbitrarily long z.
This definition is novel to this library: inspired by auxiliary-input PRGs in Ostrovsky–Wigderson
(1993) and Vadhan (2006), it uses the adversary-dependent quantifier order ∀ d A N, ∃ z rather
than a single adversary-independent infinite index set I ⊆ {0, 1}^*. It is implied by IsIoPRG
(IsIoPRG.exists_aiPRG), hence by standard PseudorandomGenerator
(PseudorandomGenerator.isIoPRG), and quadratic stretch implies IsAIOWF
(IsAIPRG.isAIOWF_of_sq_lt).
Existence of polynomial-stretch auxiliary-input PRGs: for every polynomial stretch degree d,
there exists an IsAIPRG G with (G.inputLen k) ^ d < G.outputLen k for all k.
This definition is novel to this library: it packages polynomial-stretch existence for the
adversary-dependent IsAIPRG notion above. It implies the existence of an IsAIOWF
(ExistsAIPRG.exists_aiOWF), and is plausible whenever standard polynomial-stretch PRGs exist.
A polynomial-time computable auxiliary-input PRF family
F = {F_z : {0,1}^{n(|z|)} × {0,1}^{n(|z|)} → Bool}.
Key and query length as a function of
|z|.Keyed Boolean evaluation
F_z(u, x).- polyTime_inputLen : Turing.MultiTapeTM.ComputableInPolyTime self.inputLen Turing.MultiTapeTM.encUnary Turing.MultiTapeTM.encUnary
inputLenis computable in polynomial time in unary. - polyTime_eval : Turing.MultiTapeTM.ComputableInPolyTime (fun (p : List Bool × List Bool × List Bool) => self.eval p.1 p.2.1 p.2.2) (Turing.MultiTapeTM.encPair Turing.MultiTapeTM.encBits (Turing.MultiTapeTM.encPair Turing.MultiTapeTM.encBits Turing.MultiTapeTM.encBits)) Turing.MultiTapeTM.encBool
evalis jointly computable in polynomial time on(z, (u, x)).
Real oracle game for an auxiliary-input PRF family F against oracle adversary A.
Ideal random-function oracle game for an auxiliary-input PRF family F.
Auxiliary-input pseudorandom function (AIPRF): for every inverse polynomial and every uniform
oracle PPT distinguisher A, there exist arbitrarily long z where A distinguishes
F_z(u, ·) from a uniform random function with advantage strictly below (|z| + 1)^{-d}.
This definition is novel to this library: inspired by auxiliary-input primitives in
Ostrovsky–Wigderson (1993) and Vadhan (2006), it uses the adversary-dependent quantifier order
∀ d A N, ∃ z rather than a single adversary-independent infinite index set I ⊆ {0, 1}^*. It
is implied by IsIoPRF (IsIoPRF.exists_aiPRF), and is plausible whenever standard uniform
PRFs exist.
Infinitely-often one-way function (ioOWF): polynomial-time computable function f such that
every uniform PPT inverter fails (below (n + 1)^{-d}) on arbitrarily large input lengths n
when restricted to length-n preimages.
This definition is novel to this library: it uses the adversary-dependent quantifier order
∀ d A N, ∃ n (where n may depend on d, A, and N) rather than a single
adversary-independent infinite set of input lengths I ⊆ ℕ. It is strictly weaker than OneWay
(OneWay.isIoOWF) and yields an IsAIOWF when equipped with an exact output-length schedule
(IsIoOWF.exists_aiOWF).
Infinitely-often pseudorandom generator (ioPRG): polynomial-time length-stretching generator
fooling every uniform PPT distinguisher on arbitrarily large seed lengths n.
This definition is novel to this library: it uses the adversary-dependent quantifier order
∀ d A N, ∃ n rather than a single adversary-independent infinite set of seed lengths I ⊆ ℕ.
It is strictly weaker than PseudorandomGenerator (PseudorandomGenerator.isIoPRG) and yields an
IsAIPRG (IsIoPRG.exists_aiPRG).
Infinitely-often pseudorandom function (ioPRF): polynomial-time keyed Boolean family f(u, x)
fooling every uniform oracle PPT distinguisher on arbitrarily large key lengths n.
This definition is novel to this library: it uses the adversary-dependent quantifier order
∀ d A N, ∃ n rather than a single adversary-independent infinite set of key lengths I ⊆ ℕ.
It is weaker than standard uniform Boolean-output PRF security and yields an IsAIPRF
(IsIoPRF.exists_aiPRF).
Every auxiliary-input one-way function is distributionally one-way.
Existence of polynomial-stretch auxiliary-input PRGs implies the existence of an auxiliary-input one-way function.
Every standard uniform pseudorandom generator is infinitely-often pseudorandom.
Every infinitely-often one-way function with an exact output-length schedule yields an
auxiliary-input one-way function (by ignoring the auxiliary string z except for its length).
Every infinitely-often pseudorandom function yields an auxiliary-input pseudorandom function
(by ignoring the auxiliary string z except for its length).