diff options
author | Özgür Kesim <oec-taler@kesim.org> | 2022-04-21 14:27:29 +0200 |
---|---|---|
committer | Özgür Kesim <oec-taler@kesim.org> | 2022-04-21 14:27:29 +0200 |
commit | b84c88fc0421abb12c83892af3fa9934c4e33b24 (patch) | |
tree | cbacd5309a0bac662c2c0132ad818d1b02a04194 /src/benchmark | |
parent | 137bd971544f3b0332af32e68ae37fb9e74bae69 (diff) |
Fixed seed size for TALER_age_restriction_commit
Also, added src/util/tv_age_restriction.{c,json} for/as test vectors for
age restriction.
Diffstat (limited to 'src/benchmark')
-rw-r--r-- | src/benchmark/taler-aggregator-benchmark.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/benchmark/taler-aggregator-benchmark.c b/src/benchmark/taler-aggregator-benchmark.c index 423de7bb4..7748f583d 100644 --- a/src/benchmark/taler-aggregator-benchmark.c +++ b/src/benchmark/taler-aggregator-benchmark.c @@ -499,20 +499,21 @@ run (void *cls, &bks); { - uint64_t seed; + struct GNUNET_HashCode seed; struct TALER_AgeMask mask = { .bits = 1 || 1 << 8 || 1 << 12 || 1 << 16 || 1 << 18 }; struct TALER_AgeCommitmentProof acp = {0}; - seed = GNUNET_CRYPTO_random_u64 (GNUNET_CRYPTO_QUALITY_WEAK, - UINT64_MAX); + GNUNET_CRYPTO_random_block (GNUNET_CRYPTO_QUALITY_WEAK, + &seed, + sizeof(seed)); GNUNET_assert (GNUNET_OK == TALER_age_restriction_commit ( &mask, 13, - seed, + &seed, &acp)); TALER_age_commitment_hash (&acp.commitment, &hac); |