The masked multiplication check over ZMod n #
Hazay and Yang [HY24], §5.1, Equation (1), check a multiplication z = x * y of
IT-MAC-authenticated values over ZMod (N ^ ζ) with one extra authenticated random value r.
With keys k_w = w * Δ + m_w, the prover sends the masked coefficients
c₁ = x * m_y + y * m_x - m_z + r and c₀ = m_x * m_y + m_r,
and the verifier accepts when k_r + k_x * k_y - k_z * Δ = c₁ * Δ + c₀. This file proves the
three properties of this check:
- completeness for every commutative ring (
ringMulCheck_complete); - exact simulation of the verifier's view
(k_r, c₁, c₀)for every finite commutative ring and every key: the mask(r, m_r)makes(k_r, c₁)uniform, andc₀is then determined by the verification equation (ringMulCheckView_eq_simulate); - soundness over
ZMod n: ifx * y ≠ z, the acceptance condition is a quadratic inΔwith leading coefficientx * y - z ≠ 0, so it holds with probability at most2 / n.minFacunder a uniform key (toOuterMeasure_ringMulCheck_le,toOuterMeasure_ringMulCheck_bind_le). For the Damgård–Jurik modulus(p * q) ^ ζwith primesp < qthis is2 / p(Nat.minFac_mul_pow).
The coefficients reuse voleMulCrossTerm and voleMulConstTerm from Basic.lean; their
soundness counterpart in MulCheck.lean needs a field. The results concern a single check with
a key the prover never sees; they do not establish security of the protocols of [HY24].
Main definitions #
Cslib.Crypto.Protocols.VOLE.ringMulCheckReply: the honest masked coefficients(c₁, c₀).Cslib.Crypto.Protocols.VOLE.RingMulCheckAccepts: the verifier's equation.Cslib.Crypto.Protocols.VOLE.ringMulCheckView,Cslib.Crypto.Protocols.VOLE.ringMulCheckSimulate: the honest view and its simulator.
Main results #
Cslib.Crypto.Protocols.VOLE.ringMulCheck_completeCslib.Crypto.Protocols.VOLE.ringMulCheckView_eq_simulateCslib.Crypto.Protocols.VOLE.card_filter_ringMulCheck_le,Cslib.Crypto.Protocols.VOLE.toOuterMeasure_ringMulCheck_le,Cslib.Crypto.Protocols.VOLE.toOuterMeasure_ringMulCheck_bind_le
References #
The honest masked coefficients (c₁, c₀) of [HY24], §5.1, Equation (1), for
authenticated values x, y, z with MAC masks m_x, m_y, m_z and an extra authenticated
random value r with mask m_r.
Completeness. If x * y = z, the honest coefficients pass the check under every key.
The simulated view always satisfies the verifier's equation.
Exact simulation of the verifier's view. If x * y = z, then under a uniform mask
(r, m_r) the honest view (k_r, c₁, c₀) has the simulator's distribution, which uses only the
keys and Δ. This holds for every key Δ and every finite commutative ring.
Soundness, counting form. If x * y ≠ z, then for any fixed masks and any fixed
coefficients reply, at most 2 * (n / n.minFac) keys Δ ∈ ZMod n accept.
Soundness. If x * y ≠ z, then for any fixed masks and coefficients the check accepts
under a uniform key with probability at most 2 / n.minFac.
Soundness against a randomized prover. The prover's state s, drawn before the
independent uniform key, determines the values, masks and coefficients. The bad event includes
the false multiplication, so no assumption on the prover's distribution is needed. The prover
sees neither the key nor the verifier's keys before committing to its coefficients.