constantine/tests/math
Mamy Ratsimbazafy cbb454fff1
Codecs (#217)
* create a codecs.nim file for hex/base64 and other encoding conversions

* improve maintenance/readability of hex conversion

* add skeleton of constant-time base64 decoding

* use raw casts

* use raw casts only for same size types
2023-02-07 13:10:17 +01:00
..
support Constant time (#185) 2022-02-28 09:23:26 +01:00
vectors Pasta curves (#191) 2022-04-27 00:58:48 +02:00
t_bigints.nim style: casing of WordBitWidth/WordBitwidth 2023-01-11 19:31:23 +01:00
t_bigints_mod_vs_gmp.nim chore: remove stew/byteutils dependencies and unneeded imports 2023-01-12 20:25:57 +01:00
t_bigints_mul_high_words_vs_gmp.nim chore: remove stew/byteutils dependencies and unneeded imports 2023-01-12 20:25:57 +01:00
t_bigints_mul_vs_gmp.nim chore: remove stew/byteutils dependencies and unneeded imports 2023-01-12 20:25:57 +01:00
t_bigints_multimod.nim style: casing of WordBitWidth/WordBitwidth 2023-01-11 19:31:23 +01:00
t_ec_conversion.nim Don't dump all in "backend" (#184) 2022-02-27 01:49:08 +01:00
t_ec_frobenius.nim style: casing of WordBitWidth/WordBitwidth 2023-01-11 19:31:23 +01:00
t_ec_sage_bls12_377.nim Don't dump all in "backend" (#184) 2022-02-27 01:49:08 +01:00
t_ec_sage_bls12_381.nim Don't dump all in "backend" (#184) 2022-02-27 01:49:08 +01:00
t_ec_sage_bn254_nogami.nim Don't dump all in "backend" (#184) 2022-02-27 01:49:08 +01:00
t_ec_sage_bn254_snarks.nim Don't dump all in "backend" (#184) 2022-02-27 01:49:08 +01:00
t_ec_sage_bw6_761_g1.nim Don't dump all in "backend" (#184) 2022-02-27 01:49:08 +01:00
t_ec_sage_bw6_761_g2.nim Don't dump all in "backend" (#184) 2022-02-27 01:49:08 +01:00
t_ec_sage_pallas.nim Pasta curves (#191) 2022-04-27 00:58:48 +02:00
t_ec_sage_template.nim style: casing of WordBitWidth/WordBitwidth 2023-01-11 19:31:23 +01:00
t_ec_sage_vesta.nim Pasta curves (#191) 2022-04-27 00:58:48 +02:00
t_ec_shortw_jac_g1_add_double.nim Pasta curves (#191) 2022-04-27 00:58:48 +02:00
t_ec_shortw_jac_g1_batch_add.nim Parallel batchadd (#215) 2023-01-29 01:06:37 +01:00
t_ec_shortw_jac_g1_mixed_add.nim Pasta curves (#191) 2022-04-27 00:58:48 +02:00
t_ec_shortw_jac_g1_mul_distri.nim Pasta curves (#191) 2022-04-27 00:58:48 +02:00
t_ec_shortw_jac_g1_mul_sanity.nim chore: cleanup TODOs, unused constants 2023-01-12 01:27:23 +01:00
t_ec_shortw_jac_g1_mul_vs_ref.nim Pasta curves (#191) 2022-04-27 00:58:48 +02:00
t_ec_shortw_jac_g2_add_double_bls12_377.nim Don't dump all in "backend" (#184) 2022-02-27 01:49:08 +01:00
t_ec_shortw_jac_g2_add_double_bls12_381.nim Don't dump all in "backend" (#184) 2022-02-27 01:49:08 +01:00
t_ec_shortw_jac_g2_add_double_bn254_snarks.nim Don't dump all in "backend" (#184) 2022-02-27 01:49:08 +01:00
t_ec_shortw_jac_g2_add_double_bw6_761.nim Don't dump all in "backend" (#184) 2022-02-27 01:49:08 +01:00
t_ec_shortw_jac_g2_mixed_add_bls12_377.nim Don't dump all in "backend" (#184) 2022-02-27 01:49:08 +01:00
t_ec_shortw_jac_g2_mixed_add_bls12_381.nim Don't dump all in "backend" (#184) 2022-02-27 01:49:08 +01:00
t_ec_shortw_jac_g2_mixed_add_bn254_snarks.nim Don't dump all in "backend" (#184) 2022-02-27 01:49:08 +01:00
t_ec_shortw_jac_g2_mixed_add_bw6_761.nim Don't dump all in "backend" (#184) 2022-02-27 01:49:08 +01:00
t_ec_shortw_jac_g2_mul_distri_bls12_377.nim Don't dump all in "backend" (#184) 2022-02-27 01:49:08 +01:00
t_ec_shortw_jac_g2_mul_distri_bls12_381.nim Don't dump all in "backend" (#184) 2022-02-27 01:49:08 +01:00
t_ec_shortw_jac_g2_mul_distri_bn254_snarks.nim Don't dump all in "backend" (#184) 2022-02-27 01:49:08 +01:00
t_ec_shortw_jac_g2_mul_distri_bw6_761.nim Don't dump all in "backend" (#184) 2022-02-27 01:49:08 +01:00
t_ec_shortw_jac_g2_mul_sanity_bls12_377.nim chore: cleanup TODOs, unused constants 2023-01-12 01:27:23 +01:00
t_ec_shortw_jac_g2_mul_sanity_bls12_381.nim chore: cleanup TODOs, unused constants 2023-01-12 01:27:23 +01:00
t_ec_shortw_jac_g2_mul_sanity_bn254_snarks.nim chore: cleanup TODOs, unused constants 2023-01-12 01:27:23 +01:00
t_ec_shortw_jac_g2_mul_sanity_bw6_761.nim Don't dump all in "backend" (#184) 2022-02-27 01:49:08 +01:00
t_ec_shortw_jac_g2_mul_vs_ref_bls12_377.nim Don't dump all in "backend" (#184) 2022-02-27 01:49:08 +01:00
t_ec_shortw_jac_g2_mul_vs_ref_bls12_381.nim Don't dump all in "backend" (#184) 2022-02-27 01:49:08 +01:00
t_ec_shortw_jac_g2_mul_vs_ref_bn254_snarks.nim Don't dump all in "backend" (#184) 2022-02-27 01:49:08 +01:00
t_ec_shortw_jac_g2_mul_vs_ref_bw6_761.nim Don't dump all in "backend" (#184) 2022-02-27 01:49:08 +01:00
t_ec_shortw_prj_edge_cases.nim chore: remove stew/byteutils dependencies and unneeded imports 2023-01-12 20:25:57 +01:00
t_ec_shortw_prj_g1_add_double.nim Pasta curves (#191) 2022-04-27 00:58:48 +02:00
t_ec_shortw_prj_g1_batch_add.nim Parallel batchadd (#215) 2023-01-29 01:06:37 +01:00
t_ec_shortw_prj_g1_mixed_add.nim Pasta curves (#191) 2022-04-27 00:58:48 +02:00
t_ec_shortw_prj_g1_mul_distri.nim Pasta curves (#191) 2022-04-27 00:58:48 +02:00
t_ec_shortw_prj_g1_mul_sanity.nim chore: remove stew/byteutils dependencies and unneeded imports 2023-01-12 20:25:57 +01:00
t_ec_shortw_prj_g1_mul_vs_ref.nim Pasta curves (#191) 2022-04-27 00:58:48 +02:00
t_ec_shortw_prj_g2_add_double_bls12_377.nim Don't dump all in "backend" (#184) 2022-02-27 01:49:08 +01:00
t_ec_shortw_prj_g2_add_double_bls12_381.nim Don't dump all in "backend" (#184) 2022-02-27 01:49:08 +01:00
t_ec_shortw_prj_g2_add_double_bn254_snarks.nim Don't dump all in "backend" (#184) 2022-02-27 01:49:08 +01:00
t_ec_shortw_prj_g2_add_double_bw6_761.nim Don't dump all in "backend" (#184) 2022-02-27 01:49:08 +01:00
t_ec_shortw_prj_g2_mixed_add_bls12_377.nim Don't dump all in "backend" (#184) 2022-02-27 01:49:08 +01:00
t_ec_shortw_prj_g2_mixed_add_bls12_381.nim Don't dump all in "backend" (#184) 2022-02-27 01:49:08 +01:00
t_ec_shortw_prj_g2_mixed_add_bn254_snarks.nim Don't dump all in "backend" (#184) 2022-02-27 01:49:08 +01:00
t_ec_shortw_prj_g2_mixed_add_bw6_761.nim Don't dump all in "backend" (#184) 2022-02-27 01:49:08 +01:00
t_ec_shortw_prj_g2_mul_distri_bls12_377.nim Don't dump all in "backend" (#184) 2022-02-27 01:49:08 +01:00
t_ec_shortw_prj_g2_mul_distri_bls12_381.nim Don't dump all in "backend" (#184) 2022-02-27 01:49:08 +01:00
t_ec_shortw_prj_g2_mul_distri_bn254_snarks.nim Don't dump all in "backend" (#184) 2022-02-27 01:49:08 +01:00
t_ec_shortw_prj_g2_mul_distri_bw6_761.nim Don't dump all in "backend" (#184) 2022-02-27 01:49:08 +01:00
t_ec_shortw_prj_g2_mul_sanity_bls12_377.nim chore: cleanup TODOs, unused constants 2023-01-12 01:27:23 +01:00
t_ec_shortw_prj_g2_mul_sanity_bls12_381.nim chore: cleanup TODOs, unused constants 2023-01-12 01:27:23 +01:00
t_ec_shortw_prj_g2_mul_sanity_bn254_snarks.nim chore: cleanup TODOs, unused constants 2023-01-12 01:27:23 +01:00
t_ec_shortw_prj_g2_mul_sanity_bw6_761.nim Don't dump all in "backend" (#184) 2022-02-27 01:49:08 +01:00
t_ec_shortw_prj_g2_mul_vs_ref_bls12_377.nim Don't dump all in "backend" (#184) 2022-02-27 01:49:08 +01:00
t_ec_shortw_prj_g2_mul_vs_ref_bls12_381.nim Don't dump all in "backend" (#184) 2022-02-27 01:49:08 +01:00
t_ec_shortw_prj_g2_mul_vs_ref_bn254_snarks.nim Don't dump all in "backend" (#184) 2022-02-27 01:49:08 +01:00
t_ec_shortw_prj_g2_mul_vs_ref_bw6_761.nim Don't dump all in "backend" (#184) 2022-02-27 01:49:08 +01:00
t_ec_subgroups_bls12_377.nim Don't dump all in "backend" (#184) 2022-02-27 01:49:08 +01:00
t_ec_subgroups_bls12_381.nim Don't dump all in "backend" (#184) 2022-02-27 01:49:08 +01:00
t_ec_subgroups_bn254_nogami.nim Don't dump all in "backend" (#184) 2022-02-27 01:49:08 +01:00
t_ec_subgroups_bn254_snarks.nim Don't dump all in "backend" (#184) 2022-02-27 01:49:08 +01:00
t_ec_template.nim Codecs (#217) 2023-02-07 13:10:17 +01:00
t_ec_twedwards_prj_add_double.nim Don't dump all in "backend" (#184) 2022-02-27 01:49:08 +01:00
t_ec_twedwards_prj_mul_distri.nim Don't dump all in "backend" (#184) 2022-02-27 01:49:08 +01:00
t_ec_twedwards_prj_mul_sanity.nim Don't dump all in "backend" (#184) 2022-02-27 01:49:08 +01:00
t_ec_twedwards_prj_mul_vs_ref.nim Don't dump all in "backend" (#184) 2022-02-27 01:49:08 +01:00
t_finite_fields.nim Constant time (#185) 2022-02-28 09:23:26 +01:00
t_finite_fields.nim.cfg Don't dump all in "backend" (#184) 2022-02-27 01:49:08 +01:00
t_finite_fields_conditional_arithmetic.nim Don't dump all in "backend" (#184) 2022-02-27 01:49:08 +01:00
t_finite_fields_double_precision.nim style: casing of WordBitWidth/WordBitwidth 2023-01-11 19:31:23 +01:00
t_finite_fields_double_precision.nim.cfg Don't dump all in "backend" (#184) 2022-02-27 01:49:08 +01:00
t_finite_fields_mulsquare.nim style: casing of WordBitWidth/WordBitwidth 2023-01-11 19:31:23 +01:00
t_finite_fields_mulsquare.nim.cfg Don't dump all in "backend" (#184) 2022-02-27 01:49:08 +01:00
t_finite_fields_powinv.nim style: casing of WordBitWidth/WordBitwidth 2023-01-11 19:31:23 +01:00
t_finite_fields_powinv.nim.cfg Don't dump all in "backend" (#184) 2022-02-27 01:49:08 +01:00
t_finite_fields_sqrt.nim style: casing of WordBitWidth/WordBitwidth 2023-01-11 19:31:23 +01:00
t_finite_fields_sqrt.nim.cfg Don't dump all in "backend" (#184) 2022-02-27 01:49:08 +01:00
t_finite_fields_vs_gmp.nim chore: remove stew/byteutils dependencies and unneeded imports 2023-01-12 20:25:57 +01:00
t_fp2.nim Don't dump all in "backend" (#184) 2022-02-27 01:49:08 +01:00
t_fp2_frobenius.nim Don't dump all in "backend" (#184) 2022-02-27 01:49:08 +01:00
t_fp2_sqrt.nim style: casing of WordBitWidth/WordBitwidth 2023-01-11 19:31:23 +01:00
t_fp4.nim Don't dump all in "backend" (#184) 2022-02-27 01:49:08 +01:00
t_fp4_frobenius.nim Don't dump all in "backend" (#184) 2022-02-27 01:49:08 +01:00
t_fp6_bls12_377.nim Don't dump all in "backend" (#184) 2022-02-27 01:49:08 +01:00
t_fp6_bls12_381.nim Don't dump all in "backend" (#184) 2022-02-27 01:49:08 +01:00
t_fp6_bn254_nogami.nim Fp12 over fp6 (#201) 2022-08-14 09:48:10 +02:00
t_fp6_bn254_snarks.nim Don't dump all in "backend" (#184) 2022-02-27 01:49:08 +01:00
t_fp6_bw6_761.nim Don't dump all in "backend" (#184) 2022-02-27 01:49:08 +01:00
t_fp6_frobenius.nim Don't dump all in "backend" (#184) 2022-02-27 01:49:08 +01:00
t_fp12_anti_regression.nim Don't dump all in "backend" (#184) 2022-02-27 01:49:08 +01:00
t_fp12_bls12_377.nim Don't dump all in "backend" (#184) 2022-02-27 01:49:08 +01:00
t_fp12_bls12_381.nim Don't dump all in "backend" (#184) 2022-02-27 01:49:08 +01:00
t_fp12_bn254_nogami.nim Fp12 over fp6 (#201) 2022-08-14 09:48:10 +02:00
t_fp12_bn254_snarks.nim Don't dump all in "backend" (#184) 2022-02-27 01:49:08 +01:00
t_fp12_exponentiation.nim style: casing of WordBitWidth/WordBitwidth 2023-01-11 19:31:23 +01:00
t_fp12_frobenius.nim Don't dump all in "backend" (#184) 2022-02-27 01:49:08 +01:00
t_fp_cubic_root.nim style: casing of WordBitWidth/WordBitwidth 2023-01-11 19:31:23 +01:00
t_fp_tower_frobenius_template.nim style: casing of WordBitWidth/WordBitwidth 2023-01-11 19:31:23 +01:00
t_fp_tower_template.nim style: casing of WordBitWidth/WordBitwidth 2023-01-11 19:31:23 +01:00
t_fr.nim style: casing of WordBitWidth/WordBitwidth 2023-01-11 19:31:23 +01:00
t_io_bigints.nim style: casing of WordBitWidth/WordBitwidth 2023-01-11 19:31:23 +01:00
t_io_fields.nim style: casing of WordBitWidth/WordBitwidth 2023-01-11 19:31:23 +01:00
t_io_fields.nim.cfg Don't dump all in "backend" (#184) 2022-02-27 01:49:08 +01:00
t_io_unsaturated.nim style: casing of WordBitWidth/WordBitwidth 2023-01-11 19:31:23 +01:00
t_pairing_bls12_377_gt_subgroup.nim BLS Aggregate and Batch verify (#214) 2023-01-27 00:42:12 +01:00
t_pairing_bls12_377_line_functions.nim BLS Aggregate and Batch verify (#214) 2023-01-27 00:42:12 +01:00
t_pairing_bls12_377_optate.nim BLS Aggregate and Batch verify (#214) 2023-01-27 00:42:12 +01:00
t_pairing_bls12_381_gt_subgroup.nim BLS Aggregate and Batch verify (#214) 2023-01-27 00:42:12 +01:00
t_pairing_bls12_381_line_functions.nim BLS Aggregate and Batch verify (#214) 2023-01-27 00:42:12 +01:00
t_pairing_bls12_381_multi.nim BLS Aggregate and Batch verify (#214) 2023-01-27 00:42:12 +01:00
t_pairing_bls12_381_optate.nim BLS Aggregate and Batch verify (#214) 2023-01-27 00:42:12 +01:00
t_pairing_bn254_nogami_gt_subgroup.nim BLS Aggregate and Batch verify (#214) 2023-01-27 00:42:12 +01:00
t_pairing_bn254_nogami_multi.nim BLS Aggregate and Batch verify (#214) 2023-01-27 00:42:12 +01:00
t_pairing_bn254_nogami_optate.nim BLS Aggregate and Batch verify (#214) 2023-01-27 00:42:12 +01:00
t_pairing_bn254_snarks_gt_subgroup.nim BLS Aggregate and Batch verify (#214) 2023-01-27 00:42:12 +01:00
t_pairing_bn254_snarks_multi.nim BLS Aggregate and Batch verify (#214) 2023-01-27 00:42:12 +01:00
t_pairing_bn254_snarks_optate.nim BLS Aggregate and Batch verify (#214) 2023-01-27 00:42:12 +01:00
t_pairing_bw6_761_gt_subgroup.nim BLS Aggregate and Batch verify (#214) 2023-01-27 00:42:12 +01:00
t_pairing_bw6_761_optate.nim BLS Aggregate and Batch verify (#214) 2023-01-27 00:42:12 +01:00
t_pairing_cyclotomic_subgroup.nim BLS Aggregate and Batch verify (#214) 2023-01-27 00:42:12 +01:00
t_pairing_mul_fp12_by_lines.nim BLS Aggregate and Batch verify (#214) 2023-01-27 00:42:12 +01:00
t_pairing_template.nim BLS Aggregate and Batch verify (#214) 2023-01-27 00:42:12 +01:00
t_primitives.nim style: casing of WordBitWidth/WordBitwidth 2023-01-11 19:31:23 +01:00
t_primitives_extended_precision.nim Don't dump all in "backend" (#184) 2022-02-27 01:49:08 +01:00