emp-sh2pc icon indicating copy to clipboard operation
emp-sh2pc copied to clipboard

Changes for using Ferret with sh2pc

Open suoivilbo2 opened this issue 2 years ago • 2 comments

I am trying to use EMP-sh2pc with FerretOT, see also issue #31.

What I have done so far is:

  • For the SemiHonestParty constructor in sh_party.h, I have replaced ot = new IKNP<IO>(io) by ot = new FerretCOT<IO>(party, 1, &io, false, false) (and adopted the declaration at the beginning of the file). In my understanding, the second false of the FerretCOT constructor implies that the setup operations will be done later.
  • For the SemiHonestGen constructor in sh_gen.h, I have replaced this->ot->setup_send(delta_bool) by this->ot->setup(this->gc->delta), to initialize the COT delta to the one used by 2PC (is that correct?).
  • For the SemiHonestEva constructor in sh_eva.h, I have replaced this->ot->setup_recv() by this->ot->setup() to initialize the evaluator side.

When I run 2PC, I get a segfault in the extend() operation on the garbler/Gen. What am I doing wrong?

suoivilbo2 avatar Mar 13 '23 13:03 suoivilbo2

hi, @suoivilbo2 , I came across your post and was wondering if you have managed to resolve the issue. If so, could you please share any follow-up information or updates?

Stu-Yang avatar Aug 05 '24 11:08 Stu-Yang