mirror of
https://github.com/data61/MP-SPDZ.git
synced 2026-05-13 03:00:24 -04:00
Bug in fake preprocessing for even number of parties with Shamir secret sharing.
This commit is contained in:
@@ -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];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user