diff options
| -rw-r--r-- | fp_pub.c | 4 | 
1 files changed, 2 insertions, 2 deletions
| @@ -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 */ | 
