aboutsummaryrefslogtreecommitdiff
path: root/fp_pub.c
diff options
context:
space:
mode:
Diffstat (limited to 'fp_pub.c')
-rw-r--r--fp_pub.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fp_pub.c b/fp_pub.c
index eb0cfe1..e4079cb 100644
--- a/fp_pub.c
+++ b/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 */