Ajtai's hash function and collision finding #
Ajtai's function ajtaiHash A x = A x mod q on integer vectors is linear, so two distinct inputs
with the same hash differ by a nonzero kernel vector of A. When both inputs lie in [0, β]^m
the difference is a short integer solution with bound β (IsAjtaiCollision.isSolution_sub);
when both lie in [-β, β]^m it is one with bound 2 * β (isSolution_sub_of_abs_le). No
primality assumption on q is needed.
ajtaiCollisionExperiment q β F draws a uniform A ∈ ℤ_q^{n×m}, and the typed finder F wins
when it returns a collision in [0, β]^m. The SIS solver collisionToSIS F returns the
difference of F's pair, and ajtaiAdvantage_le_sisAdvantage bounds the collision-finding
advantage by its SIS advantage for every modulus, dimension, bound and finder.
Ajtai's hash family of [GGH96], Section 3, hashes a string
s ∈ {0,1}^m, here a word of length m, to A s mod q under a uniform key A (ajtaiSetup,
ajtaiWordHash). Their Theorem 2, that the family is collision resistant when SIS is hard, is
SIS.collisionResistantForOn_ajtaiWordHash. For a SIS parameter family P with bound at least
1 and with P.m computable in polynomial time, SIS P gives CollisionResistantForOn for the
family against uniform strict PPT finders. The reduction ajtaiWordCollisionToSIS is
collisionToSIS applied to the finder's words read as 0/1 vectors, and
isPPT_ajtaiWordCollisionToSIS proves it efficient from the finder's certificate. SIS is
assumed; its worst-case hardness ([Ajt96], Theorem 1) is not formalized.
Main definitions #
Cslib.Crypto.ajtaiHash: Ajtai's linear hash function on integer vectors.Cslib.Crypto.IsAjtaiCollision: a collision in[0, β]^m.Cslib.Crypto.ajtaiCollisionExperiment,Cslib.Crypto.ajtaiAdvantage: the typed collision-finding experiment at one instance, and its success probability.Cslib.Crypto.collisionToSIS: the SIS solver built from a typed collision finder.Cslib.Crypto.binaryVec: a word read as a 0/1 integer vector.Cslib.Crypto.ajtaiSetup,Cslib.Crypto.ajtaiWordHash: Ajtai's hash family on words for a SIS parameter family.Cslib.Crypto.ajtaiWordCollisionToSIS: the SIS solver built from a word collision finder.
Main results #
Cslib.Crypto.IsAjtaiCollision.isSolution_sub,Cslib.Crypto.isSolution_sub_of_abs_le: collisions give short integer solutions.Cslib.Crypto.ajtaiAdvantage_le_sisAdvantage,Cslib.Crypto.succProbability_collisionGameFor_ajtaiWordHash_le: at one instance, the collision-finding success is at most the SIS advantage of the reduction.Cslib.Crypto.isPPT_ajtaiWordCollisionToSIS: the reduction is a PPT SIS solver.Cslib.Crypto.SIS.collisionResistantForOn_ajtaiWordHash: Ajtai's hash family is collision resistant under SIS ([GGH96], Theorem 2).
References #
Distinct inputs in [-β, β]^m with the same Ajtai hash differ by a short integer solution
with bound 2 * β.
A collision in [0, β]^m differs by a short integer solution with bound β.
The Ajtai collision-finding experiment for modulus q, dimensions n × m and box
[0, β]^m: the challenger draws a uniform A ∈ ℤ_q^{n×m}; the finder wins when it returns a
collision of ajtaiHash A in the box.
Every typed collision finder's advantage is at most the SIS advantage of collisionToSIS, for
every nonzero modulus, dimension and bound. This is the concrete step of
[GGH96], Theorem 2, for inputs in [0, β]^m instead of {0,1}^m: the
difference of a collision in [0, β]^m is a SIS solution with bound β.
Ajtai's hash family on words #
Ajtai's hash family on words ([GGH96], Section 3, p. 4). The key d
is a SIS input ⟨κ, A⟩, and the word s hashes to A s mod q, where s is read as a 0/1
vector of length m = P.m κ (binaryVec). On the words of length m, the source's message space
{0,1}^m, this is the source's h_A(s) = A s mod q.
The SIS solver built from a collision finder for ajtaiWordHash. It gives the finder κ and
the key ⟨κ, A⟩, reads both returned words as 0/1 vectors, and returns their difference
(collisionToSIS). This is the reduction in the proof of [GGH96],
Theorem 2 (p. 5).
At one security parameter κ with P.β κ ≥ 1, a collision finder's success probability
against ajtaiWordHash on the words of length P.m κ is at most the SIS advantage of
ajtaiWordCollisionToSIS. This is the concrete step of [GGH96],
Theorem 2; it goes through the typed bound ajtaiAdvantage_le_sisAdvantage.
ajtaiWordCollisionToSIS is a PPT SIS solver when the collision finder is uniform strict PPT
and P.m is computable in polynomial time.
Ajtai's hash family is collision resistant under SIS ([GGH96],
Theorem 2, p. 4). Let P be a SIS parameter family whose column count P.m is computable in
polynomial time and whose bound P.β is at least 1. If SIS P holds, then no uniform strict PPT
finder that is given κ and the key ⟨κ, A⟩, for a uniform A ∈ ℤ_q^{n×m}, finds two distinct
words of length m with the same hash A s mod q, except with negligible probability. This is
collision resistance in the standard model, CollisionResistantForOn ([BS23],
Definition 8.2 and Attack Game 8.1), with digests typed in ℤ_q^n.
The proof applies SIS P to ajtaiWordCollisionToSIS, which returns the difference
s₁ - s₂ ∈ {-1, 0, 1}^m of the colliding words as in the source's proof, through its
certificate isPPT_ajtaiWordCollisionToSIS.
This statement differs from the source in these ways.
- The source takes
nas the security parameter and requiresn log q < m ≤ q / (2 n⁴)andq = O(n^c)(Section 2.2, p. 3). Here the security parameter isκ, andPis any family withP.mcomputable in polynomial time andP.β ≥ 1. The reduction uses no relation between the parameters. The source needs them for its Theorem 1, which reduces worst-case lattice problems to Problem (A2), and for compression (Section 3.1, p. 5); this theorem claims neither. - The assumption is
SIS P, withℓ_∞boundP.β κ. AtP.β = 1it is the source's Problem (A2) (Section 2.3, p. 4), whose solutions are the nonzerox ∈ {-1, 0, 1}^mwithMx ≡ 0(mod q). A larger bound makes the assumption stronger. With bound0,SIS Pholds vacuously, which is whyP.β ≥ 1is required. - Theorem 2 is stated for (expected) running time
T(n, m, q). Here finders and SIS solvers are uniform strict PPT, and the conclusion is negligible success. - The key law
ajtaiSetup Pis a distribution. Its efficient sampling and the cost of evaluating the hash, which Definition 8.2 also asks for, are not certified here. P.mmust be computable in polynomial time so that the reduction can write an answer of lengthmwhen the finder's words have the wrong length.