Bug in fake preprocessing for even number of parties with Shamir secret sharing.

This commit is contained in:
Marcel Keller
2021-01-28 12:53:01 +11:00
parent 212165b8dd
commit 287c039652

View File

@@ -187,7 +187,7 @@ void make_share(ShamirShare<T>* Sa, const V& a, int N,
{
auto& share = Sa[i];
share = a;
for (int j = 0; j < N / 2; j++)
for (int j = 0; j < (N - 1) / 2; j++)
share += vandermonde[i][j] * randomness[j];
}
}