add missing benches compilation to test suite

This commit is contained in:
Mamy Ratsimbazafy 2022-09-18 15:26:42 +02:00
parent d4e202ead5
commit 2f6144fb7a
No known key found for this signature in database
GPG Key ID: 6227262F49BE273A
2 changed files with 6 additions and 2 deletions

View File

@ -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

View File

@ -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