aboutsummaryrefslogtreecommitdiff
path: root/fp_pub.c
diff options
context:
space:
mode:
authorMarkus Teich <markus.teich@stusta.mhn.de>2016-10-12 14:08:50 +0200
committerMarkus Teich <markus.teich@stusta.mhn.de>2016-10-12 14:08:50 +0200
commit7e4d82b58bc136283c4e3b927abfb81a951ad59b (patch)
tree621634346da865b6080d72122503dadc54b2aa5e /fp_pub.c
parent9070e0fa9f58d2133443eacc4e05ec3b9ddfb93e (diff)
simplify check
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 */