Multi-Party Computation: Second year
Eduardo Soria Vázquez October 11, 2017
Multi-Party Computation: Second year Eduardo Soria Vzquez October - - PowerPoint PPT Presentation
Multi-Party Computation: Second year Eduardo Soria Vzquez October 11, 2017 A Year in a slide 1. Conferences attended : 1. Flagship: TCC 2016-B, Eurocrypt 2017. 2. Domain-specific: TPMPC. 3. Smaller Meetings: ECRYPT collaborative writing
Eduardo Soria Vázquez October 11, 2017
Eduardo Soria-Vázquez
Eduardo Soria-Vázquez
Carmit Hazay, Peter Scholl, Eduardo Soria Vázquez October 11, 2017
5 Eduardo Soria-Vázquez
Eduardo Soria-Vázquez 6
Protocol indistinguishable from the ideal one run by a Trusted Party Adversaries participate in the protocol
Eduardo Soria-Vázquez 7
corr. rand.
8 Eduardo Soria-Vázquez
1
3
2
4
4 3 2 1
Boolean circuit C
Eduardo Soria-Vázquez 9
Garble Input encoding protocol Eval
2 1
~ , ~ , ~ X X C
2 1
~ , ~ X X
) , (
2 1 x
x C
Encodings
) , (
2 1 x
x C
C ~
2
x
1
x
2
x
1
x
[Yao86]
C ~
Boolean circuit C
Eduardo Soria-Vázquez 7
Garble
C ~
Input Encoding
Inputs
Eval ) , , ( 1
n
x x C
n
x x , ,
1
Generic MPC
[BeaverMicaliRogaway90]
Can be any non-constant round protocol
i
X ~
Local
Eduardo Soria-Vázquez 11
Eduardo Soria-Vázquez 12
Protocol Based on Free XOR Main cost per gate BMR90 Generic MPC ZK proofs of PRG computation LPSY15 MPC in Fp 8n + 5 MPC mult. LSS16 SHE O(n2) ZK proofs of plaintext knowledge This talk OT + MPC in F2 1 MPC mult. in F2
(and [KRW17])
Eduardo Soria-Vázquez 13
u v w 1 1 1 1 1 u v w
Eduardo Soria-Vázquez 14
1 , , , u u
1 , , , v v
1 , , , w w
u v w 1 1 1 1 1
Eduardo Soria-Vázquez 15
, ,
, ,
w K K
K E
v u
, ,
1 , ,
w K K
K E
v u
, ,
, 1 ,
w K K
K E
v u
1 , ,
1 , 1 ,
w K K
K E
v u
1 , , , u u
1 , , , v v
1 , , , w w
Eduardo Soria-Vázquez 16
, ,
1 , ,
w K K
K E
v u
1 , ,
1 , 1 ,
w K K
K E
v u
, ,
, 1 ,
w K K
K E
v u
1 , , , u u
1 , , , v v
1 , , , w w
, ,
, ,
w K K
K E
v u
Eduardo Soria-Vázquez 17
Initially, party Pi gets keys Ki
u,0 , Ki u,1.
– Encrypt the truth table of each gate – Randomly permute the entries
Eduardo Soria-Vázquez 18
, ,
1 , ,
Enc
w K K
K
v u
1 , ,
1 , 1 ,
Enc
w K K
K
v u
, ,
, 1 ,
Enc
w K K
K
v u
1 , , , u u
1 , , , v v
1 , , , w w
, ,
, ,
Enc
w K K
K
v u
} 1 , { ), , , (
, 1 , ,
b K K K
n b u b u b u
Eduardo Soria-Vázquez 19
Input PRF keys and values
Generic MPC: just XOR
) (
, j w
K Enc
F is a double-key PRF, g is gate index.
) ( || || ) ( ) ( , ) (
, 1 , , 1 , , ,
, ,
n b w a w w n i K K j w j w
K K K j g F K K
i b v i a u
g K , K g K , K g K , K g K , K
b v, a u, b v, a u, b v, a u, b v, a u,
Enc Enc Enc Enc
Next: Randomly permute the entries
[Ben-Efraim Lindell Omri 16]
Eduardo Soria-Vázquez 20
) ) ( ) (( ) , , , (
, w v u j j w
b a R K b a j g Enc Garb
Secret permutation bits to shuffle entries
2
} 1 , { ) , ( and } ,..., 1 { for b a n j
g ~ ) (
, j w
K Enc
Rj
j j w j w
R K K
, 1 ,
Eduardo Soria-Vázquez 21
For each AND gate:
Input Rj
2
} 1 , { ) , ( for ) ) ( ) (( :
shares Compute } 1 , { , , Sample
a b a R
w v u j w v u
MPC C ~
shares XOR
) (
, j w
K Enc
(shares
Eduardo Soria-Vázquez 22
For each AND gate:
Input Rj
} 1 , { , , Sample
v u
C ~
shares 1 x F2 mult in MPC
i w i v i u
, , n(n-1) COTs for bit/string mult.
i i u R
, Consistency Check XOR
) (
, j w
K Enc
(shares
Eduardo Soria-Vázquez 23
Eduardo Soria-Vázquez 24
Garble Encoding
Eval
– Only possible break is to flip honest Pj‘s masked key: – Negligible (guess Rj) if the mask was obtained from a suitable PRF
– Allowed incorrect PRF values, non-adaptively. – Did not directly reduce to PRF security. – Shares of garbling had to be authenticated (less efficient).
Eduardo Soria-Vázquez 25
) ( Enc ) ( Enc
j j w j w
R K K
j g F j g F K K
n v n u v u
K K K K j w j w
, , ) (
, ,
1 1
Enc
Eduardo Soria-Vázquez 26
– Efficient instantiation of binary MPC. – Optimized in [KatzRanellucciWang17]
– MAC(x) = K + x R – For shared bit x, and MAC key (K, R)
– Bit/string products for free!
Eduardo Soria-Vázquez 27
Eduardo Soria-Vázquez 28
For each AND gate:
Input Rj
} 1 , { , , Sample
v u
C ~
shares 1 x F2 mult in MPC
i w i v i u
, , n(n-1) COTs for bit/string mult.
i i u R
, Consistency Check XOR
) (
, j w
K Enc
(shares
29 Eduardo Soria-Vázquez
1 10 100 1000 10000 100000 1000000 SPDZ-BMR (2015) SHE-BMR (2016) MASCOT-BMR (2016) This work (2017) 10 parties 3 parties
30 Eduardo Soria-Vázquez
Eduardo Soria-Vázquez 31
http://ia.cr/2017/214 Low Cost, Constant Round MPC Combining BMR and Oblivious Transfer Carmit Hazay, Peter Scholl and Eduardo Soria-Vázquez
Eduardo Soria-Vázquez 32
Benchmark: 9 parties, 1 Gbps LAN, 2.3GHz Intel Xeon CPUs with 20 cores. AES (B=3) SHA-256 (B=3)