secretflow/heu

OU解密

ssdyue opened this issue · 2 comments

MPInt::MulMod(c / sk_.p_, sk_.gp_inv_, sk_.p_, out);

根据ou解密公式 (c-1)/p * gp_inv mod p,此处是否少减了1:
MPInt::MulMod((c-MPInt::_1_) / sk_.p_, sk_.gp_inv_, sk_.p_, out);