From 2f6144fb7a05bc96867995a20f01c63084477a81 Mon Sep 17 00:00:00 2001 From: Mamy Ratsimbazafy Date: Sun, 18 Sep 2022 15:26:42 +0200 Subject: [PATCH] add missing benches compilation to test suite --- constantine.nimble | 6 +++++- constantine/blssig_pop_on_bls12381_g2.nim | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/constantine.nimble b/constantine.nimble index 493dd59..941c631 100644 --- a/constantine.nimble +++ b/constantine.nimble @@ -223,6 +223,7 @@ const benchDesc = [ "bench_fp", "bench_fp_double_precision", "bench_fp2", + "bench_fp4", "bench_fp6", "bench_fp12", "bench_ec_g1", @@ -235,8 +236,11 @@ const benchDesc = [ "bench_summary_bls12_381", "bench_summary_bn254_nogami", "bench_summary_bn254_snarks", + "bench_summary_pasta", + "bench_poly_1305", "bench_sha256", - "bench_hash_to_curve" + "bench_hash_to_curve", + "bench_blssig_on_bls12_381_g2" ] # For temporary (hopefully) investigation that can only be reproduced in CI diff --git a/constantine/blssig_pop_on_bls12381_g2.nim b/constantine/blssig_pop_on_bls12381_g2.nim index 9cf99de..0b7ac04 100644 --- a/constantine/blssig_pop_on_bls12381_g2.nim +++ b/constantine/blssig_pop_on_bls12381_g2.nim @@ -242,7 +242,7 @@ func deserialize_public_key_compressed_unchecked*(dst: var PublicKey, src: array # General case var t{.noInit.}: matchingBigInt(BLS12_381) t.unmarshal(src, bigEndian) - t.limbs[t.len-1] = t.limbs[t.len-1] and (MaxWord shr 3) # The first 3 bytes contain metadata to mask out + t.limbs[t.limbs.len-1] = t.limbs[t.limbs.len-1] and (MaxWord shr 3) # The first 3 bytes contain metadata to mask out if bool(t >= BLS12_381.Mod()): return cttBLS_CoordinateGreaterOrEqualThanModulus