encryptogroup / ABY

ABY - A Framework for Efficient Mixed-protocol Secure Two-party Computation
GNU Lesser General Public License v3.0
463 stars 132 forks source link

Load a share object on a circuit #45

Open jpmcruz opened 6 years ago

jpmcruz commented 6 years ago

Hi,

How can I load a share object on a circuit (Assuming the share object is an output of another circuit). The PutINGate and PutSIMDINGate seem to only accept plaintext values (unsigned int).

Thank you.

dd23 commented 6 years ago

This currently only works with the content of secret-shared values using Boolean or arithmetic sharing, but not with Yao and not with share objects directly.

A value x is secret shared as x = x_1 XOR/ADD x_2, where one party has x_1 and the other one has x_2.

With PutSharedINGate() you can directly load such an x_i share and with PutSharedOUTGate() you can output it.

ziyedbe commented 4 years ago

@dd23 Can you further explain this please ? I have shares that i want to use in another ABY instance but i don't really get how.