simplify check
This commit is contained in:
parent
9070e0fa9f
commit
7e4d82b58b
4
fp_pub.c
4
fp_pub.c
@ -170,7 +170,7 @@ fp_pub_compute_outcome (struct BRANDT_Auction *ad, size_t *buflen)
|
||||
ec_point_copy (tmpa, ad->gamma2[ad->i][j]);
|
||||
ec_point_copy (tmpb, ad->delta2[ad->i][j]);
|
||||
|
||||
/* apply random masking for losing bidders */
|
||||
/* apply random masking to first summand */
|
||||
smc_zkp_2dle (ad->gamma2[ad->i][j],
|
||||
ad->delta2[ad->i][j],
|
||||
tmpa,
|
||||
@ -411,7 +411,7 @@ fp_pub_determine_outcome (struct BRANDT_Auction *ad,
|
||||
dlogi /= ad->n;
|
||||
|
||||
/* can only support up to bits(dlogi) bidders */
|
||||
brandt_assert (sizeof (int) * 8 - 1 >= ad->n);
|
||||
brandt_assert (sizeof (int) * 8 > ad->n);
|
||||
for (uint16_t i = 0; i < ad->n; i++)
|
||||
{
|
||||
/* first set bit determines the winner */
|
||||
|
Loading…
Reference in New Issue
Block a user