IT-MACs over ZMod n: root bounds and statistical binding #
Over a field, a forged IT-MAC opening passes for at most one global key (Basic.lean). Hazay
and Yang [HY24] run IT-MACs over the ring ZMod (N ^ ζ) of Damgård–Jurik plaintexts,
where N = p * q. There a nonzero linear or quadratic polynomial can have many roots, and binding
holds only up to the smallest prime factor of the modulus.
Degrees one and two of the root bound ZMod.card_filter_eval_eq_zero_le give the IT-MAC binding
lemma and the quadratic root bound of [HY24], §5.1 (Lemmas 3 and 4 of the ePrint
version), for every modulus n: the errors are 1 / n.minFac and 2 * (n / n.minFac) roots.
Both bounds are attained for every n > 1. For the Damgård–Jurik modulus (p * q) ^ ζ with primes
p < q they take the paper's form 1 / p and 2 * p ^ (ζ - 1) * q ^ ζ.
Main definitions #
Cslib.Crypto.Protocols.VOLE.ringMacGap: the residuen / n.minFacinZMod n, a nonzero value difference that attains both bounds.
Main results #
Cslib.Crypto.Protocols.VOLE.card_filter_mac_eq_le,Cslib.Crypto.Protocols.VOLE.toOuterMeasure_voleVerifyOpening_le_minFac: a forged openingx' ≠ xpasses for at mostn / n.minFackeys, so with probability at most1 / n.minFacunder a uniform key.Cslib.Crypto.Protocols.VOLE.card_filter_quadratic_eq_zero_le: a quadratic with nonzero leading coefficient has at most2 * (n / n.minFac)roots.Cslib.Crypto.Protocols.VOLE.card_filter_mac_ringMacGap,Cslib.Crypto.Protocols.VOLE.card_filter_quadratic_ringMacGap: both bounds are attained.Cslib.Crypto.Protocols.VOLE.toOuterMeasure_voleVerifyOpening_le_inv_prime,Cslib.Crypto.Protocols.VOLE.card_filter_quadratic_eq_zero_le_mul_pow: Lemmas 3 and 4 in the paper's form forZMod ((p * q) ^ ζ).
References #
IT-MAC binding over ZMod n, counting form ([HY24], §5.1, Lemma 3). If the
honest IT-MAC relation is x * Δ + m and a forger opens a different value x' ≠ x with any
tag m', at most n / n.minFac global keys Δ accept the forgery.
IT-MAC binding over ZMod n ([HY24], §5.1, Lemma 3). For opened value vectors
x' ≠ x, a forged opening passes verification under a uniform global key with probability at
most 1 / n.minFac. For the Damgård–Jurik modulus (p * q) ^ ζ this is 1 / p
(toOuterMeasure_voleVerifyOpening_le_inv_prime). This is the ring counterpart of
toOuterMeasure_voleVerifyOpening_le.
Quadratic root bound #
Sharpness #
The residue n / n.minFac in ZMod n. It is nonzero for n > 1
(ringMacGap_ne_zero), and a nonzero value gap of this size attains both bounds above.
ringMacGap n * y = 0 exactly when y vanishes modulo the smallest prime factor of n.
For n > 1, ringMacGap n is nonzero.
Lemma 4 is sharp. For n > 1, the quadratic g * χ ^ 2 - g * χ with
g = ringMacGap n ≠ 0 has exactly 2 * (n / n.minFac) roots: the residues that are 0 or 1
modulo n.minFac.
Damgård–Jurik moduli #
IT-MAC binding for Damgård–Jurik moduli ([HY24], §5.1, Lemma 3, in the paper's
form). Over ZMod ((p * q) ^ ζ) with primes p < q, a forged opening x' ≠ x passes under a
uniform key with probability at most 1 / p.
Quadratic root bound for Damgård–Jurik moduli ([HY24], §5.1, Lemma 4, in the
paper's form). Over ZMod ((p * q) ^ ζ) with primes p < q, a quadratic with nonzero leading
coefficient has at most 2 * p ^ (ζ - 1) * q ^ ζ roots.