SPDZ Authenticated Secret Sharing, Online Operations, and Batch MACCheck Soundness #
This module formalizes the SPDZ authenticated secret-sharing representation and its linear and
Beaver-triple online operations ([DPSZ12]), together with the
commit-then-open batch MACCheck protocol and the $2 / p$ bound for its standalone
cheating-equation game over prime fields ZMod p
([DKL+13]).
Source map #
Locators refer to the IACR ePrint full versions: [DPSZ12] is ePrint 2011/535 (revision of 2012-11-05) and [DKL+13] is ePrint 2012/642 (revision of 2013-08-20). LNCS page and figure numbers are not verified.
- DPSZ12, §2 "Representation of values and MACs" and "Computations"; online phase Fig. 1: the
authenticated representation with public modifier $\delta$ (
AuthShare,AuthShare.Valid), constant addition (AuthShare.addConst), and Beaver multiplication (AuthShare.mulOnline). DPSZ12 works over $\mathbb{F}_{p^k}$; this module works overZMod ponly. - DKLPSS13, §2: the representation without $\delta$ (dropped from the MAC definition there).
- DKLPSS13, App. D.1, Fig. 10:
MACCheck.checkResidualandverifyResidualsadapt its check $\sigma_i = \gamma_i - \alpha_i \cdot a$ to DPSZ12's $\delta$-representation; at $\delta = 0$ they are the source check.macCheckProtocolmodels steps 5–9 of Fig. 10 (commitment and opening of the residual shares); steps 1–4 (coin-flipping a seed and expanding it with a PRG into the weights) are replaced by weights supplied as inputs. - DKLPSS13, §5.1, Lemma 1 (correct, and sound except with probability $2 / p$) and App. D.3
(its proof game):
macCheckSoundnessGameandmacCheckSoundnessAdvGameformalize the App. D.3 game, andeval_macCheckSoundnessGame_leits $2 / p$ bound. As in App. D.3, tampering with the corrupt parties' MAC shares is absorbed into the adversarial shift (deltaOpen/deltaShift).
Contents #
- SPDZ Authenticated Secret Sharing (
AuthShare): represents an authenticated value $\langle a \rangle = (\delta, (a_0, \dots, a_{n-1}), (\gamma_0, \dots, \gamma_{n-1}))$ overZMod pwith reconstructed secret $a = \sum_i a_i$, MAC sum $\gamma = \sum_i \gamma_i$, and global MAC invariantAuthShare.Valid alpha($\gamma = \alpha \cdot (a + \delta)$). - Linear & Online Beaver Operations (
AuthShare.add,AuthShare.neg,AuthShare.sub,AuthShare.smul,AuthShare.addConst,AuthShare.mulOnline): local share addition, negation, subtraction, public scalar multiplication, public constant addition (updating party0's value share and shifting the public modifier $\delta \mapsto \delta - e$), and online Beaver multiplication $\langle x \cdot y \rangle = e \cdot \langle a \rangle + d \cdot \langle b \rangle + \langle c \rangle + d \cdot e$, all preservingAuthShare.Valid alpha, matchingCslib.Crypto.Protocols.MPC.Beaver.beaverMulShareon each party's value share (AuthShare.valShares_mulOnline_eq_beaverMulShare), and reconstructing $x \cdot y$ when $d = x - a$, $e = y - b$, and $c = a \cdot b$ (AuthShare.secret_mulOnline_eq_mul). - Batch
MACCheckProtocol & Completeness (OpenedValue,PartyCheckInput,ResidualOpening,checkResidual,macCheckProtocol,eval_snd_macCheckProtocol_eq_pure_true): two-round commit-then-open protocol overCslibFrontier.Crypto.Protocols.MPC.BasicandCslibFrontier.Crypto.Protocols.MPC.Broadcastchecking a batch of $T$ publicly opened values via linear combination weights $e \in (\mathbb{Z}_p)^T$ supplied as inputs (steps 5–9 of [DKL+13], App. D.1, Fig. 10, adapted to the $\delta$-representation). Honest executions satisfy $\sum_i \sigma_i = 0$ (sum_checkResidual_eq_zero) and accept with probability1. - Residual Cheating Equation & $2 / p$ Standalone Cheating-Equation Game Bound
(
sum_checkResidual_eq_neg_mul,sum_checkResidual_add_eq_zero_iff,linearCombZeroGame,macCheckSoundnessGame,eval_macCheckSoundnessGame_le,eval_macCheckSoundnessAdvGame_le): for primepand any nonzero vector of opening errorserr ≠ 0(even against an adaptive residual shiftdeltaShift : (Fin T → ZMod p) → ZMod pchosen as a function of the public weightse, or generated from prior randomized adversary stateadv : ProbComp Sindependent ofalpha), theMACCheckcheating equationalpha * linearCombAddHom err e = deltaShift e(standalone game) holds with probability at most $2 / p$ ([DKL+13], §5.1, Lemma 1; App. D.3):- Stage 1 (
eval_linearCombZeroGame_eq): $\Pr_e[\sum_\ell e_\ell \cdot \mathrm{err}_\ell = 0] = 1 / p$, proved viaCslib.Probability.toOuterMeasure_uniform_linearComb_eq_zero. - Stage 2 (
eval_macKey_guess_eq,eval_macKey_guess_le): whenever $L = \sum_\ell e_\ell \cdot \mathrm{err}_\ell \neq 0$, a uniform key $\alpha \in \mathbb{Z}_p$ satisfies $\alpha \cdot L = \Delta(e)$ with probability $1 / p$, proved viaCslib.Probability.toOuterMeasure_uniform_linearComb_eqonUnit.
- Stage 1 (
Scope note: macCheckProtocol is parameterized over an abstract deterministic commitment map
commit : ZMod p → Coins → Comm (checking equality of Round-1 commitments and Round-2 openings);
weights are supplied as inputs (PartyCheckInput.weights) whose joint generation after the
openings is not modeled, alpha is not sampled by the protocol, and the AddCommMonoid structures
on Coins, Comm, and ResidualOpening are only used by the broadcastSteps combinator.
The games macCheckSoundnessGame and macCheckSoundnessAdvGame analyze the standalone algebraic
information-theoretic cheating equation given an independent uniform MAC key
$\alpha \in \mathbb{Z}_p$ and public weights $e \in (\mathbb{Z}_p)^T$. The game's $\alpha$ plays
the role of an honest party's key share $\alpha_H$, uniform and unknown to the adversary; the
corrupt parties' contribution $\alpha_C \cdot L$ is part of deltaShift. The games are analyzed
directly, not as an execution of macCheckProtocol, a computational commitment binding
reduction, a UC emulation proof, or a polynomial-time simulator certificate. Generalizing the
$2 / p$ bound to an arbitrary finite field and removing the AddCommMonoid requirement from
broadcastSteps are left as follow-ups.
Main definitions #
Cslib.Crypto.Protocols.MPC.SPDZ.AuthShare,Cslib.Crypto.Protocols.MPC.SPDZ.AuthShare.secret,Cslib.Crypto.Protocols.MPC.SPDZ.AuthShare.macSum,Cslib.Crypto.Protocols.MPC.SPDZ.AuthShare.Valid: SPDZ⟨·⟩-authenticated secret sharing and MAC invariant.Cslib.Crypto.Protocols.MPC.SPDZ.AuthShare.add,Cslib.Crypto.Protocols.MPC.SPDZ.AuthShare.neg,Cslib.Crypto.Protocols.MPC.SPDZ.AuthShare.sub,Cslib.Crypto.Protocols.MPC.SPDZ.AuthShare.smul,Cslib.Crypto.Protocols.MPC.SPDZ.AuthShare.addConst,Cslib.Crypto.Protocols.MPC.SPDZ.AuthShare.mulOnline: homomorphic linear operations and online Beaver multiplication on authenticated shares.Cslib.Crypto.Protocols.MPC.SPDZ.AuthShare.tamperParty: a corrupt party's additive tampering of its value and MAC shares.Cslib.Crypto.Protocols.MPC.SPDZ.OpenedValue,Cslib.Crypto.Protocols.MPC.SPDZ.PartyCheckInput,Cslib.Crypto.Protocols.MPC.SPDZ.PartyCheckInput.AuthenticFor,Cslib.Crypto.Protocols.MPC.SPDZ.PartyCheckInput.Honest,Cslib.Crypto.Protocols.MPC.SPDZ.ResidualOpening,Cslib.Crypto.Protocols.MPC.SPDZ.checkResidual,Cslib.Crypto.Protocols.MPC.SPDZ.verifyResiduals: batchMACCheckinputs, local residuals, and verification predicate.Cslib.Crypto.Protocols.MPC.SPDZ.macCheckSchedule,Cslib.Crypto.Protocols.MPC.SPDZ.macCheckProtocol: two-round commit-then-openMACCheckprotocol overCslibFrontier.Crypto.Protocols.MPC.Basic.Cslib.Crypto.Protocols.MPC.SPDZ.linearCombZeroGame,Cslib.Crypto.Protocols.MPC.SPDZ.macCheckSoundnessGame,Cslib.Crypto.Protocols.MPC.SPDZ.macCheckSoundnessAdvGame: standaloneProbCompcheating-equation games.
Main results #
Cslib.Crypto.Protocols.MPC.SPDZ.AuthShare.Valid.add,Cslib.Crypto.Protocols.MPC.SPDZ.AuthShare.Valid.neg,Cslib.Crypto.Protocols.MPC.SPDZ.AuthShare.Valid.sub,Cslib.Crypto.Protocols.MPC.SPDZ.AuthShare.Valid.smul,Cslib.Crypto.Protocols.MPC.SPDZ.AuthShare.Valid.addConst,Cslib.Crypto.Protocols.MPC.SPDZ.AuthShare.Valid.mulOnline,Cslib.Crypto.Protocols.MPC.SPDZ.AuthShare.valShares_mulOnline_eq_beaverMulShare,Cslib.Crypto.Protocols.MPC.SPDZ.AuthShare.secret_mulOnline_eq_mul: MAC-invariant preservation, value-share agreement withBeaver.beaverMulShare, and online product correctness.Cslib.Crypto.Protocols.MPC.SPDZ.AuthShare.valid_tamperParty_iff: a valid share stays valid after partyiadds(δ_x, δ_t)to its shares iffα * δ_x = δ_t.Cslib.Crypto.Protocols.MPC.SPDZ.sum_checkResidual_eq_zero,Cslib.Crypto.Protocols.MPC.SPDZ.eval_snd_macCheckProtocol_eq_pure_true: honest completeness of batchMACCheck.Cslib.Crypto.Protocols.MPC.SPDZ.sum_checkResidual_eq_neg_mul,Cslib.Crypto.Protocols.MPC.SPDZ.sum_checkResidual_add_eq_zero_iff: algebraic residual identity and cheating equation for forged openings.Cslib.Crypto.Protocols.MPC.SPDZ.eval_linearCombZeroGame_eq,Cslib.Crypto.Protocols.MPC.SPDZ.eval_linearCombZeroGame_le,Cslib.Crypto.Protocols.MPC.SPDZ.probability_linearCombZeroGame_le: Stage 1 weight-cancellation probability $1 / p$.Cslib.Crypto.Protocols.MPC.SPDZ.eval_macKey_guess_eq,Cslib.Crypto.Protocols.MPC.SPDZ.eval_macKey_guess_le: Stage 2 key-guessing probability (exact1 / pforL ≠ 0) and bound.Cslib.Crypto.Protocols.MPC.SPDZ.eval_macCheckSoundnessGame_le,Cslib.Crypto.Protocols.MPC.SPDZ.probability_macCheckSoundnessGame_le,Cslib.Crypto.Protocols.MPC.SPDZ.eval_macCheckSoundnessAdvGame_le: concrete $2 / p$ bound for the standaloneMACCheckcheating-equation game.
References #
SPDZ ⟨·⟩-authenticated secret sharing and online operations #
Batch MACCheck data structures, residual equations, and commit-then-open protocol #
Party i's local input to a batch MACCheck over T opened values
([DKL+13], App. D.1, Fig. 10).
- opened : Fin T → OpenedValue p
The
Tpublicly opened values and modifiers(a'_ℓ, δ_ℓ). Public random linear-combination weights
(e_0, …, e_{T-1}).
Instances For
Round-2 opening message (σ_j, decommit_j) broadcast by party j in macCheckProtocol.
- sigma : ZMod p
Party
j's claimed residual shareσ_j. - decommit : Coins
Decommitment randomness matching party
j's Round-1 commitment.
Instances For
Equivalence between ResidualOpening p Coins and ZMod p × Coins, used to transport
AddCommMonoid from ZMod p × Coins for broadcastSteps.
Verify that every party's Round-2 residual opening matches its Round-1 commitment and that the
opened residual shares sum to 0 ([DKL+13], App. D.1,
Fig. 10).
Predicate stating that inp : Fin n → PartyCheckInput p T arises from validly authenticated
shares shares : Fin T → AuthShare p n under global key alpha = ∑ i, α_i with common public
opened values and common public weights e (allowing opened to differ from the true secrets
by err_ℓ = (opened ℓ).value - (shares ℓ).secret). Following
[DKL+13], App. D.3, tampering with the corrupt parties' MAC
shares is not modeled here; it is absorbed into the adversarial shift deltaOpen /
deltaShift.
Every party sees the same public opened values
opened.Every party uses the same public random weights
e.
Predicate stating that inp is a completely honest MACCheck instance in which every opened
value (opened ℓ).value equals the true shared secret (shares ℓ).secret.
Every opened value equals the true secret
(shares ℓ).secret.
Core algebraic residual identity of SPDZ MACCheck (the δ-adapted check of
[DKL+13], App. D.1, Fig. 10): when inp is authenticated
for shares with claimed public openings opened,
∑ i, checkResidual (inp i) = - alpha * ∑ ℓ, e_ℓ * ((opened ℓ).value - (shares ℓ).secret).
Honest completeness of checkResidual: when all opened values match the true secrets, the
parties' residuals sum to 0.
Cheating equation equivalence ([DKL+13], App. D.3): adding an
adversarial residual shift deltaOpen to the honest residual sum yields 0 if and only if
alpha * linearCombAddHom err e = deltaOpen.
Schedule for the two-round commit-then-open macCheckProtocol: Round 1 broadcasts commitments
Comm and Round 2 broadcasts ResidualOpening p Coins.
Two-round commit-then-open MACCheck protocol over CslibFrontier.Crypto.Protocols.MPC.Basic,
modeling steps 5–9 of [DKL+13], App. D.1, Fig. 10 (steps 1–4,
which coin-flip a seed and expand it with a PRG into the weights, are replaced by the input
weights PartyCheckInput.weights), with the residual adapted to the δ-representation:
- Each party
isamples commitment coinsr_i ← sampleCoins, computesσ_i = checkResidual, and broadcastscommit σ_i r_iin Round 1. - Each party
ibroadcasts⟨σ_i, r_i⟩ : ResidualOpening p Coinsin Round 2. - Each party outputs
verifyResiduals commit commits openings.
Honest completeness of macCheckProtocol: for every commitment scheme (sampleCoins, commit)
and every honest PartyCheckInput.Honest batch, all n parties output true with probability 1.
Concrete $2 / p$ bound for the standalone MACCheck cheating-equation game #
Standalone MACCheck cheating-equation game, the game from the proof of
[DKL+13], §5.1, Lemma 1 (App. D.3):
samples an independent uniform MAC key alpha ← $ᵗ ZMod p and public weights
e ← $ᵗ (Fin T → ZMod p), and tests whether the adversary's (possibly e-adaptive)
residual shift deltaShift e satisfies the cheating equation
alpha * linearCombAddHom err e = deltaShift e.
Stateful randomized-adversary standalone MACCheck cheating-equation game (the game of
[DKL+13], App. D.3, paralleling
CslibFrontier.Crypto.Protocols.VOLE.MulCheck): an arbitrary prior computation adv : ProbComp S
selects state s determining both the opening error vector err s and the e-adaptive shift
deltaShift s before the independent key alpha is sampled, winning if err s ≠ 0 and
alpha * linearCombAddHom (err s) e = deltaShift s e.
Stage 1 exact probability: for prime p and err ≠ 0, linearCombZeroGame p T err outputs
true with exact probability p⁻¹ (via toOuterMeasure_uniform_linearComb_eq_zero).
Stage-2 exact key-guessing probability: for any L ≠ 0 and d : ZMod p, a uniform key
alpha : ZMod p satisfies alpha * L = d with probability exactly p⁻¹ (via
toOuterMeasure_uniform_linearComb_eq on Unit).
Stage-2 pointwise key-guessing bound: for any L, d : ZMod p, a uniform key alpha : ZMod p
satisfies alpha * L = d with probability at most (if L = 0 then 1 else 0) + p⁻¹ (the
L ≠ 0 branch is eval_macKey_guess_eq).
Concrete $2 / p$ bound for the standalone MACCheck cheating-equation game
([DKL+13], §5.1, Lemma 1; App. D.3): for prime p, any
nonzero opening error vector err ≠ 0, and any e-adaptive residual shift deltaShift,
macCheckSoundnessGame p T err deltaShift outputs true with probability at most 2 / p.
Standalone MACCheck cheating-equation bound against any prior randomized adversary
adv : ProbComp S that selects state s (fixing err s and deltaShift s) before the
independent uniform key alpha : ZMod p is sampled.