encryptogroup / MOTION

An efficient, user-friendly, modular, and extensible framework for mixed-protocol secure multi-party computation with two or more parties
MIT License
85 stars 40 forks source link

What is the input/output of the AES implementation? #32

Open Mactep1 opened 1 year ago

Mactep1 commented 1 year ago

While running the code of AES encryption given in the example, we find it is not necessary to give input of the encryption function and there is no output other than how much computation resource is resumed. So what is the MPC input and output and where can we invoke the interface relating to it?

Oleksandr-Tkachenko commented 1 year ago

The AES example uses just some dummy input. See https://github.com/encryptogroup/MOTION/blob/56fa049e4e90b298c984db6b9ce5fc380f03e551/src/examples/aes128/common/aes128.cpp#L63.

lzy804924995 commented 1 year ago

We modified the input of the AES example to make the input of party 0 and party 1 different. And we found that the output ciphertext is related only to the input of party 0, not the input of party 1. I wonder if I made some mistake or there are bugs in the code?