diff options
author | Markus Teich <markus.teich@stusta.mhn.de> | 2016-10-12 14:08:50 +0200 |
---|---|---|
committer | Markus Teich <markus.teich@stusta.mhn.de> | 2016-10-12 14:08:50 +0200 |
commit | 7e4d82b58bc136283c4e3b927abfb81a951ad59b (patch) | |
tree | 621634346da865b6080d72122503dadc54b2aa5e | |
parent | 9070e0fa9f58d2133443eacc4e05ec3b9ddfb93e (diff) | |
download | libbrandt-7e4d82b58bc136283c4e3b927abfb81a951ad59b.tar.gz libbrandt-7e4d82b58bc136283c4e3b927abfb81a951ad59b.zip |
simplify check
-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) | |||
170 | ec_point_copy (tmpa, ad->gamma2[ad->i][j]); | 170 | ec_point_copy (tmpa, ad->gamma2[ad->i][j]); |
171 | ec_point_copy (tmpb, ad->delta2[ad->i][j]); | 171 | ec_point_copy (tmpb, ad->delta2[ad->i][j]); |
172 | 172 | ||
173 | /* apply random masking for losing bidders */ | 173 | /* apply random masking to first summand */ |
174 | smc_zkp_2dle (ad->gamma2[ad->i][j], | 174 | smc_zkp_2dle (ad->gamma2[ad->i][j], |
175 | ad->delta2[ad->i][j], | 175 | ad->delta2[ad->i][j], |
176 | tmpa, | 176 | tmpa, |
@@ -411,7 +411,7 @@ fp_pub_determine_outcome (struct BRANDT_Auction *ad, | |||
411 | dlogi /= ad->n; | 411 | dlogi /= ad->n; |
412 | 412 | ||
413 | /* can only support up to bits(dlogi) bidders */ | 413 | /* can only support up to bits(dlogi) bidders */ |
414 | brandt_assert (sizeof (int) * 8 - 1 >= ad->n); | 414 | brandt_assert (sizeof (int) * 8 > ad->n); |
415 | for (uint16_t i = 0; i < ad->n; i++) | 415 | for (uint16_t i = 0; i < ad->n; i++) |
416 | { | 416 | { |
417 | /* first set bit determines the winner */ | 417 | /* first set bit determines the winner */ |