Documentation

CslibFrontier.Crypto.Protocols.VOLE.MulCheck

Soundness of the VOLE multiplication check #

For authenticated values x, y, z, the receiver checks that w_x * w_y - w_z * delta = a * delta + b. The sender may choose arbitrary coefficients a, b, rather than the honest voleMulCrossTerm and voleMulConstTerm. If x * y ≠ z, the check is a nonzero quadratic in the secret key delta, hence accepts at at most two keys.

Main results #

These are original root-count consequences of voleMulCheck_sub_eq, not security of an entire VOLE-based ZK protocol. There is no efficiency claim. In particular, the sender cannot choose its coefficients after seeing the receiver's key or tags. Over a field with two elements the bound is one, and false claims can indeed pass at every key.

theorem Cslib.Crypto.Protocols.VOLE.card_filter_voleMulCheck_le_two {F : Type u} [Field F] [Fintype F] [DecidableEq F] {x y z : F} (v_x v_y v_z a b : F) (hfalse : x * y ≠ z) :
{delta : F | (x * delta + v_x) * (y * delta + v_y) - (z * delta + v_z) * delta = a * delta + b}.card ≤ 2

A false multiplication check with arbitrary fixed affine coefficients accepts at at most two secret keys. Values, masks and coefficients are all fixed before varying the key.

theorem Cslib.Crypto.Protocols.VOLE.toOuterMeasure_voleMulCheck_le {F : Type u} [Field F] [Fintype F] {x y z : F} (v_x v_y v_z a b : F) (hfalse : x * y ≠ z) :
(Probability.PMF.uniformOfFintype F).toOuterMeasure {delta : F | (x * delta + v_x) * (y * delta + v_y) - (z * delta + v_z) * delta = a * delta + b} ≤ 2 / ↑(Fintype.card F)

A false multiplication with arbitrary fixed affine coefficients passes the check under a uniform secret key with probability at most 2 / |F|.

theorem Cslib.Crypto.Protocols.VOLE.toOuterMeasure_voleMulCheck_bind_le {F : Type u} [Field F] [Fintype F] {S : Type u} (sender : PMF S) (x y z v_x v_y v_z a b : S → F) :
(do let s ← sender let delta ← Probability.PMF.uniformOfFintype F pure (s, delta)).toOuterMeasure {r : S × F | x r.1 * y r.1 ≠ z r.1 ∧ (x r.1 * r.2 + v_x r.1) * (y r.1 * r.2 + v_y r.1) - (z r.1 * r.2 + v_z r.1) * r.2 = a r.1 * r.2 + b r.1} ≤ 2 / ↑(Fintype.card F)

Soundness for an arbitrary randomized sender. Its state s determines the values, masks, and claimed affine coefficients before an independent uniform key is sampled. The bad event includes the failed multiplication constraint, so no assumption on the sender's support is needed. This experiment gives the sender no receiver key or tags before fixing its claim.