Multi Party Computation
ADD
Suppose that value of X,Y are shared (using random value) by Alice and Bob.
Alice and Bob compute “secure ADD” independently, and get the shares of the Z.
The value of Z=X+Y is shared after the “secure ADD” protocol.
Alice Bob Constraint/ResultInput XA,YAXB,YBXA+XB=X,YA+YB=Ysecure ADDZA=XA+YAZB=XB+YBZA+ZB=A+B
MULT
Suppose that value of X,Y are shared (using random value) by Alice and Bob.
Preprocessing
Alice Bob ConstraintcreateΔXΔY=ΔZ(ΔX,ΔYrandom)store ΔAXΔBXΔAX+ΔBX=ΔXstore ΔAYΔBYΔAY+ΔBY=ΔYstore ΔAZΔBZΔAZ+ΔBZ=ΔZ
Secure MULT
Input XA,YAXB,YBXA+XB=X,YA+YB=YExchangeXA−ΔAXXB−ΔBXExchangeYA−ΔAYYB−ΔBYReconstructX−ΔXX−ΔXX−ΔX=(XA−ΔAX)+(XB−ΔBX)ReconstructY−ΔYY−ΔYY−ΔY=(YA−ΔAY)+(YB−ΔBY)Output ZAZBZA+ZB=Z
\]
The “secure MULT” calculation is:
ZA=(x−ΔX)(Y−ΔY)+(X−ΔX)ΔAY+(Y−ΔY)ΔAX+ΔAZZB=(X−ΔX)ΔBY+(Y−ΔY)ΔBX+ΔBZ