Arithmetic Beaver Multiplication Triples, Online Privacy, and Tampered-Opening Attack #
This module formalizes Beaver's circuit-randomization multiplication step over ZMod p together
with its semi-honest coalition privacy in the ideal triple-preprocessing hybrid model and an
explicit illustration of additive-error output-opening tampering against unauthenticated 2-party
Beaver multiplication:
- Beaver Triple Share Structure (
TripleShare): per-party additive shares(a_i, b_i, c_i)of a multiplication triple overR. Input share pairs(x_i, y_i)and broadcast masked openings(d_i, e_i) = (x_i - a_i, y_i - b_i)are represented directly asR × Rusing Mathlib's coordinatewiseAddCommGroupstructure. - Ideal $m$-Party Triple Preprocessing (
beaverTripleFunctionality,beaverTripleSpec,beaverTripleWorld): an $m$-party generalization of the 2-party dealer ("2.5-party") functionality in [BS23], Section 23.2.2 (building on circuit randomization via multiplication triples from [Bea92] and the $m$-party additive-share online model of [DPSZ12]). It samples uniform additive shares(a_i, b_i, c_i)overZMod pconditioned on $\sum_i c_i = (\sum_i a_i) \cdot (\sum_i b_i)$, reusingProbComp.sampleAdditiveSharesfromCslibFrontier.Languages.Probabilistic.Sharing. For every proper coalitionI ≠ Finset.univ, the marginal distribution ofI's triple shares is uniform (eval_restrict_beaverTripleFunctionality). - Beaver Online Share Multiplication (
beaverMulShare,beaverMulProtocol,beaverMulSim,perfectSemiHonestPrivateProper_beaverMul): synchronous $m$-party protocol overCslibFrontier.Crypto.Protocols.MPC.BasicandCslibFrontier.Crypto.Protocols.MPC.Broadcastin which the parties querybeaverTripleSpec p m, broadcast their masked openingslocalMaskedOpening, and output additive shares summing to $(\sum_i x_i) \cdot (\sum_i y_i)$ (sum_output_beaverMulProtocol). We provePerfectSemiHonestPrivateProperagainst every proper static coalitionI ≠ Finset.univwith respect tosharedMulFunctionality m(exact equality of joint view-and-output distributions, with no polynomial-time simulator certificate). - Additive-Error Tampered-Opening Attack Illustration (
tamperedOpening,tamperedOpeningExtract,tamperedOpeningReal,eval_tamperedOpeningReal,le_advantage_tamperedOpeningBitGame): motivated by the discussion of maliciously tampered openings in [BS23], Section 23.2.4, we give an original concrete 2-party illustration showing what goes wrong if unauthenticated Beaver multiplication of[z] = [x] * [0]is followed by an unauthenticated output-share opening. Notice thatbeaverMulProtocolitself only produces output shares and has no output-broadcast round; if honest party0subsequently reveals its output sharez'₀ = beaverMulShare 0 (op₀ + tamperedOpening t₁) t₀after party1substitutese'₁ = -b₁ + 1in the masked-opening broadcast, the tampered transcript(t₁, op₀, z'₀)determinesxidentically (tamperedOpeningExtract_eq). The standaloneProbComp (ZMod p)experimenttamperedOpeningRealand the toy distinguishing gamestamperedOpeningTestOne,tamperedOpeningRealBitGame, andtamperedOpeningIdealBitGamepackage this exact recovery against any input-independent guessing distributionblindGuess : ProbComp (ZMod p).
Main definitions #
Cslib.Crypto.Protocols.MPC.Beaver.TripleShare: named structure for one party's additive shares(a, b, c)of a Beaver multiplication triple.Cslib.Crypto.Protocols.MPC.Beaver.beaverTripleFunctionality,Cslib.Crypto.Protocols.MPC.Beaver.beaverTripleSpec,Cslib.Crypto.Protocols.MPC.Beaver.beaverTripleWorld: $m$-party Beaver triple preprocessing functionality, oracle specification, and memoryless world.Cslib.Crypto.Protocols.MPC.Beaver.localMaskedOpening,Cslib.Crypto.Protocols.MPC.Beaver.beaverMulShare: local masked opening(x_i - a_i, y_i - b_i)and Beaver share multiplication step.Cslib.Crypto.Protocols.MPC.Beaver.beaverMulSchedule,Cslib.Crypto.Protocols.MPC.Beaver.beaverMulProtocol,Cslib.Crypto.Protocols.MPC.Beaver.beaverMulSim: synchronous $m$-party Beaver online multiplication protocol and proper-coalition simulator.Cslib.Crypto.Protocols.MPC.Beaver.tamperedOpening,Cslib.Crypto.Protocols.MPC.Beaver.tamperedOpeningExtract,Cslib.Crypto.Protocols.MPC.Beaver.tamperedOpeningReal,Cslib.Crypto.Protocols.MPC.Beaver.tamperedOpeningTestOne,Cslib.Crypto.Protocols.MPC.Beaver.tamperedOpeningRealBitGame,Cslib.Crypto.Protocols.MPC.Beaver.tamperedOpeningIdealBitGame: 2-party additive-error tampered-opening formula, standalone extraction experiment, and toy distinguishing games.
Main results #
Cslib.Crypto.Protocols.MPC.Beaver.mem_support_beaverTripleFunctionality_iff,Cslib.Crypto.Protocols.MPC.Beaver.eval_restrict_beaverTripleFunctionality: support characterization and proper-coalition marginal uniformity ofbeaverTripleFunctionality.Cslib.Crypto.Protocols.MPC.Beaver.sum_beaverMulShare,Cslib.Crypto.Protocols.MPC.Beaver.sum_beaverMulShare_eq_mul: algebraic reconstruction of the product from Beaver output shares.Cslib.Crypto.Protocols.MPC.Beaver.sum_output_beaverMulProtocol,Cslib.Crypto.Protocols.MPC.Beaver.perfectSemiHonestPrivateProper_beaverMul: output correctness and proper-coalition perfect semi-honest privacy ofbeaverMulProtocolinbeaverTripleWorldforsharedMulFunctionality m.Cslib.Crypto.Protocols.MPC.Beaver.tamperedOpeningExtract_eq,Cslib.Crypto.Protocols.MPC.Beaver.eval_tamperedOpeningReal,Cslib.Crypto.Protocols.MPC.Beaver.one_le_add_advantage_tamperedOpening,Cslib.Crypto.Protocols.MPC.Beaver.le_advantage_tamperedOpeningBitGame: deterministic recovery ofxwhen the output share is opened after an additive-error tampered opening, and≥ 1 / 2distinguishing advantage in the standalone hidden-bit game against any input-independent guess.
References #
Beaver triple share structure #
Ideal $m$-party Beaver triple preprocessing #
Randomized m-party Beaver triple preprocessing functionality over ZMod p (an m-party
generalization of the 2-party dealer in [BS23], Section 23.2.2; cf. [Bea92];
[DPSZ12]): samples independent uniform additive share vectors
a, b : Fin m → ZMod p and uniform additive shares c summing to (∑ i, a i) * (∑ i, b i).
m-ary oracle specification for Beaver triple preprocessing over ZMod p.
Ideal memoryless world for beaverTripleSpec p m backed by beaverTripleFunctionality p m.
Support characterization for beaverTripleFunctionality: an m-tuple of triple shares lies in
the support if and only if ∑ i, (t i).c = (∑ i, (t i).a) * (∑ i, (t i).b).
Every triple in the support of beaverTripleFunctionality satisfies the Beaver product
relation ∑ i, (t i).c = (∑ i, (t i).a) * (∑ i, (t i).b).
For every proper coalition I ≠ Finset.univ, the marginal distribution of I's triple shares
in beaverTripleFunctionality is uniform on (i : I) → TripleShare (ZMod p).
Beaver share multiplication step and algebraic reconstruction #
Party i's local masked opening share (x_i - a_i, y_i - b_i).
Synchronous $m$-party Beaver online multiplication protocol and privacy #
Schedule for beaverMulProtocol p m: one joint beaverTripleSpec p m preprocessing call
followed by an all-to-all broadcast of ZMod p × ZMod p.
Synchronous m-party Beaver online multiplication protocol in the beaverTripleSpec p m-hybrid
model (generalizing [BS23], Section 23.2.2 to m parties;
[DPSZ12]; cf. [Bea92]):
- All
mparties invokebeaverTripleSpec p mto receive triple sharest_i = (a_i, b_i, c_i). - Each party
ibroadcastslocalMaskedOpening xy_i t_i = (x_i - a_i, y_i - b_i). - Each party
isums the received openingsop = ∑ j, msgs jand outputsbeaverMulShare i op t_i.
Output correctness of beaverMulProtocol (m > 0): on every execution in the support of
beaverTripleWorld p m, the parties' outputs sum to (∑ i, (xy i).1) * (∑ i, (xy i).2).
Proper-coalition simulator for beaverMulProtocol p m (generalizing [BS23],
Section 23.2.2 to m parties; cf. [Bea92]): samples independent uniform masks
aI, bI for corrupted parties i ∈ I and independent uniform masked openings msgsCompl for
honest parties j ∈ Iᶜ, computes the public sum op = ∑ j, msgs j, and sets each corrupted
party's c_i share so that beaverMulShare i op t_i = zI i.
Perfect semi-honest privacy of beaverMulProtocol p m in beaverTripleWorld p m against every
proper static coalition I ≠ Finset.univ (I.card < m), realizing sharedMulFunctionality m
over ZMod p (generalizing [BS23], Section 23.2.2 to m parties; cf. [Bea92]).
Additive-error tampered-opening attack illustration on unauthenticated 2-party Beaver #
multiplication
Malicious party 1's tampered masked opening in 2-party Beaver multiplication of [x] * [0]
(motivated by [BS23], Section 23.2.4): holding input (0, 0) and triple share t₁,
party 1 adds an additive error 1 to its second opening coordinate -t₁.b.
Malicious party 1's deterministic extraction formula recovering party 0's secret input x
from party 0's masked opening op₀ and opened Beaver output share z'₀ (assuming the output
share z'₀ is subsequently revealed).
Algebraic identity behind the additive-error tampered-opening attack (original 2-party
illustration of output-opening tampering, motivated by [BS23], Section 23.2.4): for every
valid 2-party Beaver triple t (c₀ + c₁ = (a₀ + a₁) * (b₀ + b₁)), if honest party 0's output
share z'₀ is opened after party 1 broadcasts tamperedOpening (t 1), then
tamperedOpeningExtract recovers honest party 0's private input x identically.
Standalone 2-party tampered-opening experiment on [z] = [x] * [0] over ZMod p (assuming
an unauthenticated output-share opening z'₀): samples a fresh triple from
beaverTripleFunctionality p 2, computes honest party 0's masked opening op₀ and opened
output share z'₀ on (x, 0) against tamperedOpening (t 1), and outputs party 1's extracted
value.
Exact secret recovery: tamperedOpeningReal p x outputs x with probability 1.
Original standalone Game illustration: for 2 ≤ p and any x-independent guessing
program blindGuess : ProbComp (ZMod p), the sum of distinguishing advantages of
tamperedOpeningTestOne between tamperedOpeningReal p 0 / tamperedOpeningReal p 1 and
blindGuess is at least 1.
Standalone hidden-bit game for tamperedOpeningReal: samples a uniform secret bit b for
party 0's input x ∈ {0, 1}, runs tamperedOpeningReal p x, and tests whether the extracted
value equals x.
Original standalone Game illustration: for every modulus p ≥ 2 and every
input-independent guessing program blindGuess : ProbComp (ZMod p), tamperedOpeningRealBitGame p
achieves distinguishing advantage at least 1 / 2 over tamperedOpeningIdealBitGame p blindGuess.