From 49e4c2746eb0781f477a64c1a1f66b3839da7725 Mon Sep 17 00:00:00 2001 From: Peter Shugalev Date: Fri, 26 Nov 2021 19:23:20 +0300 Subject: [PATCH 1/9] Updated bls library and its dependencies --- src/bls-signatures/CMakeLists.txt | 2 +- src/bls-signatures/configure-cmake.sh | 2 +- src/bls-signatures/contrib/catch/catch.hpp | 10275 +++++++++++----- src/bls-signatures/contrib/relic/.gitignore | 30 + src/bls-signatures/contrib/relic/.travis.yml | 20 +- .../contrib/relic/CMakeLists.txt | 322 +- src/bls-signatures/contrib/relic/COPYING | 520 - .../contrib/relic/COPYING.LESSER | 520 - src/bls-signatures/contrib/relic/COPYRIGHT | 8 +- src/bls-signatures/contrib/relic/README.md | 37 +- .../relic/art/{logo.png => rlc_logo.png} | Bin .../relic/art/{logo.svg => rlc_logo.svg} | 0 .../contrib/relic/bench/CMakeLists.txt | 12 +- .../contrib/relic/bench/bench_bn.c | 602 +- .../contrib/relic/bench/bench_cp.c | 1118 +- .../contrib/relic/bench/bench_dv.c | 69 +- .../contrib/relic/bench/bench_eb.c | 259 +- .../contrib/relic/bench/bench_ec.c | 106 +- .../contrib/relic/bench/bench_ed.c | 480 +- .../contrib/relic/bench/bench_ep.c | 311 +- .../contrib/relic/bench/bench_epx.c | 306 +- .../contrib/relic/bench/bench_err.c | 39 +- .../contrib/relic/bench/bench_fb.c | 255 +- .../contrib/relic/bench/bench_fbx.c | 66 +- .../contrib/relic/bench/bench_fp.c | 227 +- .../contrib/relic/bench/bench_fpx.c | 2702 +++- .../contrib/relic/bench/bench_md.c | 63 + .../contrib/relic/bench/bench_mpc.c | 311 + .../contrib/relic/bench/bench_pc.c | 304 +- .../contrib/relic/bench/bench_pp.c | 446 +- .../contrib/relic/bench/bench_rand.c | 37 +- .../contrib/relic/cmake/arch.cmake | 10 +- .../contrib/relic/cmake/bn.cmake | 6 +- .../contrib/relic/cmake/cp.cmake | 25 +- .../contrib/relic/cmake/doxygen.cmake | 0 .../contrib/relic/cmake/eb.cmake | 8 +- .../contrib/relic/cmake/ec.cmake | 2 +- .../contrib/relic/cmake/ed.cmake | 26 +- .../contrib/relic/cmake/ep.cmake | 19 +- .../contrib/relic/cmake/err.cmake | 9 + .../contrib/relic/cmake/fb.cmake | 17 +- .../contrib/relic/cmake/fiat.cmake | 39 + .../contrib/relic/cmake/fp.cmake | 9 +- .../contrib/relic/cmake/fpx.cmake | 8 +- .../contrib/relic/cmake/gmp.cmake | 0 .../contrib/relic/cmake/ios.cmake | 443 + .../contrib/relic/cmake/md.cmake | 1 - .../contrib/relic/cmake/pp.cmake | 4 +- .../contrib/relic/cmake/rand.cmake | 29 +- .../contrib/relic/cmake/relic-config.cmake | 12 +- .../contrib/relic/cmake/with.cmake | 130 + .../relic/demo/cert-input/test-bench.c | 471 + .../relic/demo/general-paillier/test.c | 92 + .../contrib/relic/demo/link-test/test.c | 4 + .../contrib/relic/demo/link-test/test1.c | 37 + .../contrib/relic/demo/link-test/test2.c | 37 + .../contrib/relic/demo/public-stats/csv.c | 153 + .../contrib/relic/demo/public-stats/csv.h | 12 + .../contrib/relic/demo/public-stats/main.c | 349 + .../contrib/relic/demo/tweedledum/main.c | 88 + .../contrib/relic/doc/relic.doxygen.in | 0 .../contrib/relic/include/low/relic_bn_low.h | 68 +- .../contrib/relic/include/low/relic_dv_low.h | 33 +- .../contrib/relic/include/low/relic_fb_low.h | 77 +- .../contrib/relic/include/low/relic_fp_low.h | 83 +- .../contrib/relic/include/low/relic_fpx_low.h | 98 +- .../contrib/relic/include/relic.h | 48 +- .../contrib/relic/include/relic_alloc.h | 91 + .../contrib/relic/include/relic_arch.h | 50 +- .../contrib/relic/include/relic_bc.h | 41 +- .../contrib/relic/include/relic_bench.h | 109 +- .../contrib/relic/include/relic_bn.h | 181 +- .../contrib/relic/include/relic_conf.h.in | 209 +- .../contrib/relic/include/relic_core.h | 267 +- .../contrib/relic/include/relic_cp.h | 1892 +-- .../contrib/relic/include/relic_dv.h | 109 +- .../contrib/relic/include/relic_eb.h | 211 +- .../contrib/relic/include/relic_ec.h | 341 +- .../contrib/relic/include/relic_ed.h | 720 +- .../contrib/relic/include/relic_ep.h | 494 +- .../contrib/relic/include/relic_epx.h | 367 +- .../contrib/relic/include/relic_err.h | 145 +- .../contrib/relic/include/relic_fb.h | 228 +- .../contrib/relic/include/relic_fbx.h | 48 +- .../contrib/relic/include/relic_fp.h | 188 +- .../contrib/relic/include/relic_fpx.h | 4004 ++++-- .../contrib/relic/include/relic_label.h | 2799 +++-- .../contrib/relic/include/relic_md.h | 176 +- .../contrib/relic/include/relic_mpc.h | 387 + .../contrib/relic/include/relic_multi.h | 82 + .../contrib/relic/include/relic_pc.h | 485 +- .../contrib/relic/include/relic_pool.h | 103 - .../contrib/relic/include/relic_pp.h | 392 +- .../contrib/relic/include/relic_rand.h | 47 +- .../contrib/relic/include/relic_test.h | 33 +- .../contrib/relic/include/relic_trace.h | 82 - .../contrib/relic/include/relic_types.h | 94 +- .../contrib/relic/include/relic_util.h | 102 +- .../contrib/relic/preset/ardue-pbc-112.sh | 4 - .../contrib/relic/preset/ardue-pbc-bn254.sh | 3 + .../contrib/relic/preset/arm-pbc-112.sh | 3 - .../contrib/relic/preset/arm-pbc-bn254.sh | 3 + ...droid-pbc-112.sh => armdroid-pbc-bn254.sh} | 4 +- .../contrib/relic/preset/armduino-ecc-128k.sh | 4 +- .../contrib/relic/preset/armega-pbc-112.sh | 4 - .../contrib/relic/preset/armega-pbc-bn254.sh | 3 + ...{armios-pbc-112.sh => armios-pbc-bn254.sh} | 5 +- .../contrib/relic/preset/avr-ecc-80k-sim.sh | 4 +- .../contrib/relic/preset/avr-ecc-80k.sh | 4 +- .../contrib/relic/preset/avr-pbc-80.sh | 4 +- .../contrib/relic/preset/chia-easy-linux.sh | 21 - .../contrib/relic/preset/chia-easy-mac.sh | 21 - .../contrib/relic/preset/chia-gmp-linux.sh | 21 - .../contrib/relic/preset/chia-gmp-mac.sh | 21 - .../relic/preset/curve2251-clmul-gcc.sh | 5 +- .../relic/preset/curve2251-clmul-icc.sh | 5 +- .../relic/preset/curve2251-ssse3-gcc.sh | 5 +- .../relic/preset/curve2251-ssse3-icc.sh | 5 +- .../contrib/relic/preset/fiat-pbc-bls381.sh | 2 + .../contrib/relic/preset/gmp-ecc-128.sh | 4 +- .../relic/preset/gmp-ecc-tweedledum.sh | 2 + .../contrib/relic/preset/gmp-paillier-4096.sh | 2 + .../contrib/relic/preset/gmp-pbc-128.sh | 2 - .../contrib/relic/preset/gmp-pbc-bls381.sh | 2 + .../contrib/relic/preset/gmp-pbc-bn254.sh | 2 + .../{gmp-pbc-128-ss.sh => gmp-pbc-ss1536.sh} | 4 +- .../contrib/relic/preset/msp-ecc-128.sh | 4 +- .../contrib/relic/preset/msp-ecc-128k.sh | 4 +- .../contrib/relic/preset/msp-ecc-80.sh | 4 +- .../contrib/relic/preset/msp-ecc-80k.sh | 4 +- .../contrib/relic/preset/msp-pbc-128.sh | 2 - .../contrib/relic/preset/msp-pbc-80.sh | 2 - .../contrib/relic/preset/msp-pbc-bn158.sh | 2 + .../contrib/relic/preset/msp-pbc-bn254.sh | 2 + .../contrib/relic/preset/valgrind-debug.sh | 4 +- .../contrib/relic/preset/x64-pbc-112.sh | 2 - .../contrib/relic/preset/x64-pbc-128-b12.sh | 2 - .../contrib/relic/preset/x64-pbc-128-bn.sh | 2 - .../contrib/relic/preset/x64-pbc-128.sh | 2 - .../contrib/relic/preset/x64-pbc-140.sh | 2 - .../contrib/relic/preset/x64-pbc-160.sh | 2 - .../contrib/relic/preset/x64-pbc-bls12-381.sh | 2 + .../contrib/relic/preset/x64-pbc-bls12-446.sh | 2 + .../contrib/relic/preset/x64-pbc-bls12-455.sh | 2 + .../contrib/relic/preset/x64-pbc-bls12-638.sh | 2 + .../contrib/relic/preset/x64-pbc-bls48-575.sh | 2 + .../contrib/relic/preset/x64-pbc-bn254.sh | 2 + .../contrib/relic/preset/x64-pbc-bn382.sh | 2 + .../contrib/relic/preset/x64-pbc-bn446.sh | 2 + .../contrib/relic/src/CMakeLists.txt | 30 +- .../contrib/relic/src/arch/lzcnt.inc | 431 + .../contrib/relic/src/arch/relic_arch_arm.c | 33 +- .../contrib/relic/src/arch/relic_arch_avr.c | 35 +- .../contrib/relic/src/arch/relic_arch_msp.c | 54 +- .../contrib/relic/src/arch/relic_arch_none.c | 66 +- .../contrib/relic/src/arch/relic_arch_x64.c | 72 +- .../contrib/relic/src/arch/relic_arch_x86.c | 58 +- .../contrib/relic/src/bc/relic_bc_aes.c | 51 +- .../contrib/relic/src/bc/rijndael-alg-fst.c | 0 .../contrib/relic/src/bc/rijndael-alg-fst.h | 0 .../contrib/relic/src/bc/rijndael-api-fst.c | 2 +- .../contrib/relic/src/bc/rijndael-api-fst.h | 0 .../contrib/relic/src/bn/relic_bn_add.c | 199 +- .../contrib/relic/src/bn/relic_bn_cmp.c | 63 +- .../contrib/relic/src/bn/relic_bn_div.c | 104 +- .../contrib/relic/src/bn/relic_bn_factor.c | 41 +- .../contrib/relic/src/bn/relic_bn_gcd.c | 147 +- .../contrib/relic/src/bn/relic_bn_inv.c | 65 + .../contrib/relic/src/bn/relic_bn_lcm.c | 35 +- .../contrib/relic/src/bn/relic_bn_mem.c | 102 +- .../contrib/relic/src/bn/relic_bn_mod.c | 123 +- .../contrib/relic/src/bn/relic_bn_mul.c | 117 +- .../contrib/relic/src/bn/relic_bn_mxp.c | 208 +- .../contrib/relic/src/bn/relic_bn_prime.c | 116 +- .../contrib/relic/src/bn/relic_bn_rec.c | 197 +- .../contrib/relic/src/bn/relic_bn_shift.c | 105 +- .../contrib/relic/src/bn/relic_bn_smb.c | 75 +- .../contrib/relic/src/bn/relic_bn_sqr.c | 97 +- .../contrib/relic/src/bn/relic_bn_srt.c | 43 +- .../contrib/relic/src/bn/relic_bn_util.c | 234 +- .../contrib/relic/src/cp/relic_cp_bbs.c | 83 +- .../contrib/relic/src/cp/relic_cp_bdpe.c | 77 +- .../contrib/relic/src/cp/relic_cp_bgn.c | 117 +- .../contrib/relic/src/cp/relic_cp_bls.c | 59 +- .../contrib/relic/src/cp/relic_cp_cls.c | 502 + .../contrib/relic/src/cp/relic_cp_cmlhs.c | 386 + .../contrib/relic/src/cp/relic_cp_ecdh.c | 51 +- .../contrib/relic/src/cp/relic_cp_ecdsa.c | 86 +- .../contrib/relic/src/cp/relic_cp_ecies.c | 84 +- .../contrib/relic/src/cp/relic_cp_ecmqv.c | 47 +- .../contrib/relic/src/cp/relic_cp_ecss.c | 100 +- .../contrib/relic/src/cp/relic_cp_elgamal.c | 184 + .../contrib/relic/src/cp/relic_cp_ghpe.c | 225 + .../contrib/relic/src/cp/relic_cp_ibe.c | 128 +- .../contrib/relic/src/cp/relic_cp_mklhs.c | 368 + .../contrib/relic/src/cp/relic_cp_mpss.c | 438 + .../contrib/relic/src/cp/relic_cp_phpe.c | 258 +- .../contrib/relic/src/cp/relic_cp_pss.c | 255 + .../contrib/relic/src/cp/relic_cp_rabin.c | 93 +- .../contrib/relic/src/cp/relic_cp_rsa.c | 881 +- .../contrib/relic/src/cp/relic_cp_sokaka.c | 78 +- .../contrib/relic/src/cp/relic_cp_vbnn.c | 277 + .../contrib/relic/src/cp/relic_cp_vbnn_ibs.c | 328 - .../contrib/relic/src/cp/relic_cp_zss.c | 81 +- .../contrib/relic/src/dv/relic_dv_mem.c | 61 +- .../contrib/relic/src/dv/relic_dv_util.c | 92 +- .../contrib/relic/src/eb/relic_eb_add.c | 89 +- .../contrib/relic/src/eb/relic_eb_cmp.c | 89 + .../contrib/relic/src/eb/relic_eb_curve.c | 69 +- .../contrib/relic/src/eb/relic_eb_dbl.c | 57 +- .../contrib/relic/src/eb/relic_eb_frb.c | 53 +- .../contrib/relic/src/eb/relic_eb_hlv.c | 41 +- .../contrib/relic/src/eb/relic_eb_map.c | 43 +- .../contrib/relic/src/eb/relic_eb_mul.c | 208 +- .../contrib/relic/src/eb/relic_eb_mul_fix.c | 265 +- .../contrib/relic/src/eb/relic_eb_mul_sim.c | 145 +- .../contrib/relic/src/eb/relic_eb_neg.c | 39 +- .../contrib/relic/src/eb/relic_eb_norm.c | 77 +- .../contrib/relic/src/eb/relic_eb_param.c | 77 +- .../contrib/relic/src/eb/relic_eb_pck.c | 35 +- .../contrib/relic/src/eb/relic_eb_util.c | 210 +- .../contrib/relic/src/ed/relic_ed_add.c | 505 +- .../contrib/relic/src/ed/relic_ed_cmp.c | 94 + .../contrib/relic/src/ed/relic_ed_curve.c | 105 +- .../contrib/relic/src/ed/relic_ed_dbl.c | 427 +- .../contrib/relic/src/ed/relic_ed_map.c | 305 +- .../contrib/relic/src/ed/relic_ed_mul.c | 326 +- .../contrib/relic/src/ed/relic_ed_mul_fix.c | 483 +- .../contrib/relic/src/ed/relic_ed_mul_sim.c | 435 +- .../contrib/relic/src/ed/relic_ed_neg.c | 72 + .../contrib/relic/src/ed/relic_ed_norm.c | 127 + .../contrib/relic/src/ed/relic_ed_param.c | 145 +- .../contrib/relic/src/ed/relic_ed_pck.c | 83 +- .../contrib/relic/src/ed/relic_ed_util.c | 500 +- .../contrib/relic/src/ep/relic_ep_add.c | 464 +- .../contrib/relic/src/ep/relic_ep_cmp.c | 103 + .../contrib/relic/src/ep/relic_ep_curve.c | 464 +- .../contrib/relic/src/ep/relic_ep_dbl.c | 244 +- .../contrib/relic/src/ep/relic_ep_map.c | 344 +- .../contrib/relic/src/ep/relic_ep_mul.c | 472 +- .../contrib/relic/src/ep/relic_ep_mul_fix.c | 401 +- .../contrib/relic/src/ep/relic_ep_mul_sim.c | 474 +- .../contrib/relic/src/ep/relic_ep_neg.c | 53 +- .../contrib/relic/src/ep/relic_ep_norm.c | 109 +- .../contrib/relic/src/ep/relic_ep_param.c | 670 +- .../contrib/relic/src/ep/relic_ep_pck.c | 118 +- .../contrib/relic/src/ep/relic_ep_psi.c | 58 + .../contrib/relic/src/ep/relic_ep_util.c | 269 +- .../contrib/relic/src/epx/relic_ep2_add.c | 105 +- .../contrib/relic/src/epx/relic_ep2_cmp.c | 82 + .../contrib/relic/src/epx/relic_ep2_curve.c | 648 +- .../contrib/relic/src/epx/relic_ep2_dbl.c | 62 +- .../contrib/relic/src/epx/relic_ep2_frb.c | 77 +- .../contrib/relic/src/epx/relic_ep2_map.c | 549 +- .../contrib/relic/src/epx/relic_ep2_mul.c | 170 +- .../contrib/relic/src/epx/relic_ep2_mul_cof.c | 181 + .../contrib/relic/src/epx/relic_ep2_mul_fix.c | 250 +- .../contrib/relic/src/epx/relic_ep2_mul_sim.c | 561 +- .../contrib/relic/src/epx/relic_ep2_neg.c | 53 +- .../contrib/relic/src/epx/relic_ep2_norm.c | 56 +- .../contrib/relic/src/epx/relic_ep2_pck.c | 103 +- .../contrib/relic/src/epx/relic_ep2_util.c | 271 +- .../contrib/relic/src/fb/relic_fb_add.c | 32 +- .../contrib/relic/src/fb/relic_fb_cmp.c | 35 +- .../contrib/relic/src/fb/relic_fb_exp.c | 61 +- .../contrib/relic/src/fb/relic_fb_inv.c | 276 +- .../contrib/relic/src/fb/relic_fb_itr.c | 35 +- .../contrib/relic/src/fb/relic_fb_mul.c | 245 +- .../contrib/relic/src/fb/relic_fb_param.c | 31 +- .../contrib/relic/src/fb/relic_fb_poly.c | 105 +- .../contrib/relic/src/fb/relic_fb_rdc.c | 51 +- .../contrib/relic/src/fb/relic_fb_shift.c | 31 +- .../contrib/relic/src/fb/relic_fb_slv.c | 33 +- .../contrib/relic/src/fb/relic_fb_sqr.c | 43 +- .../contrib/relic/src/fb/relic_fb_srt.c | 25 +- .../contrib/relic/src/fb/relic_fb_trc.c | 33 +- .../contrib/relic/src/fb/relic_fb_util.c | 132 +- .../contrib/relic/src/fbx/relic_fb2_inv.c | 31 +- .../contrib/relic/src/fbx/relic_fb2_mul.c | 39 +- .../contrib/relic/src/fbx/relic_fb2_slv.c | 23 +- .../contrib/relic/src/fbx/relic_fb2_sqr.c | 23 +- .../contrib/relic/src/fp/relic_fp_add.c | 85 +- .../contrib/relic/src/fp/relic_fp_cmp.c | 46 +- .../contrib/relic/src/fp/relic_fp_exp.c | 61 +- .../contrib/relic/src/fp/relic_fp_inv.c | 330 +- .../contrib/relic/src/fp/relic_fp_mul.c | 115 +- .../contrib/relic/src/fp/relic_fp_param.c | 778 +- .../contrib/relic/src/fp/relic_fp_prime.c | 579 +- .../contrib/relic/src/fp/relic_fp_rdc.c | 41 +- .../contrib/relic/src/fp/relic_fp_shift.c | 31 +- .../contrib/relic/src/fp/relic_fp_sqr.c | 84 +- .../contrib/relic/src/fp/relic_fp_srt.c | 50 +- .../contrib/relic/src/fp/relic_fp_util.c | 117 +- .../contrib/relic/src/fpx/relic_fp12_mul.c | 148 +- .../contrib/relic/src/fpx/relic_fp12_sqr.c | 413 +- .../contrib/relic/src/fpx/relic_fp18_mul.c | 756 +- .../contrib/relic/src/fpx/relic_fp18_sqr.c | 367 +- .../contrib/relic/src/fpx/relic_fp24_mul.c | 291 + .../contrib/relic/src/fpx/relic_fp24_sqr.c | 242 + .../contrib/relic/src/fpx/relic_fp2_mul.c | 159 +- .../contrib/relic/src/fpx/relic_fp2_sqr.c | 39 +- .../contrib/relic/src/fpx/relic_fp3_mul.c | 166 +- .../contrib/relic/src/fpx/relic_fp3_sqr.c | 70 +- .../contrib/relic/src/fpx/relic_fp48_mul.c | 174 + .../contrib/relic/src/fpx/relic_fp48_sqr.c | 421 + .../contrib/relic/src/fpx/relic_fp4_mul.c | 168 + .../contrib/relic/src/fpx/relic_fp4_sqr.c | 127 + .../contrib/relic/src/fpx/relic_fp54_mul.c | 202 + .../contrib/relic/src/fpx/relic_fp54_sqr.c | 372 + .../contrib/relic/src/fpx/relic_fp6_mul.c | 82 +- .../contrib/relic/src/fpx/relic_fp6_sqr.c | 57 +- .../contrib/relic/src/fpx/relic_fp8_mul.c | 275 + .../contrib/relic/src/fpx/relic_fp8_sqr.c | 168 + .../contrib/relic/src/fpx/relic_fp9_mul.c | 280 + .../contrib/relic/src/fpx/relic_fp9_sqr.c | 222 + .../contrib/relic/src/fpx/relic_fpx_add.c | 192 +- .../contrib/relic/src/fpx/relic_fpx_cmp.c | 123 +- .../contrib/relic/src/fpx/relic_fpx_cyc.c | 1736 +++ .../contrib/relic/src/fpx/relic_fpx_exp.c | 1292 +- .../contrib/relic/src/fpx/relic_fpx_field.c | 224 + .../contrib/relic/src/fpx/relic_fpx_frb.c | 247 +- .../contrib/relic/src/fpx/relic_fpx_inv.c | 556 +- .../contrib/relic/src/fpx/relic_fpx_pck.c | 126 +- .../contrib/relic/src/fpx/relic_fpx_rdc.c | 23 +- .../contrib/relic/src/fpx/relic_fpx_srt.c | 196 +- .../contrib/relic/src/fpx/relic_fpx_util.c | 653 +- .../src/low/arm-asm-254/relic_fp_add_low.c | 54 +- .../src/low/arm-asm-254/relic_fp_add_low.s | 409 +- .../src/low/arm-asm-254/relic_fp_cmp_low.c | 63 - .../src/low/arm-asm-254/relic_fp_cmp_low.s | 115 - .../src/low/arm-asm-254/relic_fp_mul_low.c | 39 +- .../src/low/arm-asm-254/relic_fp_mul_low.s | 24 +- .../src/low/arm-asm-254/relic_fp_rdc_low.c | 100 +- .../src/low/arm-asm-254/relic_fp_rdc_low.s | 23 + .../src/low/avr-asm-158/relic_bn_add_low.s | 27 +- .../src/low/avr-asm-158/relic_bn_shift_low.c | 64 +- .../src/low/avr-asm-158/relic_bn_shift_low.s | 28 +- .../src/low/avr-asm-158/relic_fp_add_low.c | 51 +- .../src/low/avr-asm-158/relic_fp_add_low.s | 35 +- .../src/low/avr-asm-158/relic_fp_mul_low.c | 37 +- .../src/low/avr-asm-158/relic_fp_mul_low.s | 27 +- .../src/low/avr-asm-158/relic_fp_rdc_low.c | 25 +- .../src/low/avr-asm-158/relic_fp_rdc_low.s | 28 +- .../src/low/avr-asm-158/relic_fp_shift_low.c | 67 +- .../src/low/avr-asm-158/relic_fp_shift_low.s | 34 +- .../src/low/avr-asm-158/relic_fp_sqr_low.c | 33 +- .../src/low/avr-asm-158/relic_fp_sqr_low.s | 27 +- .../src/low/avr-asm-163/relic_bn_add_low.s | 23 +- .../src/low/avr-asm-163/relic_bn_shift_low.c | 60 +- .../src/low/avr-asm-163/relic_bn_shift_low.s | 24 +- .../src/low/avr-asm-163/relic_fb_add_low.c | 23 +- .../src/low/avr-asm-163/relic_fb_add_low.s | 27 +- .../src/low/avr-asm-163/relic_fb_mul_low.c | 29 +- .../src/low/avr-asm-163/relic_fb_mul_low.s | 37 +- .../src/low/avr-asm-163/relic_fb_shift_low.c | 77 +- .../src/low/avr-asm-163/relic_fb_shift_low.s | 31 +- .../src/low/avr-asm-163/relic_fb_sqr_low.c | 23 +- .../src/low/avr-asm-163/relic_fb_sqr_low.s | 23 +- .../src/low/curve2251-sse/CMakeLists.txt | 8 +- .../relic/src/low/curve2251-sse/macros.h | 23 +- .../src/low/curve2251-sse/relic_bn_div_low.c | 46 - .../src/low/curve2251-sse/relic_bn_mod_low.c | 61 - .../src/low/curve2251-sse/relic_bn_mul_low.c | 59 - .../src/low/curve2251-sse/relic_bn_sqr_low.c | 58 - .../src/low/curve2251-sse/relic_fb_add_low.c | 27 +- .../src/low/curve2251-sse/relic_fb_inv_low.c | 29 +- .../src/low/curve2251-sse/relic_fb_itr_low.c | 38 +- .../src/low/curve2251-sse/relic_fb_mul_low.c | 39 +- .../low/curve2251-sse/relic_fb_mul_low_cl.c | 27 +- .../low/curve2251-sse/relic_fb_mul_low_ld.c | 39 +- .../low/curve2251-sse/relic_fb_mul_low_sf.c | 51 +- .../src/low/curve2251-sse/relic_fb_rdc_low.c | 69 +- .../src/low/curve2251-sse/relic_fb_slv_low.c | 27 +- .../src/low/curve2251-sse/relic_fb_sqr_low.c | 29 +- .../src/low/curve2251-sse/relic_fb_srt_low.c | 38 +- .../src/low/curve2251-sse/relic_fb_trc_low.c | 23 +- .../relic/src/low/easy/relic_bn_add_low.c | 23 +- .../relic/src/low/easy/relic_bn_cmp_low.c | 60 - .../relic/src/low/easy/relic_bn_div_low.c | 47 +- .../relic/src/low/easy/relic_bn_mod_low.c | 27 +- .../relic/src/low/easy/relic_bn_mul_low.c | 31 +- .../relic/src/low/easy/relic_bn_shift_low.c | 48 +- .../relic/src/low/easy/relic_bn_sqr_low.c | 61 +- .../relic/src/low/easy/relic_fb_add_low.c | 27 +- .../relic/src/low/easy/relic_fb_cmp_low.c | 60 - .../relic/src/low/easy/relic_fb_inv_low.c | 47 +- .../relic/src/low/easy/relic_fb_itr_low.c | 33 +- .../relic/src/low/easy/relic_fb_mul_low.c | 119 +- .../relic/src/low/easy/relic_fb_rdc_low.c | 103 +- .../relic/src/low/easy/relic_fb_shift_low.c | 89 +- .../relic/src/low/easy/relic_fb_slv_low.c | 43 +- .../relic/src/low/easy/relic_fb_sqr_low.c | 61 +- .../relic/src/low/easy/relic_fb_srt_low.c | 91 +- .../relic/src/low/easy/relic_fb_trc_low.c | 23 +- .../relic/src/low/easy/relic_fp_add_low.c | 78 +- .../relic/src/low/easy/relic_fp_cmp_low.c | 60 - .../relic/src/low/easy/relic_fp_inv_low.c | 33 +- .../relic/src/low/easy/relic_fp_mul_low.c | 51 +- .../relic/src/low/easy/relic_fp_rdc_low.c | 92 +- .../relic/src/low/easy/relic_fp_shift_low.c | 79 +- .../relic/src/low/easy/relic_fp_sqr_low.c | 49 +- .../relic/src/low/easy/relic_fpx_add_low.c | 223 +- .../relic/src/low/easy/relic_fpx_mul_low.c | 106 +- .../relic/src/low/easy/relic_fpx_rdc_low.c | 23 +- .../relic/src/low/easy/relic_fpx_sqr_low.c | 107 +- .../contrib/relic/src/low/fiat/CMakeLists.txt | 12 + .../relic/src/low/fiat/relic_fp_add_low.tmpl | 138 + .../relic/src/low/fiat/relic_fp_mul_low.tmpl | 57 + .../relic/src/low/fiat/relic_fp_sqr_low.tmpl | 49 + .../relic/src/low/gmp-sec/relic_bn_add_low.c | 36 +- .../relic/src/low/gmp-sec/relic_bn_cmp_low.c | 46 - .../relic/src/low/gmp-sec/relic_bn_div_low.c | 41 +- .../relic/src/low/gmp-sec/relic_bn_mod_low.c | 41 +- .../relic/src/low/gmp-sec/relic_bn_mul_low.c | 48 +- .../src/low/gmp-sec/relic_bn_shift_low.c | 52 +- .../relic/src/low/gmp-sec/relic_bn_sqr_low.c | 44 +- .../relic/src/low/gmp-sec/relic_fp_add_low.c | 129 + .../relic/src/low/gmp-sec/relic_fp_inv_low.c | 68 + .../relic/src/low/gmp-sec/relic_fp_mul_low.c | 60 + .../relic/src/low/gmp-sec/relic_fp_rdc_low.c | 118 + .../src/low/gmp-sec/relic_fp_shift_low.c | 55 + .../relic/src/low/gmp-sec/relic_fp_sqr_low.c | 52 + .../relic/src/low/gmp/relic_bn_add_low.c | 23 +- .../relic/src/low/gmp/relic_bn_cmp_low.c | 46 - .../relic/src/low/gmp/relic_bn_div_low.c | 23 +- .../relic/src/low/gmp/relic_bn_mod_low.c | 23 +- .../relic/src/low/gmp/relic_bn_mul_low.c | 23 +- .../relic/src/low/gmp/relic_bn_shift_low.c | 52 +- .../relic/src/low/gmp/relic_bn_sqr_low.c | 36 +- .../relic/src/low/gmp/relic_fb_add_low.c | 27 +- .../relic/src/low/gmp/relic_fb_cmp_low.c | 47 - .../relic/src/low/gmp/relic_fb_shift_low.c | 69 +- .../relic/src/low/gmp/relic_fp_add_low.c | 87 +- .../relic/src/low/gmp/relic_fp_cmp_low.c | 46 - .../relic/src/low/gmp/relic_fp_inv_low.c | 48 +- .../relic/src/low/gmp/relic_fp_mul_low.c | 33 +- .../relic/src/low/gmp/relic_fp_rdc_low.c | 77 +- .../relic/src/low/gmp/relic_fp_shift_low.c | 65 +- .../relic/src/low/gmp/relic_fp_sqr_low.c | 27 +- .../relic/src/low/msp-asm/fb_mul_163_ld.inc | 0 .../relic/src/low/msp-asm/fb_mul_271_ld.inc | 0 .../src/low/msp-asm/fb_mul_271_ld_k2.inc | 0 .../relic/src/low/msp-asm/fb_mul_283_ld.inc | 0 .../src/low/msp-asm/fb_mul_353_ld_k2.inc | 0 .../src/low/msp-asm/fb_mul_353_ld_k3.inc | 0 .../src/low/msp-asm/fb_srt_271_penta.inc | 0 .../src/low/msp-asm/fb_srt_353_trino.inc | 0 .../src/low/msp-asm/fp_mul32_160_comba.inc | 0 .../src/low/msp-asm/fp_mul32_256_comba.inc | 0 .../src/low/msp-asm/fp_mul_128_comba.inc | 0 .../src/low/msp-asm/fp_mul_160_comba.inc | 0 .../fp_rdc32_160_montgomery_sparse.inc | 0 .../fp_rdc32_256_montgomery_sparse.inc | 0 .../msp-asm/fp_rdc_160_montgomery_sparse.inc | 0 .../msp-asm/fp_rdc_256_montgomery_sparse.inc | 0 .../relic/src/low/msp-asm/fp_rdc_256p1.inc | 0 .../src/low/msp-asm/fp_sqr32_160_comba.inc | 0 .../src/low/msp-asm/fp_sqr32_256_comba.inc | 0 .../src/low/msp-asm/fp_sqr_128_comba.inc | 0 .../src/low/msp-asm/fp_sqr_160_comba.inc | 0 .../relic/src/low/msp-asm/relic_bn_add_low.c | 2 +- .../relic/src/low/msp-asm/relic_bn_add_low.s | 0 .../src/low/msp-asm/relic_bn_shift_low.c | 43 +- .../src/low/msp-asm/relic_bn_shift_low.s | 0 .../relic/src/low/msp-asm/relic_fb_add_low.c | 4 +- .../relic/src/low/msp-asm/relic_fb_add_low.s | 2 +- .../relic/src/low/msp-asm/relic_fb_mul_low.c | 82 +- .../relic/src/low/msp-asm/relic_fb_mul_low.s | 0 .../src/low/msp-asm/relic_fb_mul_low_163.s | 22 +- .../src/low/msp-asm/relic_fb_mul_low_271.s | 22 +- .../src/low/msp-asm/relic_fb_mul_low_283.s | 22 +- .../src/low/msp-asm/relic_fb_mul_low_353.s | 22 +- .../src/low/msp-asm/relic_fb_mul_low_353_k3.s | 16 +- .../relic/src/low/msp-asm/relic_fb_rdc_low.c | 46 +- .../relic/src/low/msp-asm/relic_fb_rdc_low.s | 0 .../src/low/msp-asm/relic_fb_rdc_low_163.s | 0 .../src/low/msp-asm/relic_fb_rdc_low_271.s | 0 .../src/low/msp-asm/relic_fb_rdc_low_283.s | 0 .../src/low/msp-asm/relic_fb_rdc_low_353.s | 0 .../src/low/msp-asm/relic_fb_shift_low.c | 64 +- .../src/low/msp-asm/relic_fb_shift_low.s | 0 .../relic/src/low/msp-asm/relic_fb_sqr_low.c | 2 +- .../relic/src/low/msp-asm/relic_fb_sqr_low.s | 2 +- .../relic/src/low/msp-asm/relic_fb_srt_low.c | 82 +- .../relic/src/low/msp-asm/relic_fb_srt_low.s | 0 .../relic/src/low/msp-asm/relic_fp_add_low.c | 14 +- .../relic/src/low/msp-asm/relic_fp_add_low.s | 0 .../relic/src/low/msp-asm/relic_fp_cmp_low.c | 58 - .../relic/src/low/msp-asm/relic_fp_inv_low.c | 18 +- .../relic/src/low/msp-asm/relic_fp_mul_low.c | 8 +- .../relic/src/low/msp-asm/relic_fp_mul_low.s | 0 .../src/low/msp-asm/relic_fp_mul_low_160.s | 0 .../src/low/msp-asm/relic_fp_mul_low_256.s | 0 .../relic/src/low/msp-asm/relic_fp_rdc_low.s | 0 .../src/low/msp-asm/relic_fp_rdc_low_160k1.s | 0 .../src/low/msp-asm/relic_fp_rdc_low_160p1.s | 0 .../src/low/msp-asm/relic_fp_rdc_low_256k1.s | 0 .../src/low/msp-asm/relic_fp_rdc_low_256p1.s | 0 .../relic/src/low/msp-asm/relic_fp_sqr_low.s | 0 .../src/low/msp-asm/relic_fp_sqr_low_160.s | 0 .../src/low/msp-asm/relic_fp_sqr_low_256.s | 0 .../relic/src/low/msp-asm/relic_fpx_add_low.c | 36 +- .../contrib/relic/src/low/x64-asm-254/macro.s | 79 +- .../src/low/x64-asm-254/relic_fp_add_low.s | 96 +- .../src/low/x64-asm-254/relic_fp_inv_low.c | 35 +- .../src/low/x64-asm-254/relic_fp_inv_low.s | 23 +- .../src/low/x64-asm-254/relic_fp_mul_low.c | 27 +- .../src/low/x64-asm-254/relic_fp_mul_low.s | 23 +- .../src/low/x64-asm-254/relic_fp_rdc_low.c | 61 +- .../src/low/x64-asm-254/relic_fp_rdc_low.s | 23 +- .../src/low/x64-asm-254/relic_fp_shift_low.c | 59 +- .../src/low/x64-asm-254/relic_fp_shift_low.s | 23 +- .../src/low/x64-asm-254/relic_fp_sqr_low.c | 25 +- .../src/low/x64-asm-254/relic_fp_sqr_low.s | 46 +- .../src/low/x64-asm-254/relic_fpx_add_low.c | 73 +- .../src/low/x64-asm-254/relic_fpx_add_low.s | 240 +- .../src/low/x64-asm-254/relic_fpx_mul_low.c | 73 +- .../src/low/x64-asm-254/relic_fpx_mul_low.s | 57 +- .../src/low/x64-asm-254/relic_fpx_rdc_low.c | 23 +- .../src/low/x64-asm-254/relic_fpx_rdc_low.s | 27 +- .../src/low/x64-asm-254/relic_fpx_sqr_low.c | 75 +- .../src/low/x64-asm-254/relic_fpx_sqr_low.s | 27 +- .../relic/src/low/x64-asm-382/CMakeLists.txt | 1 + .../contrib/relic/src/low/x64-asm-382/macro.s | 35 +- .../src/low/x64-asm-382/relic_bn_add_low.c | 55 - .../src/low/x64-asm-382/relic_bn_cmp_low.c | 46 - .../src/low/x64-asm-382/relic_bn_div_low.c | 46 - .../src/low/x64-asm-382/relic_bn_mod_low.c | 63 - .../src/low/x64-asm-382/relic_bn_mul_low.c | 59 - .../src/low/x64-asm-382/relic_bn_shift_low.c | 86 - .../src/low/x64-asm-382/relic_bn_sqr_low.c | 58 - .../src/low/x64-asm-382/relic_fp_add_low.s | 227 +- .../src/low/x64-asm-382/relic_fp_cmp_low.c | 47 - .../src/low/x64-asm-382/relic_fp_inv_low.c | 47 +- .../src/low/x64-asm-382/relic_fp_mul_low.c | 27 +- .../src/low/x64-asm-382/relic_fp_mul_low.s | 34 +- .../src/low/x64-asm-382/relic_fp_rdc_low.c | 63 +- .../src/low/x64-asm-382/relic_fp_rdc_low.s | 34 +- .../src/low/x64-asm-382/relic_fp_shift_low.c | 59 +- .../src/low/x64-asm-382/relic_fp_shift_low.s | 27 +- .../src/low/x64-asm-382/relic_fp_sqr_low.c | 23 +- .../relic/src/low/x64-asm-446/CMakeLists.txt | 6 + .../contrib/relic/src/low/x64-asm-446/macro.s | 267 + .../src/low/x64-asm-446/relic_fp_add_low.s | 605 + .../src/low/x64-asm-446/relic_fp_inv_low.c | 70 + .../src/low/x64-asm-446/relic_fp_inv_low.s | 292 + .../src/low/x64-asm-446/relic_fp_mul_low.c | 48 + .../src/low/x64-asm-446/relic_fp_mul_low.s | 68 + .../src/low/x64-asm-446/relic_fp_rdc_low.c | 108 + .../src/low/x64-asm-446/relic_fp_rdc_low.s | 62 + .../src/low/x64-asm-446/relic_fp_shift_low.c | 47 + .../src/low/x64-asm-446/relic_fp_shift_low.s | 87 + .../src/low/x64-asm-446/relic_fp_sqr_low.c | 48 + .../relic/src/low/x64-asm-455/CMakeLists.txt | 1 + .../contrib/relic/src/low/x64-asm-455/macro.s | 59 +- .../src/low/x64-asm-455/relic_bn_add_low.c | 55 - .../src/low/x64-asm-455/relic_bn_cmp_low.c | 46 - .../src/low/x64-asm-455/relic_bn_div_low.c | 46 - .../src/low/x64-asm-455/relic_bn_mod_low.c | 63 - .../src/low/x64-asm-455/relic_bn_mul_low.c | 59 - .../src/low/x64-asm-455/relic_bn_shift_low.c | 86 - .../src/low/x64-asm-455/relic_bn_sqr_low.c | 58 - .../src/low/x64-asm-455/relic_fp_add_low.s | 231 +- .../src/low/x64-asm-455/relic_fp_cmp_low.c | 47 - .../src/low/x64-asm-455/relic_fp_inv_low.c | 47 +- .../src/low/x64-asm-455/relic_fp_inv_low.s | 42 +- .../src/low/x64-asm-455/relic_fp_mul_low.c | 27 +- .../src/low/x64-asm-455/relic_fp_mul_low.s | 38 +- .../src/low/x64-asm-455/relic_fp_rdc_low.c | 63 +- .../src/low/x64-asm-455/relic_fp_rdc_low.s | 38 +- .../src/low/x64-asm-455/relic_fp_shift_low.c | 63 +- .../src/low/x64-asm-455/relic_fp_shift_low.s | 41 +- .../src/low/x64-asm-455/relic_fp_sqr_low.c | 23 +- .../relic/src/low/x64-asm-511/CMakeLists.txt | 6 + .../contrib/relic/src/low/x64-asm-511/macro.s | 266 + .../src/low/x64-asm-511/relic_fp_add_low.s | 789 ++ .../src/low/x64-asm-511/relic_fp_inv_low.c | 70 + .../src/low/x64-asm-511/relic_fp_inv_low.s | 296 + .../src/low/x64-asm-511/relic_fp_mul_low.c | 48 + .../src/low/x64-asm-511/relic_fp_mul_low.s | 68 + .../src/low/x64-asm-511/relic_fp_rdc_low.c | 108 + .../src/low/x64-asm-511/relic_fp_rdc_low.s | 62 + .../src/low/x64-asm-511/relic_fp_shift_low.c | 47 + .../src/low/x64-asm-511/relic_fp_shift_low.s | 93 + .../src/low/x64-asm-511/relic_fp_sqr_low.c | 48 + .../relic/src/low/x64-asm-544/CMakeLists.txt | 6 + .../contrib/relic/src/low/x64-asm-544/macro.s | 290 + .../src/low/x64-asm-544/relic_fp_add_low.s | 804 ++ .../src/low/x64-asm-544/relic_fp_mul_low.c | 47 + .../src/low/x64-asm-544/relic_fp_mul_low.s | 68 + .../src/low/x64-asm-544/relic_fp_rdc_low.c | 111 + .../src/low/x64-asm-544/relic_fp_rdc_low.s | 62 + .../src/low/x64-asm-544/relic_fp_sqr_low.c | 48 + .../src/low/x64-asm-544/relic_fpx_add_low.c | 226 + .../src/low/x64-asm-544/relic_fpx_mul_low.c | 184 + .../src/low/x64-asm-544/relic_fpx_rdc_low.c | 50 + .../src/low/x64-asm-544/relic_fpx_rdc_low.s | 65 + .../src/low/x64-asm-544/relic_fpx_sqr_low.c | 172 + .../relic/src/low/x64-asm-638/CMakeLists.txt | 0 .../contrib/relic/src/low/x64-asm-638/macro.s | 87 +- .../src/low/x64-asm-638/relic_fp_add_low.s | 257 +- .../src/low/x64-asm-638/relic_fp_cmp_low.c | 46 - .../src/low/x64-asm-638/relic_fp_mul_low.c | 27 +- .../src/low/x64-asm-638/relic_fp_mul_low.s | 40 +- .../src/low/x64-asm-638/relic_fp_rdc_low.c | 61 +- .../src/low/x64-asm-638/relic_fp_rdc_low.s | 40 +- .../src/low/x64-asm-638/relic_fp_shift_low.c | 86 - .../src/low/x64-asm-638/relic_fp_sqr_low.c | 23 +- .../src/low/x64-asm-638/relic_fpx_rdc_low.c | 23 +- .../src/low/x64-asm-638/relic_fpx_rdc_low.s | 44 +- .../relic/src/low/x64-asm-nine/CMakeLists.txt | 6 + .../relic/src/low/x64-asm-nine/macro.s | 295 + .../src/low/x64-asm-nine/relic_fp_add_low.s | 774 ++ .../src/low/x64-asm-nine/relic_fp_mul_low.c | 47 + .../src/low/x64-asm-nine/relic_fp_mul_low.s | 68 + .../src/low/x64-asm-nine/relic_fp_rdc_low.c | 111 + .../src/low/x64-asm-nine/relic_fp_rdc_low.s | 62 + .../src/low/x64-asm-nine/relic_fp_sqr_low.c | 48 + .../src/low/x64-asm-nine/relic_fpx_rdc_low.c | 50 + .../src/low/x64-asm-nine/relic_fpx_rdc_low.s | 65 + .../relic/src/low/x64-fiat-381/CMakeLists.txt | 6 + .../src/low/x64-fiat-381/bls12_381_q_64.c | 2920 +++++ .../src/low/x64-fiat-381/relic_fp_add_low.c | 138 + .../src/low/x64-fiat-381/relic_fp_inv_low.c | 78 + .../src/low/x64-fiat-381/relic_fp_mul_low.c | 57 + .../src/low/x64-fiat-381/relic_fp_sqr_low.c | 49 + .../contrib/relic/src/md/blake2-impl.h | 154 +- .../contrib/relic/src/md/blake2.h | 201 +- .../contrib/relic/src/md/blake2_COPYING | 0 .../contrib/relic/src/md/blake2s-ref.c | 328 +- .../contrib/relic/src/md/relic_md_blake2s.c | 29 +- .../contrib/relic/src/md/relic_md_hmac.c | 47 +- .../contrib/relic/src/md/relic_md_kdf.c | 59 +- .../contrib/relic/src/md/relic_md_mgf.c | 51 +- .../contrib/relic/src/md/relic_md_sha1.c | 86 - .../contrib/relic/src/md/relic_md_sha224.c | 32 +- .../contrib/relic/src/md/relic_md_sha256.c | 32 +- .../contrib/relic/src/md/relic_md_sha384.c | 32 +- .../contrib/relic/src/md/relic_md_sha512.c | 32 +- .../contrib/relic/src/md/relic_md_xmd.c | 132 + src/bls-signatures/contrib/relic/src/md/sha.h | 70 +- .../contrib/relic/src/md/sha1.c | 424 - .../contrib/relic/src/md/sha224-256.c | 0 .../contrib/relic/src/md/sha384-512.c | 0 .../contrib/relic/src/md/sha_private.h | 31 + .../contrib/relic/src/mpc/relic_mt_mpc.c | 133 + .../contrib/relic/src/mpc/relic_pc_mpc.c | 363 + .../contrib/relic/src/pc/relic_pc_core.c | 77 + .../contrib/relic/src/pc/relic_pc_exp.c | 198 + .../contrib/relic/src/pc/relic_pc_util.c | 303 +- .../contrib/relic/src/pp/relic_pp_add.c | 506 - .../contrib/relic/src/pp/relic_pp_add_k12.c | 322 + .../contrib/relic/src/pp/relic_pp_add_k2.c | 245 + .../contrib/relic/src/pp/relic_pp_add_k48.c | 240 + .../contrib/relic/src/pp/relic_pp_add_k54.c | 243 + .../contrib/relic/src/pp/relic_pp_add_k8.c | 269 + .../pp/{relic_pp_dbl.c => relic_pp_dbl_k12.c} | 288 +- .../contrib/relic/src/pp/relic_pp_dbl_k2.c | 260 + .../contrib/relic/src/pp/relic_pp_dbl_k48.c | 250 + .../contrib/relic/src/pp/relic_pp_dbl_k54.c | 253 + .../contrib/relic/src/pp/relic_pp_dbl_k8.c | 453 + .../pp/{relic_pp_exp.c => relic_pp_exp_k12.c} | 149 +- .../contrib/relic/src/pp/relic_pp_exp_k2.c | 65 + .../contrib/relic/src/pp/relic_pp_exp_k48.c | 176 + .../contrib/relic/src/pp/relic_pp_exp_k54.c | 267 + .../contrib/relic/src/pp/relic_pp_exp_k8.c | 132 + .../contrib/relic/src/pp/relic_pp_map.c | 1019 +- .../contrib/relic/src/pp/relic_pp_map_k12.c | 601 + .../contrib/relic/src/pp/relic_pp_map_k2.c | 382 + .../contrib/relic/src/pp/relic_pp_map_k48.c | 135 + .../contrib/relic/src/pp/relic_pp_map_k54.c | 192 + .../contrib/relic/src/pp/relic_pp_map_k8.c | 164 + .../contrib/relic/src/pp/relic_pp_norm.c | 75 +- .../contrib/relic/src/rand/relic_rand_call.c | 31 +- .../contrib/relic/src/rand/relic_rand_core.c | 96 +- .../contrib/relic/src/rand/relic_rand_fips.c | 112 - .../{relic_rand_hash.c => relic_rand_hashd.c} | 91 +- .../contrib/relic/src/rand/relic_rand_rdrnd.c | 23 +- .../contrib/relic/src/rand/relic_rand_udev.c | 28 +- .../contrib/relic/src/relic_bench.c | 82 +- .../contrib/relic/src/relic_conf.c | 51 +- .../contrib/relic/src/relic_core.c | 136 +- .../contrib/relic/src/relic_err.c | 29 +- .../contrib/relic/src/relic_pool.c | 83 - .../contrib/relic/src/relic_test.c | 112 +- .../contrib/relic/src/relic_trace.c | 109 - .../contrib/relic/src/relic_util.c | 103 +- .../contrib/relic/src/tmpl/relic_tmpl_map.h | 324 + .../contrib/relic/test/CMakeLists.txt | 11 +- .../contrib/relic/test/test_bn.c | 1369 +- .../contrib/relic/test/test_core.c | 87 +- .../contrib/relic/test/test_cp.c | 1543 ++- .../contrib/relic/test/test_dv.c | 213 +- .../contrib/relic/test/test_eb.c | 660 +- .../contrib/relic/test/test_ec.c | 325 +- .../contrib/relic/test/test_ed.c | 1130 +- .../contrib/relic/test/test_ep.c | 1262 +- .../contrib/relic/test/test_epx.c | 989 +- .../contrib/relic/test/test_err.c | 91 +- .../contrib/relic/test/test_fb.c | 783 +- .../contrib/relic/test/test_fbx.c | 285 +- .../contrib/relic/test/test_fp.c | 665 +- .../contrib/relic/test/test_fpx.c | 7376 ++++++++--- .../contrib/relic/test/test_md.c | 458 +- .../contrib/relic/test/test_mpc.c | 418 + .../contrib/relic/test/test_pc.c | 930 +- .../contrib/relic/test/test_pp.c | 1798 ++- .../contrib/relic/test/test_rand.c | 145 +- .../contrib/relic/tools/relic_gen_label.sh | 150 +- .../python-bindings/CMakeLists.txt | 2 +- src/bls-signatures/src/CMakeLists.txt | 17 +- src/bls-signatures/src/aggregationinfo.cpp | 411 - src/bls-signatures/src/aggregationinfo.hpp | 109 - src/bls-signatures/src/bls.cpp | 306 +- src/bls-signatures/src/bls.hpp | 46 +- src/bls-signatures/src/chaincode.cpp | 23 +- src/bls-signatures/src/chaincode.hpp | 7 +- src/bls-signatures/src/elements.cpp | 424 + src/bls-signatures/src/elements.hpp | 113 + src/bls-signatures/src/extendedprivatekey.cpp | 97 +- src/bls-signatures/src/extendedprivatekey.hpp | 41 +- src/bls-signatures/src/extendedpublickey.cpp | 68 +- src/bls-signatures/src/extendedpublickey.hpp | 39 +- src/bls-signatures/src/hdkeys.hpp | 222 + src/bls-signatures/src/hkdf.hpp | 94 + src/bls-signatures/src/legacy.cpp | 433 + src/bls-signatures/src/legacy.hpp | 31 + src/bls-signatures/src/privatekey.cpp | 340 +- src/bls-signatures/src/privatekey.hpp | 94 +- src/bls-signatures/src/publickey.cpp | 161 - src/bls-signatures/src/publickey.hpp | 83 - src/bls-signatures/src/schemes.cpp | 698 ++ src/bls-signatures/src/schemes.hpp | 273 + src/bls-signatures/src/signature.cpp | 671 - src/bls-signatures/src/signature.hpp | 192 - src/bls-signatures/src/test-bench.cpp | 305 +- src/bls-signatures/src/test-utils.hpp | 15 +- src/bls-signatures/src/test.cpp | 2278 ++-- src/bls-signatures/src/threshold.cpp | 299 + src/bls-signatures/src/threshold.hpp | 29 + src/bls-signatures/src/util.hpp | 89 +- src/bls/bls.cpp | 230 +- src/bls/bls.h | 223 +- src/bls/bls_batchverifier.h | 9 +- src/bls/bls_ies.cpp | 48 +- src/bls/bls_ies.h | 47 +- src/bls/bls_worker.cpp | 18 +- src/bls/bls_worker.h | 10 +- src/init.cpp | 3 +- src/llmq/quorums.cpp | 2 +- src/llmq/quorums_dkgsession.cpp | 12 +- src/llmq/quorums_signing_shares.cpp | 2 +- src/random.h | 3 +- src/test/evo_simplifiedmns_tests.cpp | 11 +- 754 files changed, 87415 insertions(+), 45506 deletions(-) mode change 100755 => 100644 src/bls-signatures/contrib/relic/.gitignore mode change 100755 => 100644 src/bls-signatures/contrib/relic/.travis.yml mode change 100755 => 100644 src/bls-signatures/contrib/relic/CMakeLists.txt delete mode 100755 src/bls-signatures/contrib/relic/COPYING delete mode 100755 src/bls-signatures/contrib/relic/COPYING.LESSER mode change 100755 => 100644 src/bls-signatures/contrib/relic/COPYRIGHT mode change 100755 => 100644 src/bls-signatures/contrib/relic/README.md rename src/bls-signatures/contrib/relic/art/{logo.png => rlc_logo.png} (100%) rename src/bls-signatures/contrib/relic/art/{logo.svg => rlc_logo.svg} (100%) mode change 100755 => 100644 mode change 100755 => 100644 src/bls-signatures/contrib/relic/bench/CMakeLists.txt mode change 100755 => 100644 src/bls-signatures/contrib/relic/bench/bench_bn.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/bench/bench_cp.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/bench/bench_dv.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/bench/bench_eb.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/bench/bench_ec.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/bench/bench_ed.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/bench/bench_ep.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/bench/bench_epx.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/bench/bench_err.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/bench/bench_fb.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/bench/bench_fbx.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/bench/bench_fp.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/bench/bench_fpx.c create mode 100644 src/bls-signatures/contrib/relic/bench/bench_md.c create mode 100644 src/bls-signatures/contrib/relic/bench/bench_mpc.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/bench/bench_pp.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/bench/bench_rand.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/cmake/arch.cmake mode change 100755 => 100644 src/bls-signatures/contrib/relic/cmake/bn.cmake mode change 100755 => 100644 src/bls-signatures/contrib/relic/cmake/cp.cmake mode change 100755 => 100644 src/bls-signatures/contrib/relic/cmake/doxygen.cmake mode change 100755 => 100644 src/bls-signatures/contrib/relic/cmake/eb.cmake mode change 100755 => 100644 src/bls-signatures/contrib/relic/cmake/ec.cmake mode change 100755 => 100644 src/bls-signatures/contrib/relic/cmake/ed.cmake mode change 100755 => 100644 src/bls-signatures/contrib/relic/cmake/ep.cmake create mode 100644 src/bls-signatures/contrib/relic/cmake/err.cmake mode change 100755 => 100644 src/bls-signatures/contrib/relic/cmake/fb.cmake create mode 100644 src/bls-signatures/contrib/relic/cmake/fiat.cmake mode change 100755 => 100644 src/bls-signatures/contrib/relic/cmake/fp.cmake mode change 100755 => 100644 src/bls-signatures/contrib/relic/cmake/fpx.cmake mode change 100755 => 100644 src/bls-signatures/contrib/relic/cmake/gmp.cmake create mode 100644 src/bls-signatures/contrib/relic/cmake/ios.cmake mode change 100755 => 100644 src/bls-signatures/contrib/relic/cmake/md.cmake mode change 100755 => 100644 src/bls-signatures/contrib/relic/cmake/pp.cmake mode change 100755 => 100644 src/bls-signatures/contrib/relic/cmake/rand.cmake mode change 100755 => 100644 src/bls-signatures/contrib/relic/cmake/relic-config.cmake create mode 100644 src/bls-signatures/contrib/relic/cmake/with.cmake create mode 100644 src/bls-signatures/contrib/relic/demo/cert-input/test-bench.c create mode 100644 src/bls-signatures/contrib/relic/demo/general-paillier/test.c create mode 100644 src/bls-signatures/contrib/relic/demo/link-test/test.c create mode 100644 src/bls-signatures/contrib/relic/demo/link-test/test1.c create mode 100644 src/bls-signatures/contrib/relic/demo/link-test/test2.c create mode 100644 src/bls-signatures/contrib/relic/demo/public-stats/csv.c create mode 100644 src/bls-signatures/contrib/relic/demo/public-stats/csv.h create mode 100644 src/bls-signatures/contrib/relic/demo/public-stats/main.c create mode 100644 src/bls-signatures/contrib/relic/demo/tweedledum/main.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/doc/relic.doxygen.in mode change 100755 => 100644 src/bls-signatures/contrib/relic/include/low/relic_bn_low.h mode change 100755 => 100644 src/bls-signatures/contrib/relic/include/low/relic_dv_low.h mode change 100755 => 100644 src/bls-signatures/contrib/relic/include/low/relic_fb_low.h mode change 100755 => 100644 src/bls-signatures/contrib/relic/include/low/relic_fp_low.h mode change 100755 => 100644 src/bls-signatures/contrib/relic/include/low/relic_fpx_low.h mode change 100755 => 100644 src/bls-signatures/contrib/relic/include/relic.h create mode 100644 src/bls-signatures/contrib/relic/include/relic_alloc.h mode change 100755 => 100644 src/bls-signatures/contrib/relic/include/relic_arch.h mode change 100755 => 100644 src/bls-signatures/contrib/relic/include/relic_bc.h mode change 100755 => 100644 src/bls-signatures/contrib/relic/include/relic_bench.h mode change 100755 => 100644 src/bls-signatures/contrib/relic/include/relic_bn.h mode change 100755 => 100644 src/bls-signatures/contrib/relic/include/relic_conf.h.in mode change 100755 => 100644 src/bls-signatures/contrib/relic/include/relic_core.h mode change 100755 => 100644 src/bls-signatures/contrib/relic/include/relic_cp.h mode change 100755 => 100644 src/bls-signatures/contrib/relic/include/relic_dv.h mode change 100755 => 100644 src/bls-signatures/contrib/relic/include/relic_eb.h mode change 100755 => 100644 src/bls-signatures/contrib/relic/include/relic_ec.h mode change 100755 => 100644 src/bls-signatures/contrib/relic/include/relic_ed.h mode change 100755 => 100644 src/bls-signatures/contrib/relic/include/relic_ep.h mode change 100755 => 100644 src/bls-signatures/contrib/relic/include/relic_epx.h mode change 100755 => 100644 src/bls-signatures/contrib/relic/include/relic_err.h mode change 100755 => 100644 src/bls-signatures/contrib/relic/include/relic_fb.h mode change 100755 => 100644 src/bls-signatures/contrib/relic/include/relic_fbx.h mode change 100755 => 100644 src/bls-signatures/contrib/relic/include/relic_fp.h mode change 100755 => 100644 src/bls-signatures/contrib/relic/include/relic_fpx.h mode change 100755 => 100644 src/bls-signatures/contrib/relic/include/relic_label.h mode change 100755 => 100644 src/bls-signatures/contrib/relic/include/relic_md.h create mode 100644 src/bls-signatures/contrib/relic/include/relic_mpc.h create mode 100644 src/bls-signatures/contrib/relic/include/relic_multi.h mode change 100755 => 100644 src/bls-signatures/contrib/relic/include/relic_pc.h delete mode 100755 src/bls-signatures/contrib/relic/include/relic_pool.h mode change 100755 => 100644 src/bls-signatures/contrib/relic/include/relic_pp.h mode change 100755 => 100644 src/bls-signatures/contrib/relic/include/relic_rand.h mode change 100755 => 100644 src/bls-signatures/contrib/relic/include/relic_test.h delete mode 100755 src/bls-signatures/contrib/relic/include/relic_trace.h mode change 100755 => 100644 src/bls-signatures/contrib/relic/include/relic_types.h mode change 100755 => 100644 src/bls-signatures/contrib/relic/include/relic_util.h delete mode 100755 src/bls-signatures/contrib/relic/preset/ardue-pbc-112.sh create mode 100755 src/bls-signatures/contrib/relic/preset/ardue-pbc-bn254.sh delete mode 100755 src/bls-signatures/contrib/relic/preset/arm-pbc-112.sh create mode 100755 src/bls-signatures/contrib/relic/preset/arm-pbc-bn254.sh rename src/bls-signatures/contrib/relic/preset/{armdroid-pbc-112.sh => armdroid-pbc-bn254.sh} (64%) delete mode 100755 src/bls-signatures/contrib/relic/preset/armega-pbc-112.sh create mode 100755 src/bls-signatures/contrib/relic/preset/armega-pbc-bn254.sh rename src/bls-signatures/contrib/relic/preset/{armios-pbc-112.sh => armios-pbc-bn254.sh} (52%) delete mode 100755 src/bls-signatures/contrib/relic/preset/chia-easy-linux.sh delete mode 100755 src/bls-signatures/contrib/relic/preset/chia-easy-mac.sh delete mode 100755 src/bls-signatures/contrib/relic/preset/chia-gmp-linux.sh delete mode 100755 src/bls-signatures/contrib/relic/preset/chia-gmp-mac.sh create mode 100755 src/bls-signatures/contrib/relic/preset/fiat-pbc-bls381.sh create mode 100755 src/bls-signatures/contrib/relic/preset/gmp-ecc-tweedledum.sh create mode 100755 src/bls-signatures/contrib/relic/preset/gmp-paillier-4096.sh delete mode 100755 src/bls-signatures/contrib/relic/preset/gmp-pbc-128.sh create mode 100755 src/bls-signatures/contrib/relic/preset/gmp-pbc-bls381.sh create mode 100755 src/bls-signatures/contrib/relic/preset/gmp-pbc-bn254.sh rename src/bls-signatures/contrib/relic/preset/{gmp-pbc-128-ss.sh => gmp-pbc-ss1536.sh} (51%) delete mode 100755 src/bls-signatures/contrib/relic/preset/msp-pbc-128.sh delete mode 100755 src/bls-signatures/contrib/relic/preset/msp-pbc-80.sh create mode 100755 src/bls-signatures/contrib/relic/preset/msp-pbc-bn158.sh create mode 100755 src/bls-signatures/contrib/relic/preset/msp-pbc-bn254.sh delete mode 100755 src/bls-signatures/contrib/relic/preset/x64-pbc-112.sh delete mode 100755 src/bls-signatures/contrib/relic/preset/x64-pbc-128-b12.sh delete mode 100755 src/bls-signatures/contrib/relic/preset/x64-pbc-128-bn.sh delete mode 100755 src/bls-signatures/contrib/relic/preset/x64-pbc-128.sh delete mode 100755 src/bls-signatures/contrib/relic/preset/x64-pbc-140.sh delete mode 100755 src/bls-signatures/contrib/relic/preset/x64-pbc-160.sh create mode 100755 src/bls-signatures/contrib/relic/preset/x64-pbc-bls12-381.sh create mode 100755 src/bls-signatures/contrib/relic/preset/x64-pbc-bls12-446.sh create mode 100755 src/bls-signatures/contrib/relic/preset/x64-pbc-bls12-455.sh create mode 100755 src/bls-signatures/contrib/relic/preset/x64-pbc-bls12-638.sh create mode 100755 src/bls-signatures/contrib/relic/preset/x64-pbc-bls48-575.sh create mode 100755 src/bls-signatures/contrib/relic/preset/x64-pbc-bn254.sh create mode 100755 src/bls-signatures/contrib/relic/preset/x64-pbc-bn382.sh create mode 100755 src/bls-signatures/contrib/relic/preset/x64-pbc-bn446.sh mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/CMakeLists.txt create mode 100644 src/bls-signatures/contrib/relic/src/arch/lzcnt.inc mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/arch/relic_arch_arm.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/arch/relic_arch_avr.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/arch/relic_arch_msp.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/arch/relic_arch_none.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/arch/relic_arch_x64.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/arch/relic_arch_x86.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/bc/relic_bc_aes.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/bc/rijndael-alg-fst.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/bc/rijndael-alg-fst.h mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/bc/rijndael-api-fst.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/bc/rijndael-api-fst.h mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/bn/relic_bn_add.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/bn/relic_bn_cmp.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/bn/relic_bn_div.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/bn/relic_bn_factor.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/bn/relic_bn_gcd.c create mode 100644 src/bls-signatures/contrib/relic/src/bn/relic_bn_inv.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/bn/relic_bn_lcm.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/bn/relic_bn_mem.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/bn/relic_bn_mod.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/bn/relic_bn_mul.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/bn/relic_bn_mxp.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/bn/relic_bn_prime.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/bn/relic_bn_rec.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/bn/relic_bn_shift.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/bn/relic_bn_smb.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/bn/relic_bn_sqr.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/bn/relic_bn_srt.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/bn/relic_bn_util.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/cp/relic_cp_bbs.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/cp/relic_cp_bdpe.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/cp/relic_cp_bgn.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/cp/relic_cp_bls.c create mode 100644 src/bls-signatures/contrib/relic/src/cp/relic_cp_cls.c create mode 100644 src/bls-signatures/contrib/relic/src/cp/relic_cp_cmlhs.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/cp/relic_cp_ecdsa.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/cp/relic_cp_ecies.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/cp/relic_cp_ecmqv.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/cp/relic_cp_ecss.c create mode 100644 src/bls-signatures/contrib/relic/src/cp/relic_cp_elgamal.c create mode 100644 src/bls-signatures/contrib/relic/src/cp/relic_cp_ghpe.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/cp/relic_cp_ibe.c create mode 100644 src/bls-signatures/contrib/relic/src/cp/relic_cp_mklhs.c create mode 100644 src/bls-signatures/contrib/relic/src/cp/relic_cp_mpss.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/cp/relic_cp_phpe.c create mode 100644 src/bls-signatures/contrib/relic/src/cp/relic_cp_pss.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/cp/relic_cp_rabin.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/cp/relic_cp_rsa.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/cp/relic_cp_sokaka.c create mode 100644 src/bls-signatures/contrib/relic/src/cp/relic_cp_vbnn.c delete mode 100755 src/bls-signatures/contrib/relic/src/cp/relic_cp_vbnn_ibs.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/cp/relic_cp_zss.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/dv/relic_dv_mem.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/dv/relic_dv_util.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/eb/relic_eb_add.c create mode 100644 src/bls-signatures/contrib/relic/src/eb/relic_eb_cmp.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/eb/relic_eb_curve.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/eb/relic_eb_dbl.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/eb/relic_eb_frb.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/eb/relic_eb_hlv.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/eb/relic_eb_map.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/eb/relic_eb_mul.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/eb/relic_eb_mul_fix.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/eb/relic_eb_mul_sim.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/eb/relic_eb_neg.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/eb/relic_eb_norm.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/eb/relic_eb_param.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/eb/relic_eb_pck.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/eb/relic_eb_util.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/ed/relic_ed_add.c create mode 100644 src/bls-signatures/contrib/relic/src/ed/relic_ed_cmp.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/ed/relic_ed_curve.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/ed/relic_ed_dbl.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/ed/relic_ed_map.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/ed/relic_ed_mul.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/ed/relic_ed_mul_fix.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/ed/relic_ed_mul_sim.c create mode 100644 src/bls-signatures/contrib/relic/src/ed/relic_ed_neg.c create mode 100644 src/bls-signatures/contrib/relic/src/ed/relic_ed_norm.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/ed/relic_ed_param.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/ed/relic_ed_pck.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/ed/relic_ed_util.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/ep/relic_ep_add.c create mode 100644 src/bls-signatures/contrib/relic/src/ep/relic_ep_cmp.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/ep/relic_ep_curve.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/ep/relic_ep_dbl.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/ep/relic_ep_map.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/ep/relic_ep_mul.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/ep/relic_ep_mul_fix.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/ep/relic_ep_mul_sim.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/ep/relic_ep_neg.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/ep/relic_ep_norm.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/ep/relic_ep_param.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/ep/relic_ep_pck.c create mode 100644 src/bls-signatures/contrib/relic/src/ep/relic_ep_psi.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/ep/relic_ep_util.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/epx/relic_ep2_add.c create mode 100644 src/bls-signatures/contrib/relic/src/epx/relic_ep2_cmp.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/epx/relic_ep2_curve.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/epx/relic_ep2_dbl.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/epx/relic_ep2_frb.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/epx/relic_ep2_map.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/epx/relic_ep2_mul.c create mode 100644 src/bls-signatures/contrib/relic/src/epx/relic_ep2_mul_cof.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/epx/relic_ep2_mul_sim.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/epx/relic_ep2_neg.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/epx/relic_ep2_norm.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/epx/relic_ep2_pck.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/epx/relic_ep2_util.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/fb/relic_fb_add.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/fb/relic_fb_cmp.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/fb/relic_fb_exp.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/fb/relic_fb_inv.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/fb/relic_fb_itr.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/fb/relic_fb_mul.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/fb/relic_fb_param.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/fb/relic_fb_poly.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/fb/relic_fb_rdc.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/fb/relic_fb_shift.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/fb/relic_fb_slv.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/fb/relic_fb_sqr.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/fb/relic_fb_srt.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/fb/relic_fb_trc.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/fb/relic_fb_util.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/fbx/relic_fb2_inv.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/fbx/relic_fb2_mul.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/fbx/relic_fb2_slv.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/fbx/relic_fb2_sqr.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/fp/relic_fp_add.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/fp/relic_fp_cmp.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/fp/relic_fp_exp.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/fp/relic_fp_inv.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/fp/relic_fp_mul.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/fp/relic_fp_param.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/fp/relic_fp_prime.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/fp/relic_fp_rdc.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/fp/relic_fp_shift.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/fp/relic_fp_sqr.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/fp/relic_fp_srt.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/fp/relic_fp_util.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/fpx/relic_fp12_mul.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/fpx/relic_fp12_sqr.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/fpx/relic_fp18_mul.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/fpx/relic_fp18_sqr.c create mode 100644 src/bls-signatures/contrib/relic/src/fpx/relic_fp24_mul.c create mode 100644 src/bls-signatures/contrib/relic/src/fpx/relic_fp24_sqr.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/fpx/relic_fp2_mul.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/fpx/relic_fp2_sqr.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/fpx/relic_fp3_mul.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/fpx/relic_fp3_sqr.c create mode 100644 src/bls-signatures/contrib/relic/src/fpx/relic_fp48_mul.c create mode 100644 src/bls-signatures/contrib/relic/src/fpx/relic_fp48_sqr.c create mode 100644 src/bls-signatures/contrib/relic/src/fpx/relic_fp4_mul.c create mode 100644 src/bls-signatures/contrib/relic/src/fpx/relic_fp4_sqr.c create mode 100644 src/bls-signatures/contrib/relic/src/fpx/relic_fp54_mul.c create mode 100644 src/bls-signatures/contrib/relic/src/fpx/relic_fp54_sqr.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/fpx/relic_fp6_mul.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/fpx/relic_fp6_sqr.c create mode 100644 src/bls-signatures/contrib/relic/src/fpx/relic_fp8_mul.c create mode 100644 src/bls-signatures/contrib/relic/src/fpx/relic_fp8_sqr.c create mode 100644 src/bls-signatures/contrib/relic/src/fpx/relic_fp9_mul.c create mode 100644 src/bls-signatures/contrib/relic/src/fpx/relic_fp9_sqr.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/fpx/relic_fpx_add.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/fpx/relic_fpx_cmp.c create mode 100644 src/bls-signatures/contrib/relic/src/fpx/relic_fpx_cyc.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/fpx/relic_fpx_exp.c create mode 100644 src/bls-signatures/contrib/relic/src/fpx/relic_fpx_field.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/fpx/relic_fpx_frb.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/fpx/relic_fpx_inv.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/fpx/relic_fpx_pck.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/fpx/relic_fpx_rdc.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/fpx/relic_fpx_srt.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/fpx/relic_fpx_util.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/arm-asm-254/relic_fp_add_low.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/arm-asm-254/relic_fp_add_low.s delete mode 100755 src/bls-signatures/contrib/relic/src/low/arm-asm-254/relic_fp_cmp_low.c delete mode 100755 src/bls-signatures/contrib/relic/src/low/arm-asm-254/relic_fp_cmp_low.s mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/arm-asm-254/relic_fp_mul_low.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/arm-asm-254/relic_fp_mul_low.s mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/arm-asm-254/relic_fp_rdc_low.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/arm-asm-254/relic_fp_rdc_low.s mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/avr-asm-158/relic_fp_add_low.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/avr-asm-158/relic_fp_mul_low.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/avr-asm-158/relic_fp_rdc_low.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/avr-asm-158/relic_fp_sqr_low.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/curve2251-sse/CMakeLists.txt delete mode 100755 src/bls-signatures/contrib/relic/src/low/curve2251-sse/relic_bn_div_low.c delete mode 100755 src/bls-signatures/contrib/relic/src/low/curve2251-sse/relic_bn_mod_low.c delete mode 100755 src/bls-signatures/contrib/relic/src/low/curve2251-sse/relic_bn_mul_low.c delete mode 100755 src/bls-signatures/contrib/relic/src/low/curve2251-sse/relic_bn_sqr_low.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/curve2251-sse/relic_fb_itr_low.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/curve2251-sse/relic_fb_trc_low.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/easy/relic_bn_add_low.c delete mode 100755 src/bls-signatures/contrib/relic/src/low/easy/relic_bn_cmp_low.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/easy/relic_bn_div_low.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/easy/relic_bn_mod_low.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/easy/relic_bn_mul_low.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/easy/relic_bn_shift_low.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/easy/relic_bn_sqr_low.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/easy/relic_fb_add_low.c delete mode 100755 src/bls-signatures/contrib/relic/src/low/easy/relic_fb_cmp_low.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/easy/relic_fb_inv_low.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/easy/relic_fb_itr_low.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/easy/relic_fb_mul_low.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/easy/relic_fb_rdc_low.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/easy/relic_fb_shift_low.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/easy/relic_fb_slv_low.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/easy/relic_fb_sqr_low.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/easy/relic_fb_srt_low.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/easy/relic_fb_trc_low.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/easy/relic_fp_add_low.c delete mode 100755 src/bls-signatures/contrib/relic/src/low/easy/relic_fp_cmp_low.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/easy/relic_fp_inv_low.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/easy/relic_fp_mul_low.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/easy/relic_fp_rdc_low.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/easy/relic_fp_shift_low.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/easy/relic_fp_sqr_low.c create mode 100644 src/bls-signatures/contrib/relic/src/low/fiat/CMakeLists.txt create mode 100644 src/bls-signatures/contrib/relic/src/low/fiat/relic_fp_add_low.tmpl create mode 100644 src/bls-signatures/contrib/relic/src/low/fiat/relic_fp_mul_low.tmpl create mode 100644 src/bls-signatures/contrib/relic/src/low/fiat/relic_fp_sqr_low.tmpl mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/gmp-sec/relic_bn_add_low.c delete mode 100755 src/bls-signatures/contrib/relic/src/low/gmp-sec/relic_bn_cmp_low.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/gmp-sec/relic_bn_div_low.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/gmp-sec/relic_bn_mod_low.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/gmp-sec/relic_bn_mul_low.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/gmp-sec/relic_bn_shift_low.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/gmp-sec/relic_bn_sqr_low.c create mode 100644 src/bls-signatures/contrib/relic/src/low/gmp-sec/relic_fp_add_low.c create mode 100644 src/bls-signatures/contrib/relic/src/low/gmp-sec/relic_fp_inv_low.c create mode 100644 src/bls-signatures/contrib/relic/src/low/gmp-sec/relic_fp_mul_low.c create mode 100644 src/bls-signatures/contrib/relic/src/low/gmp-sec/relic_fp_rdc_low.c create mode 100644 src/bls-signatures/contrib/relic/src/low/gmp-sec/relic_fp_shift_low.c create mode 100644 src/bls-signatures/contrib/relic/src/low/gmp-sec/relic_fp_sqr_low.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/gmp/relic_bn_add_low.c delete mode 100755 src/bls-signatures/contrib/relic/src/low/gmp/relic_bn_cmp_low.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/gmp/relic_bn_div_low.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/gmp/relic_bn_mod_low.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/gmp/relic_bn_mul_low.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/gmp/relic_bn_shift_low.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/gmp/relic_bn_sqr_low.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/gmp/relic_fb_add_low.c delete mode 100755 src/bls-signatures/contrib/relic/src/low/gmp/relic_fb_cmp_low.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/gmp/relic_fb_shift_low.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/gmp/relic_fp_add_low.c delete mode 100755 src/bls-signatures/contrib/relic/src/low/gmp/relic_fp_cmp_low.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/gmp/relic_fp_inv_low.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/gmp/relic_fp_mul_low.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/gmp/relic_fp_rdc_low.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/gmp/relic_fp_shift_low.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/gmp/relic_fp_sqr_low.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/msp-asm/fb_mul_163_ld.inc mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/msp-asm/fb_mul_271_ld.inc mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/msp-asm/fb_mul_271_ld_k2.inc mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/msp-asm/fb_mul_283_ld.inc mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/msp-asm/fb_mul_353_ld_k2.inc mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/msp-asm/fb_mul_353_ld_k3.inc mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/msp-asm/fb_srt_271_penta.inc mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/msp-asm/fb_srt_353_trino.inc mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/msp-asm/fp_mul32_160_comba.inc mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/msp-asm/fp_mul32_256_comba.inc mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/msp-asm/fp_mul_128_comba.inc mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/msp-asm/fp_mul_160_comba.inc mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/msp-asm/fp_rdc32_160_montgomery_sparse.inc mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/msp-asm/fp_rdc32_256_montgomery_sparse.inc mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/msp-asm/fp_rdc_160_montgomery_sparse.inc mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/msp-asm/fp_rdc_256_montgomery_sparse.inc mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/msp-asm/fp_rdc_256p1.inc mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/msp-asm/fp_sqr32_160_comba.inc mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/msp-asm/fp_sqr32_256_comba.inc mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/msp-asm/fp_sqr_128_comba.inc mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/msp-asm/fp_sqr_160_comba.inc mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/msp-asm/relic_bn_add_low.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/msp-asm/relic_bn_add_low.s mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/msp-asm/relic_bn_shift_low.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/msp-asm/relic_bn_shift_low.s mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/msp-asm/relic_fb_add_low.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/msp-asm/relic_fb_add_low.s mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/msp-asm/relic_fb_mul_low.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/msp-asm/relic_fb_mul_low.s mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/msp-asm/relic_fb_mul_low_163.s mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/msp-asm/relic_fb_mul_low_271.s mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/msp-asm/relic_fb_mul_low_283.s mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/msp-asm/relic_fb_mul_low_353.s mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/msp-asm/relic_fb_mul_low_353_k3.s mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/msp-asm/relic_fb_rdc_low.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/msp-asm/relic_fb_rdc_low.s mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/msp-asm/relic_fb_rdc_low_163.s mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/msp-asm/relic_fb_rdc_low_271.s mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/msp-asm/relic_fb_rdc_low_283.s mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/msp-asm/relic_fb_rdc_low_353.s mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/msp-asm/relic_fb_shift_low.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/msp-asm/relic_fb_shift_low.s mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/msp-asm/relic_fb_sqr_low.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/msp-asm/relic_fb_sqr_low.s mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/msp-asm/relic_fb_srt_low.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/msp-asm/relic_fb_srt_low.s mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/msp-asm/relic_fp_add_low.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/msp-asm/relic_fp_add_low.s delete mode 100755 src/bls-signatures/contrib/relic/src/low/msp-asm/relic_fp_cmp_low.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/msp-asm/relic_fp_inv_low.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/msp-asm/relic_fp_mul_low.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/msp-asm/relic_fp_mul_low.s mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/msp-asm/relic_fp_mul_low_160.s mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/msp-asm/relic_fp_mul_low_256.s mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/msp-asm/relic_fp_rdc_low.s mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/msp-asm/relic_fp_rdc_low_160k1.s mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/msp-asm/relic_fp_rdc_low_160p1.s mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/msp-asm/relic_fp_rdc_low_256k1.s mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/msp-asm/relic_fp_rdc_low_256p1.s mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/msp-asm/relic_fp_sqr_low.s mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/msp-asm/relic_fp_sqr_low_160.s mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/msp-asm/relic_fp_sqr_low_256.s mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/msp-asm/relic_fpx_add_low.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/x64-asm-254/relic_fp_inv_low.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/x64-asm-254/relic_fp_inv_low.s mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/x64-asm-382/macro.s delete mode 100755 src/bls-signatures/contrib/relic/src/low/x64-asm-382/relic_bn_add_low.c delete mode 100755 src/bls-signatures/contrib/relic/src/low/x64-asm-382/relic_bn_cmp_low.c delete mode 100755 src/bls-signatures/contrib/relic/src/low/x64-asm-382/relic_bn_div_low.c delete mode 100755 src/bls-signatures/contrib/relic/src/low/x64-asm-382/relic_bn_mod_low.c delete mode 100755 src/bls-signatures/contrib/relic/src/low/x64-asm-382/relic_bn_mul_low.c delete mode 100755 src/bls-signatures/contrib/relic/src/low/x64-asm-382/relic_bn_shift_low.c delete mode 100755 src/bls-signatures/contrib/relic/src/low/x64-asm-382/relic_bn_sqr_low.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/x64-asm-382/relic_fp_add_low.s delete mode 100755 src/bls-signatures/contrib/relic/src/low/x64-asm-382/relic_fp_cmp_low.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/x64-asm-382/relic_fp_inv_low.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/x64-asm-382/relic_fp_mul_low.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/x64-asm-382/relic_fp_mul_low.s mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/x64-asm-382/relic_fp_rdc_low.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/x64-asm-382/relic_fp_rdc_low.s mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/x64-asm-382/relic_fp_shift_low.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/x64-asm-382/relic_fp_shift_low.s mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/x64-asm-382/relic_fp_sqr_low.c create mode 100644 src/bls-signatures/contrib/relic/src/low/x64-asm-446/CMakeLists.txt create mode 100644 src/bls-signatures/contrib/relic/src/low/x64-asm-446/macro.s create mode 100644 src/bls-signatures/contrib/relic/src/low/x64-asm-446/relic_fp_add_low.s create mode 100644 src/bls-signatures/contrib/relic/src/low/x64-asm-446/relic_fp_inv_low.c create mode 100644 src/bls-signatures/contrib/relic/src/low/x64-asm-446/relic_fp_inv_low.s create mode 100644 src/bls-signatures/contrib/relic/src/low/x64-asm-446/relic_fp_mul_low.c create mode 100644 src/bls-signatures/contrib/relic/src/low/x64-asm-446/relic_fp_mul_low.s create mode 100644 src/bls-signatures/contrib/relic/src/low/x64-asm-446/relic_fp_rdc_low.c create mode 100644 src/bls-signatures/contrib/relic/src/low/x64-asm-446/relic_fp_rdc_low.s create mode 100644 src/bls-signatures/contrib/relic/src/low/x64-asm-446/relic_fp_shift_low.c create mode 100644 src/bls-signatures/contrib/relic/src/low/x64-asm-446/relic_fp_shift_low.s create mode 100644 src/bls-signatures/contrib/relic/src/low/x64-asm-446/relic_fp_sqr_low.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/x64-asm-455/macro.s delete mode 100755 src/bls-signatures/contrib/relic/src/low/x64-asm-455/relic_bn_add_low.c delete mode 100755 src/bls-signatures/contrib/relic/src/low/x64-asm-455/relic_bn_cmp_low.c delete mode 100755 src/bls-signatures/contrib/relic/src/low/x64-asm-455/relic_bn_div_low.c delete mode 100755 src/bls-signatures/contrib/relic/src/low/x64-asm-455/relic_bn_mod_low.c delete mode 100755 src/bls-signatures/contrib/relic/src/low/x64-asm-455/relic_bn_mul_low.c delete mode 100755 src/bls-signatures/contrib/relic/src/low/x64-asm-455/relic_bn_shift_low.c delete mode 100755 src/bls-signatures/contrib/relic/src/low/x64-asm-455/relic_bn_sqr_low.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/x64-asm-455/relic_fp_add_low.s delete mode 100755 src/bls-signatures/contrib/relic/src/low/x64-asm-455/relic_fp_cmp_low.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/x64-asm-455/relic_fp_inv_low.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/x64-asm-455/relic_fp_inv_low.s mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/x64-asm-455/relic_fp_mul_low.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/x64-asm-455/relic_fp_mul_low.s mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/x64-asm-455/relic_fp_rdc_low.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/x64-asm-455/relic_fp_rdc_low.s mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/x64-asm-455/relic_fp_shift_low.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/x64-asm-455/relic_fp_shift_low.s mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/x64-asm-455/relic_fp_sqr_low.c create mode 100644 src/bls-signatures/contrib/relic/src/low/x64-asm-511/CMakeLists.txt create mode 100644 src/bls-signatures/contrib/relic/src/low/x64-asm-511/macro.s create mode 100644 src/bls-signatures/contrib/relic/src/low/x64-asm-511/relic_fp_add_low.s create mode 100644 src/bls-signatures/contrib/relic/src/low/x64-asm-511/relic_fp_inv_low.c create mode 100644 src/bls-signatures/contrib/relic/src/low/x64-asm-511/relic_fp_inv_low.s create mode 100644 src/bls-signatures/contrib/relic/src/low/x64-asm-511/relic_fp_mul_low.c create mode 100644 src/bls-signatures/contrib/relic/src/low/x64-asm-511/relic_fp_mul_low.s create mode 100644 src/bls-signatures/contrib/relic/src/low/x64-asm-511/relic_fp_rdc_low.c create mode 100644 src/bls-signatures/contrib/relic/src/low/x64-asm-511/relic_fp_rdc_low.s create mode 100644 src/bls-signatures/contrib/relic/src/low/x64-asm-511/relic_fp_shift_low.c create mode 100644 src/bls-signatures/contrib/relic/src/low/x64-asm-511/relic_fp_shift_low.s create mode 100644 src/bls-signatures/contrib/relic/src/low/x64-asm-511/relic_fp_sqr_low.c create mode 100644 src/bls-signatures/contrib/relic/src/low/x64-asm-544/CMakeLists.txt create mode 100644 src/bls-signatures/contrib/relic/src/low/x64-asm-544/macro.s create mode 100644 src/bls-signatures/contrib/relic/src/low/x64-asm-544/relic_fp_add_low.s create mode 100644 src/bls-signatures/contrib/relic/src/low/x64-asm-544/relic_fp_mul_low.c create mode 100644 src/bls-signatures/contrib/relic/src/low/x64-asm-544/relic_fp_mul_low.s create mode 100644 src/bls-signatures/contrib/relic/src/low/x64-asm-544/relic_fp_rdc_low.c create mode 100644 src/bls-signatures/contrib/relic/src/low/x64-asm-544/relic_fp_rdc_low.s create mode 100644 src/bls-signatures/contrib/relic/src/low/x64-asm-544/relic_fp_sqr_low.c create mode 100644 src/bls-signatures/contrib/relic/src/low/x64-asm-544/relic_fpx_add_low.c create mode 100644 src/bls-signatures/contrib/relic/src/low/x64-asm-544/relic_fpx_mul_low.c create mode 100644 src/bls-signatures/contrib/relic/src/low/x64-asm-544/relic_fpx_rdc_low.c create mode 100644 src/bls-signatures/contrib/relic/src/low/x64-asm-544/relic_fpx_rdc_low.s create mode 100644 src/bls-signatures/contrib/relic/src/low/x64-asm-544/relic_fpx_sqr_low.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/x64-asm-638/CMakeLists.txt mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/x64-asm-638/macro.s mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/x64-asm-638/relic_fp_add_low.s delete mode 100755 src/bls-signatures/contrib/relic/src/low/x64-asm-638/relic_fp_cmp_low.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/x64-asm-638/relic_fp_mul_low.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/x64-asm-638/relic_fp_mul_low.s mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/x64-asm-638/relic_fp_rdc_low.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/x64-asm-638/relic_fp_rdc_low.s delete mode 100755 src/bls-signatures/contrib/relic/src/low/x64-asm-638/relic_fp_shift_low.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/x64-asm-638/relic_fp_sqr_low.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/low/x64-asm-638/relic_fpx_rdc_low.s create mode 100644 src/bls-signatures/contrib/relic/src/low/x64-asm-nine/CMakeLists.txt create mode 100644 src/bls-signatures/contrib/relic/src/low/x64-asm-nine/macro.s create mode 100644 src/bls-signatures/contrib/relic/src/low/x64-asm-nine/relic_fp_add_low.s create mode 100644 src/bls-signatures/contrib/relic/src/low/x64-asm-nine/relic_fp_mul_low.c create mode 100644 src/bls-signatures/contrib/relic/src/low/x64-asm-nine/relic_fp_mul_low.s create mode 100644 src/bls-signatures/contrib/relic/src/low/x64-asm-nine/relic_fp_rdc_low.c create mode 100644 src/bls-signatures/contrib/relic/src/low/x64-asm-nine/relic_fp_rdc_low.s create mode 100644 src/bls-signatures/contrib/relic/src/low/x64-asm-nine/relic_fp_sqr_low.c create mode 100644 src/bls-signatures/contrib/relic/src/low/x64-asm-nine/relic_fpx_rdc_low.c create mode 100644 src/bls-signatures/contrib/relic/src/low/x64-asm-nine/relic_fpx_rdc_low.s create mode 100644 src/bls-signatures/contrib/relic/src/low/x64-fiat-381/CMakeLists.txt create mode 100644 src/bls-signatures/contrib/relic/src/low/x64-fiat-381/bls12_381_q_64.c create mode 100644 src/bls-signatures/contrib/relic/src/low/x64-fiat-381/relic_fp_add_low.c create mode 100644 src/bls-signatures/contrib/relic/src/low/x64-fiat-381/relic_fp_inv_low.c create mode 100644 src/bls-signatures/contrib/relic/src/low/x64-fiat-381/relic_fp_mul_low.c create mode 100644 src/bls-signatures/contrib/relic/src/low/x64-fiat-381/relic_fp_sqr_low.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/md/blake2-impl.h mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/md/blake2.h mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/md/blake2_COPYING mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/md/blake2s-ref.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/md/relic_md_blake2s.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/md/relic_md_hmac.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/md/relic_md_kdf.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/md/relic_md_mgf.c delete mode 100755 src/bls-signatures/contrib/relic/src/md/relic_md_sha1.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/md/relic_md_sha224.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/md/relic_md_sha256.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/md/relic_md_sha384.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/md/relic_md_sha512.c create mode 100644 src/bls-signatures/contrib/relic/src/md/relic_md_xmd.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/md/sha.h delete mode 100755 src/bls-signatures/contrib/relic/src/md/sha1.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/md/sha224-256.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/md/sha384-512.c create mode 100644 src/bls-signatures/contrib/relic/src/md/sha_private.h create mode 100644 src/bls-signatures/contrib/relic/src/mpc/relic_mt_mpc.c create mode 100644 src/bls-signatures/contrib/relic/src/mpc/relic_pc_mpc.c create mode 100644 src/bls-signatures/contrib/relic/src/pc/relic_pc_core.c create mode 100644 src/bls-signatures/contrib/relic/src/pc/relic_pc_exp.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/pc/relic_pc_util.c delete mode 100755 src/bls-signatures/contrib/relic/src/pp/relic_pp_add.c create mode 100644 src/bls-signatures/contrib/relic/src/pp/relic_pp_add_k12.c create mode 100644 src/bls-signatures/contrib/relic/src/pp/relic_pp_add_k2.c create mode 100644 src/bls-signatures/contrib/relic/src/pp/relic_pp_add_k48.c create mode 100644 src/bls-signatures/contrib/relic/src/pp/relic_pp_add_k54.c create mode 100644 src/bls-signatures/contrib/relic/src/pp/relic_pp_add_k8.c rename src/bls-signatures/contrib/relic/src/pp/{relic_pp_dbl.c => relic_pp_dbl_k12.c} (63%) mode change 100755 => 100644 create mode 100644 src/bls-signatures/contrib/relic/src/pp/relic_pp_dbl_k2.c create mode 100644 src/bls-signatures/contrib/relic/src/pp/relic_pp_dbl_k48.c create mode 100644 src/bls-signatures/contrib/relic/src/pp/relic_pp_dbl_k54.c create mode 100644 src/bls-signatures/contrib/relic/src/pp/relic_pp_dbl_k8.c rename src/bls-signatures/contrib/relic/src/pp/{relic_pp_exp.c => relic_pp_exp_k12.c} (59%) mode change 100755 => 100644 create mode 100644 src/bls-signatures/contrib/relic/src/pp/relic_pp_exp_k2.c create mode 100644 src/bls-signatures/contrib/relic/src/pp/relic_pp_exp_k48.c create mode 100644 src/bls-signatures/contrib/relic/src/pp/relic_pp_exp_k54.c create mode 100644 src/bls-signatures/contrib/relic/src/pp/relic_pp_exp_k8.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/pp/relic_pp_map.c create mode 100644 src/bls-signatures/contrib/relic/src/pp/relic_pp_map_k12.c create mode 100644 src/bls-signatures/contrib/relic/src/pp/relic_pp_map_k2.c create mode 100644 src/bls-signatures/contrib/relic/src/pp/relic_pp_map_k48.c create mode 100644 src/bls-signatures/contrib/relic/src/pp/relic_pp_map_k54.c create mode 100644 src/bls-signatures/contrib/relic/src/pp/relic_pp_map_k8.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/pp/relic_pp_norm.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/rand/relic_rand_call.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/rand/relic_rand_core.c delete mode 100755 src/bls-signatures/contrib/relic/src/rand/relic_rand_fips.c rename src/bls-signatures/contrib/relic/src/rand/{relic_rand_hash.c => relic_rand_hashd.c} (66%) mode change 100755 => 100644 mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/rand/relic_rand_rdrnd.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/rand/relic_rand_udev.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/relic_bench.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/relic_conf.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/relic_core.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/relic_err.c delete mode 100755 src/bls-signatures/contrib/relic/src/relic_pool.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/relic_test.c delete mode 100755 src/bls-signatures/contrib/relic/src/relic_trace.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/src/relic_util.c create mode 100644 src/bls-signatures/contrib/relic/src/tmpl/relic_tmpl_map.h mode change 100755 => 100644 src/bls-signatures/contrib/relic/test/test_bn.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/test/test_core.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/test/test_cp.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/test/test_dv.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/test/test_eb.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/test/test_ec.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/test/test_ed.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/test/test_ep.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/test/test_epx.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/test/test_err.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/test/test_fb.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/test/test_fbx.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/test/test_fp.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/test/test_fpx.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/test/test_md.c create mode 100644 src/bls-signatures/contrib/relic/test/test_mpc.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/test/test_pc.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/test/test_pp.c mode change 100755 => 100644 src/bls-signatures/contrib/relic/test/test_rand.c delete mode 100644 src/bls-signatures/src/aggregationinfo.cpp delete mode 100644 src/bls-signatures/src/aggregationinfo.hpp create mode 100644 src/bls-signatures/src/elements.cpp create mode 100644 src/bls-signatures/src/elements.hpp create mode 100644 src/bls-signatures/src/hdkeys.hpp create mode 100644 src/bls-signatures/src/hkdf.hpp create mode 100644 src/bls-signatures/src/legacy.cpp create mode 100644 src/bls-signatures/src/legacy.hpp delete mode 100644 src/bls-signatures/src/publickey.cpp delete mode 100644 src/bls-signatures/src/publickey.hpp create mode 100644 src/bls-signatures/src/schemes.cpp create mode 100644 src/bls-signatures/src/schemes.hpp delete mode 100644 src/bls-signatures/src/signature.cpp delete mode 100644 src/bls-signatures/src/signature.hpp create mode 100644 src/bls-signatures/src/threshold.cpp create mode 100644 src/bls-signatures/src/threshold.hpp diff --git a/src/bls-signatures/CMakeLists.txt b/src/bls-signatures/CMakeLists.txt index 5a4201c335..306b96edfd 100644 --- a/src/bls-signatures/CMakeLists.txt +++ b/src/bls-signatures/CMakeLists.txt @@ -1,5 +1,5 @@ CMAKE_MINIMUM_REQUIRED(VERSION 3.1.0 FATAL_ERROR) -set(CMAKE_CXX_STANDARD 11) +set(CMAKE_CXX_STANDARD 17) set(CMAKE_POSITION_INDEPENDENT_CODE ON) IF(NOT CMAKE_BUILD_TYPE) diff --git a/src/bls-signatures/configure-cmake.sh b/src/bls-signatures/configure-cmake.sh index 71910f2832..5d41cf9c25 100755 --- a/src/bls-signatures/configure-cmake.sh +++ b/src/bls-signatures/configure-cmake.sh @@ -14,7 +14,7 @@ esac if test "x$enable_tests" == "xyes" then - cmake_osflags="$cmake_osflags -DENABLE_TESTS=1" + cmake_osflags="$cmake_osflags -DENABLE_TESTS=0" fi cmake -Bbuild -H. -DCMAKE_INSTALL_PREFIX=$depends_prefix -DWSIZE=64 -DMULTI=PTHREAD -DARITH=gmp $cmake_osflags diff --git a/src/bls-signatures/contrib/catch/catch.hpp b/src/bls-signatures/contrib/catch/catch.hpp index aacc5601f3..0384171ae4 100644 --- a/src/bls-signatures/contrib/catch/catch.hpp +++ b/src/bls-signatures/contrib/catch/catch.hpp @@ -1,9 +1,9 @@ /* - * Catch v2.2.3 - * Generated: 2018-06-06 23:11:57.601416 + * Catch v2.13.4 + * Generated: 2020-12-29 14:48:00.116107 * ---------------------------------------------------------- * This file has been merged from multiple headers. Please don't edit it directly - * Copyright (c) 2018 Two Blue Cubes Ltd. All rights reserved. + * Copyright (c) 2020 Two Blue Cubes Ltd. All rights reserved. * * Distributed under the Boost Software License, Version 1.0. (See accompanying * file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) @@ -14,8 +14,8 @@ #define CATCH_VERSION_MAJOR 2 -#define CATCH_VERSION_MINOR 2 -#define CATCH_VERSION_PATCH 3 +#define CATCH_VERSION_MINOR 13 +#define CATCH_VERSION_PATCH 4 #ifdef __clang__ # pragma clang system_header @@ -30,14 +30,17 @@ # pragma warning(push) # pragma warning(disable: 161 1682) # else // __ICC -# pragma clang diagnostic ignored "-Wunused-variable" # pragma clang diagnostic push # pragma clang diagnostic ignored "-Wpadded" # pragma clang diagnostic ignored "-Wswitch-enum" # pragma clang diagnostic ignored "-Wcovered-switch-default" # endif #elif defined __GNUC__ -# pragma GCC diagnostic ignored "-Wparentheses" + // Because REQUIREs trigger GCC's -Wparentheses, and because still + // supported version of g++ have only buggy support for _Pragmas, + // Wparentheses have to be suppressed globally. +# pragma GCC diagnostic ignored "-Wparentheses" // See #674 for details + # pragma GCC diagnostic push # pragma GCC diagnostic ignored "-Wunused-variable" # pragma GCC diagnostic ignored "-Wpadded" @@ -55,7 +58,9 @@ # if defined(CATCH_CONFIG_DISABLE_MATCHERS) # undef CATCH_CONFIG_DISABLE_MATCHERS # endif -# define CATCH_CONFIG_ENABLE_CHRONO_STRINGMAKER +# if !defined(CATCH_CONFIG_ENABLE_CHRONO_STRINGMAKER) +# define CATCH_CONFIG_ENABLE_CHRONO_STRINGMAKER +# endif #endif #if !defined(CATCH_CONFIG_IMPL_ONLY) @@ -104,6 +109,7 @@ namespace Catch { // CATCH_CONFIG_COUNTER : is the __COUNTER__ macro supported? // CATCH_CONFIG_WINDOWS_SEH : is Windows SEH supported? // CATCH_CONFIG_POSIX_SIGNALS : are POSIX signals supported? +// CATCH_CONFIG_DISABLE_EXCEPTIONS : Are exceptions enabled? // **************** // Note to maintainers: if new toggles are added please document them // in configuration.md, too @@ -116,34 +122,61 @@ namespace Catch { #ifdef __cplusplus -# if __cplusplus >= 201402L +# if (__cplusplus >= 201402L) || (defined(_MSVC_LANG) && _MSVC_LANG >= 201402L) # define CATCH_CPP14_OR_GREATER # endif -# if __cplusplus >= 201703L +# if (__cplusplus >= 201703L) || (defined(_MSVC_LANG) && _MSVC_LANG >= 201703L) # define CATCH_CPP17_OR_GREATER # endif #endif -#if defined(CATCH_CPP17_OR_GREATER) -# define CATCH_INTERNAL_CONFIG_CPP17_UNCAUGHT_EXCEPTIONS +// We have to avoid both ICC and Clang, because they try to mask themselves +// as gcc, and we want only GCC in this block +#if defined(__GNUC__) && !defined(__clang__) && !defined(__ICC) && !defined(__CUDACC__) +# define CATCH_INTERNAL_START_WARNINGS_SUPPRESSION _Pragma( "GCC diagnostic push" ) +# define CATCH_INTERNAL_STOP_WARNINGS_SUPPRESSION _Pragma( "GCC diagnostic pop" ) + +# define CATCH_INTERNAL_IGNORE_BUT_WARN(...) (void)__builtin_constant_p(__VA_ARGS__) + #endif -#ifdef __clang__ +#if defined(__clang__) + +# define CATCH_INTERNAL_START_WARNINGS_SUPPRESSION _Pragma( "clang diagnostic push" ) +# define CATCH_INTERNAL_STOP_WARNINGS_SUPPRESSION _Pragma( "clang diagnostic pop" ) + +// As of this writing, IBM XL's implementation of __builtin_constant_p has a bug +// which results in calls to destructors being emitted for each temporary, +// without a matching initialization. In practice, this can result in something +// like `std::string::~string` being called on an uninitialized value. +// +// For example, this code will likely segfault under IBM XL: +// ``` +// REQUIRE(std::string("12") + "34" == "1234") +// ``` +// +// Therefore, `CATCH_INTERNAL_IGNORE_BUT_WARN` is not implemented. +# if !defined(__ibmxl__) && !defined(__CUDACC__) +# define CATCH_INTERNAL_IGNORE_BUT_WARN(...) (void)__builtin_constant_p(__VA_ARGS__) /* NOLINT(cppcoreguidelines-pro-type-vararg, hicpp-vararg) */ +# endif + +# define CATCH_INTERNAL_SUPPRESS_GLOBALS_WARNINGS \ + _Pragma( "clang diagnostic ignored \"-Wexit-time-destructors\"" ) \ + _Pragma( "clang diagnostic ignored \"-Wglobal-constructors\"") + +# define CATCH_INTERNAL_SUPPRESS_PARENTHESES_WARNINGS \ + _Pragma( "clang diagnostic ignored \"-Wparentheses\"" ) + +# define CATCH_INTERNAL_SUPPRESS_UNUSED_WARNINGS \ + _Pragma( "clang diagnostic ignored \"-Wunused-variable\"" ) -# define CATCH_INTERNAL_SUPPRESS_GLOBALS_WARNINGS \ - _Pragma( "clang diagnostic push" ) \ - _Pragma( "clang diagnostic ignored \"-Wexit-time-destructors\"" ) \ - _Pragma( "clang diagnostic ignored \"-Wglobal-constructors\"") -# define CATCH_INTERNAL_UNSUPPRESS_GLOBALS_WARNINGS \ - _Pragma( "clang diagnostic pop" ) +# define CATCH_INTERNAL_SUPPRESS_ZERO_VARIADIC_WARNINGS \ + _Pragma( "clang diagnostic ignored \"-Wgnu-zero-variadic-macro-arguments\"" ) -# define CATCH_INTERNAL_SUPPRESS_PARENTHESES_WARNINGS \ - _Pragma( "clang diagnostic push" ) \ - _Pragma( "clang diagnostic ignored \"-Wparentheses\"" ) -# define CATCH_INTERNAL_UNSUPPRESS_PARENTHESES_WARNINGS \ - _Pragma( "clang diagnostic pop" ) +# define CATCH_INTERNAL_SUPPRESS_UNUSED_TEMPLATE_WARNINGS \ + _Pragma( "clang diagnostic ignored \"-Wunused-template\"" ) #endif // __clang__ @@ -168,6 +201,7 @@ namespace Catch { // Android somehow still does not support std::to_string #if defined(__ANDROID__) # define CATCH_INTERNAL_CONFIG_NO_CPP11_TO_STRING +# define CATCH_INTERNAL_CONFIG_ANDROID_LOGWRITE #endif //////////////////////////////////////////////////////////////////////////////// @@ -176,6 +210,12 @@ namespace Catch { # define CATCH_INTERNAL_CONFIG_NO_WINDOWS_SEH #endif +//////////////////////////////////////////////////////////////////////////////// +// PS4 +#if defined(__ORBIS__) +# define CATCH_INTERNAL_CONFIG_NO_NEW_CAPTURE +#endif + //////////////////////////////////////////////////////////////////////////////// // Cygwin #ifdef __CYGWIN__ @@ -183,16 +223,22 @@ namespace Catch { // Required for some versions of Cygwin to declare gettimeofday // see: http://stackoverflow.com/questions/36901803/gettimeofday-not-declared-in-this-scope-cygwin # define _BSD_SOURCE +// some versions of cygwin (most) do not support std::to_string. Use the libstd check. +// https://gcc.gnu.org/onlinedocs/gcc-4.8.2/libstdc++/api/a01053_source.html line 2812-2813 +# if !((__cplusplus >= 201103L) && defined(_GLIBCXX_USE_C99) \ + && !defined(_GLIBCXX_HAVE_BROKEN_VSWPRINTF)) + +# define CATCH_INTERNAL_CONFIG_NO_CPP11_TO_STRING +# endif #endif // __CYGWIN__ //////////////////////////////////////////////////////////////////////////////// // Visual C++ -#ifdef _MSC_VER +#if defined(_MSC_VER) -# if _MSC_VER >= 1900 // Visual Studio 2015 or newer -# define CATCH_INTERNAL_CONFIG_CPP17_UNCAUGHT_EXCEPTIONS -# endif +# define CATCH_INTERNAL_START_WARNINGS_SUPPRESSION __pragma( warning(push) ) +# define CATCH_INTERNAL_STOP_WARNINGS_SUPPRESSION __pragma( warning(pop) ) // Universal Windows platform does not support SEH // Or console colours (or console at all...) @@ -202,15 +248,40 @@ namespace Catch { # define CATCH_INTERNAL_CONFIG_WINDOWS_SEH # endif +// MSVC traditional preprocessor needs some workaround for __VA_ARGS__ +// _MSVC_TRADITIONAL == 0 means new conformant preprocessor +// _MSVC_TRADITIONAL == 1 means old traditional non-conformant preprocessor +# if !defined(__clang__) // Handle Clang masquerading for msvc +# if !defined(_MSVC_TRADITIONAL) || (defined(_MSVC_TRADITIONAL) && _MSVC_TRADITIONAL) +# define CATCH_INTERNAL_CONFIG_TRADITIONAL_MSVC_PREPROCESSOR +# endif // MSVC_TRADITIONAL +# endif // __clang__ + +#endif // _MSC_VER + +#if defined(_REENTRANT) || defined(_MSC_VER) +// Enable async processing, as -pthread is specified or no additional linking is required +# define CATCH_INTERNAL_CONFIG_USE_ASYNC #endif // _MSC_VER //////////////////////////////////////////////////////////////////////////////// +// Check if we are compiled with -fno-exceptions or equivalent +#if defined(__EXCEPTIONS) || defined(__cpp_exceptions) || defined(_CPPUNWIND) +# define CATCH_INTERNAL_CONFIG_EXCEPTIONS_ENABLED +#endif +//////////////////////////////////////////////////////////////////////////////// // DJGPP #ifdef __DJGPP__ # define CATCH_INTERNAL_CONFIG_NO_WCHAR #endif // __DJGPP__ +//////////////////////////////////////////////////////////////////////////////// +// Embarcadero C++Build +#if defined(__BORLANDC__) + #define CATCH_INTERNAL_CONFIG_POLYFILL_ISNAN +#endif + //////////////////////////////////////////////////////////////////////////////// // Use of __COUNTER__ is suppressed during code analysis in @@ -222,6 +293,58 @@ namespace Catch { #define CATCH_INTERNAL_CONFIG_COUNTER #endif +//////////////////////////////////////////////////////////////////////////////// + +// RTX is a special version of Windows that is real time. +// This means that it is detected as Windows, but does not provide +// the same set of capabilities as real Windows does. +#if defined(UNDER_RTSS) || defined(RTX64_BUILD) + #define CATCH_INTERNAL_CONFIG_NO_WINDOWS_SEH + #define CATCH_INTERNAL_CONFIG_NO_ASYNC + #define CATCH_CONFIG_COLOUR_NONE +#endif + +#if !defined(_GLIBCXX_USE_C99_MATH_TR1) +#define CATCH_INTERNAL_CONFIG_GLOBAL_NEXTAFTER +#endif + +// Various stdlib support checks that require __has_include +#if defined(__has_include) + // Check if string_view is available and usable + #if __has_include() && defined(CATCH_CPP17_OR_GREATER) + # define CATCH_INTERNAL_CONFIG_CPP17_STRING_VIEW + #endif + + // Check if optional is available and usable + # if __has_include() && defined(CATCH_CPP17_OR_GREATER) + # define CATCH_INTERNAL_CONFIG_CPP17_OPTIONAL + # endif // __has_include() && defined(CATCH_CPP17_OR_GREATER) + + // Check if byte is available and usable + # if __has_include() && defined(CATCH_CPP17_OR_GREATER) + # include + # if __cpp_lib_byte > 0 + # define CATCH_INTERNAL_CONFIG_CPP17_BYTE + # endif + # endif // __has_include() && defined(CATCH_CPP17_OR_GREATER) + + // Check if variant is available and usable + # if __has_include() && defined(CATCH_CPP17_OR_GREATER) + # if defined(__clang__) && (__clang_major__ < 8) + // work around clang bug with libstdc++ https://bugs.llvm.org/show_bug.cgi?id=31852 + // fix should be in clang 8, workaround in libstdc++ 8.2 + # include + # if defined(__GLIBCXX__) && defined(_GLIBCXX_RELEASE) && (_GLIBCXX_RELEASE < 9) + # define CATCH_CONFIG_NO_CPP17_VARIANT + # else + # define CATCH_INTERNAL_CONFIG_CPP17_VARIANT + # endif // defined(__GLIBCXX__) && defined(_GLIBCXX_RELEASE) && (_GLIBCXX_RELEASE < 9) + # else + # define CATCH_INTERNAL_CONFIG_CPP17_VARIANT + # endif // defined(__clang__) && (__clang_major__ < 8) + # endif // __has_include() && defined(CATCH_CPP17_OR_GREATER) +#endif // defined(__has_include) + #if defined(CATCH_INTERNAL_CONFIG_COUNTER) && !defined(CATCH_CONFIG_NO_COUNTER) && !defined(CATCH_CONFIG_COUNTER) # define CATCH_CONFIG_COUNTER #endif @@ -241,17 +364,99 @@ namespace Catch { # define CATCH_CONFIG_CPP11_TO_STRING #endif -#if defined(CATCH_INTERNAL_CONFIG_CPP17_UNCAUGHT_EXCEPTIONS) && !defined(CATCH_CONFIG_NO_CPP17_UNCAUGHT_EXCEPTIONS) && !defined(CATCH_CONFIG_CPP17_UNCAUGHT_EXCEPTIONS) -# define CATCH_CONFIG_CPP17_UNCAUGHT_EXCEPTIONS +#if defined(CATCH_INTERNAL_CONFIG_CPP17_OPTIONAL) && !defined(CATCH_CONFIG_NO_CPP17_OPTIONAL) && !defined(CATCH_CONFIG_CPP17_OPTIONAL) +# define CATCH_CONFIG_CPP17_OPTIONAL +#endif + +#if defined(CATCH_INTERNAL_CONFIG_CPP17_STRING_VIEW) && !defined(CATCH_CONFIG_NO_CPP17_STRING_VIEW) && !defined(CATCH_CONFIG_CPP17_STRING_VIEW) +# define CATCH_CONFIG_CPP17_STRING_VIEW +#endif + +#if defined(CATCH_INTERNAL_CONFIG_CPP17_VARIANT) && !defined(CATCH_CONFIG_NO_CPP17_VARIANT) && !defined(CATCH_CONFIG_CPP17_VARIANT) +# define CATCH_CONFIG_CPP17_VARIANT +#endif + +#if defined(CATCH_INTERNAL_CONFIG_CPP17_BYTE) && !defined(CATCH_CONFIG_NO_CPP17_BYTE) && !defined(CATCH_CONFIG_CPP17_BYTE) +# define CATCH_CONFIG_CPP17_BYTE +#endif + +#if defined(CATCH_CONFIG_EXPERIMENTAL_REDIRECT) +# define CATCH_INTERNAL_CONFIG_NEW_CAPTURE +#endif + +#if defined(CATCH_INTERNAL_CONFIG_NEW_CAPTURE) && !defined(CATCH_INTERNAL_CONFIG_NO_NEW_CAPTURE) && !defined(CATCH_CONFIG_NO_NEW_CAPTURE) && !defined(CATCH_CONFIG_NEW_CAPTURE) +# define CATCH_CONFIG_NEW_CAPTURE +#endif + +#if !defined(CATCH_INTERNAL_CONFIG_EXCEPTIONS_ENABLED) && !defined(CATCH_CONFIG_DISABLE_EXCEPTIONS) +# define CATCH_CONFIG_DISABLE_EXCEPTIONS +#endif + +#if defined(CATCH_INTERNAL_CONFIG_POLYFILL_ISNAN) && !defined(CATCH_CONFIG_NO_POLYFILL_ISNAN) && !defined(CATCH_CONFIG_POLYFILL_ISNAN) +# define CATCH_CONFIG_POLYFILL_ISNAN +#endif + +#if defined(CATCH_INTERNAL_CONFIG_USE_ASYNC) && !defined(CATCH_INTERNAL_CONFIG_NO_ASYNC) && !defined(CATCH_CONFIG_NO_USE_ASYNC) && !defined(CATCH_CONFIG_USE_ASYNC) +# define CATCH_CONFIG_USE_ASYNC +#endif + +#if defined(CATCH_INTERNAL_CONFIG_ANDROID_LOGWRITE) && !defined(CATCH_CONFIG_NO_ANDROID_LOGWRITE) && !defined(CATCH_CONFIG_ANDROID_LOGWRITE) +# define CATCH_CONFIG_ANDROID_LOGWRITE +#endif + +#if defined(CATCH_INTERNAL_CONFIG_GLOBAL_NEXTAFTER) && !defined(CATCH_CONFIG_NO_GLOBAL_NEXTAFTER) && !defined(CATCH_CONFIG_GLOBAL_NEXTAFTER) +# define CATCH_CONFIG_GLOBAL_NEXTAFTER #endif +// Even if we do not think the compiler has that warning, we still have +// to provide a macro that can be used by the code. +#if !defined(CATCH_INTERNAL_START_WARNINGS_SUPPRESSION) +# define CATCH_INTERNAL_START_WARNINGS_SUPPRESSION +#endif +#if !defined(CATCH_INTERNAL_STOP_WARNINGS_SUPPRESSION) +# define CATCH_INTERNAL_STOP_WARNINGS_SUPPRESSION +#endif #if !defined(CATCH_INTERNAL_SUPPRESS_PARENTHESES_WARNINGS) # define CATCH_INTERNAL_SUPPRESS_PARENTHESES_WARNINGS -# define CATCH_INTERNAL_UNSUPPRESS_PARENTHESES_WARNINGS #endif #if !defined(CATCH_INTERNAL_SUPPRESS_GLOBALS_WARNINGS) # define CATCH_INTERNAL_SUPPRESS_GLOBALS_WARNINGS -# define CATCH_INTERNAL_UNSUPPRESS_GLOBALS_WARNINGS +#endif +#if !defined(CATCH_INTERNAL_SUPPRESS_UNUSED_WARNINGS) +# define CATCH_INTERNAL_SUPPRESS_UNUSED_WARNINGS +#endif +#if !defined(CATCH_INTERNAL_SUPPRESS_ZERO_VARIADIC_WARNINGS) +# define CATCH_INTERNAL_SUPPRESS_ZERO_VARIADIC_WARNINGS +#endif + +// The goal of this macro is to avoid evaluation of the arguments, but +// still have the compiler warn on problems inside... +#if !defined(CATCH_INTERNAL_IGNORE_BUT_WARN) +# define CATCH_INTERNAL_IGNORE_BUT_WARN(...) +#endif + +#if defined(__APPLE__) && defined(__apple_build_version__) && (__clang_major__ < 10) +# undef CATCH_INTERNAL_SUPPRESS_UNUSED_TEMPLATE_WARNINGS +#elif defined(__clang__) && (__clang_major__ < 5) +# undef CATCH_INTERNAL_SUPPRESS_UNUSED_TEMPLATE_WARNINGS +#endif + +#if !defined(CATCH_INTERNAL_SUPPRESS_UNUSED_TEMPLATE_WARNINGS) +# define CATCH_INTERNAL_SUPPRESS_UNUSED_TEMPLATE_WARNINGS +#endif + +#if defined(CATCH_CONFIG_DISABLE_EXCEPTIONS) +#define CATCH_TRY if ((true)) +#define CATCH_CATCH_ALL if ((false)) +#define CATCH_CATCH_ANON(type) if ((false)) +#else +#define CATCH_TRY try +#define CATCH_CATCH_ALL catch (...) +#define CATCH_CATCH_ANON(type) catch (type) +#endif + +#if defined(CATCH_INTERNAL_CONFIG_TRADITIONAL_MSVC_PREPROCESSOR) && !defined(CATCH_CONFIG_NO_TRADITIONAL_MSVC_PREPROCESSOR) && !defined(CATCH_CONFIG_TRADITIONAL_MSVC_PREPROCESSOR) +#define CATCH_CONFIG_TRADITIONAL_MSVC_PREPROCESSOR #endif // end catch_compiler_capabilities.h @@ -267,6 +472,10 @@ namespace Catch { #include #include +// We need a dummy global operator<< so we can bring it into Catch namespace later +struct Catch_global_namespace_dummy {}; +std::ostream& operator<<(std::ostream&, Catch_global_namespace_dummy); + namespace Catch { struct CaseSensitive { enum Choice { @@ -293,12 +502,12 @@ namespace Catch { line( _line ) {} - SourceLineInfo( SourceLineInfo const& other ) = default; - SourceLineInfo( SourceLineInfo && ) = default; - SourceLineInfo& operator = ( SourceLineInfo const& ) = default; - SourceLineInfo& operator = ( SourceLineInfo && ) = default; + SourceLineInfo( SourceLineInfo const& other ) = default; + SourceLineInfo& operator = ( SourceLineInfo const& ) = default; + SourceLineInfo( SourceLineInfo&& ) noexcept = default; + SourceLineInfo& operator = ( SourceLineInfo&& ) noexcept = default; - bool empty() const noexcept; + bool empty() const noexcept { return file[0] == '\0'; } bool operator == ( SourceLineInfo const& other ) const noexcept; bool operator < ( SourceLineInfo const& other ) const noexcept; @@ -308,6 +517,11 @@ namespace Catch { std::ostream& operator << ( std::ostream& os, SourceLineInfo const& info ); + // Bring in operator<< from global namespace into Catch namespace + // This is necessary because the overload of operator<< above makes + // lookup stop at namespace Catch + using ::operator<<; + // Use this in variadic streaming macros to allow // >> +StreamEndStop // as well as @@ -334,9 +548,10 @@ namespace Catch { } // end namespace Catch #define CATCH_REGISTER_TAG_ALIAS( alias, spec ) \ + CATCH_INTERNAL_START_WARNINGS_SUPPRESSION \ CATCH_INTERNAL_SUPPRESS_GLOBALS_WARNINGS \ namespace{ Catch::RegistrarForTagAliases INTERNAL_CATCH_UNIQUE_NAME( AutoRegisterTagAlias )( alias, spec, CATCH_INTERNAL_LINEINFO ); } \ - CATCH_INTERNAL_UNSUPPRESS_GLOBALS_WARNINGS + CATCH_INTERNAL_STOP_WARNINGS_SUPPRESSION // end catch_tag_alias_autoregistrar.h // start catch_test_registry.h @@ -344,7 +559,6 @@ namespace Catch { // start catch_interfaces_testcase.h #include -#include namespace Catch { @@ -355,8 +569,6 @@ namespace Catch { virtual ~ITestInvoker(); }; - using ITestCasePtr = std::shared_ptr; - class TestCase; struct IConfig; @@ -366,6 +578,7 @@ namespace Catch { virtual std::vector const& getAllTestsSorted( IConfig const& config ) const = 0; }; + bool isThrowSafe( TestCase const& testCase, IConfig const& config ); bool matchTest( TestCase const& testCase, TestSpec const& testSpec, IConfig const& config ); std::vector filterTests( std::vector const& testCases, TestSpec const& testSpec, IConfig const& config ); std::vector const& getAllTestCasesSorted( IConfig const& config ); @@ -378,55 +591,30 @@ namespace Catch { #include #include #include +#include namespace Catch { - class StringData; - /// A non-owning string class (similar to the forthcoming std::string_view) /// Note that, because a StringRef may be a substring of another string, - /// it may not be null terminated. c_str() must return a null terminated - /// string, however, and so the StringRef will internally take ownership - /// (taking a copy), if necessary. In theory this ownership is not externally - /// visible - but it does mean (substring) StringRefs should not be shared between - /// threads. + /// it may not be null terminated. class StringRef { public: using size_type = std::size_t; + using const_iterator = const char*; private: - friend struct StringRefTestAccess; - - char const* m_start; - size_type m_size; - - char* m_data = nullptr; - - void takeOwnership(); - static constexpr char const* const s_empty = ""; - public: // construction/ assignment - StringRef() noexcept - : StringRef( s_empty, 0 ) - {} - - StringRef( StringRef const& other ) noexcept - : m_start( other.m_start ), - m_size( other.m_size ) - {} + char const* m_start = s_empty; + size_type m_size = 0; - StringRef( StringRef&& other ) noexcept - : m_start( other.m_start ), - m_size( other.m_size ), - m_data( other.m_data ) - { - other.m_data = nullptr; - } + public: // construction + constexpr StringRef() noexcept = default; StringRef( char const* rawChars ) noexcept; - StringRef( char const* rawChars, size_type size ) noexcept + constexpr StringRef( char const* rawChars, size_type size ) noexcept : m_start( rawChars ), m_size( size ) {} @@ -436,65 +624,333 @@ namespace Catch { m_size( stdString.size() ) {} - ~StringRef() noexcept { - delete[] m_data; - } - - auto operator = ( StringRef const &other ) noexcept -> StringRef& { - delete[] m_data; - m_data = nullptr; - m_start = other.m_start; - m_size = other.m_size; - return *this; + explicit operator std::string() const { + return std::string(m_start, m_size); } - operator std::string() const; - - void swap( StringRef& other ) noexcept; - public: // operators auto operator == ( StringRef const& other ) const noexcept -> bool; - auto operator != ( StringRef const& other ) const noexcept -> bool; + auto operator != (StringRef const& other) const noexcept -> bool { + return !(*this == other); + } - auto operator[] ( size_type index ) const noexcept -> char; + auto operator[] ( size_type index ) const noexcept -> char { + assert(index < m_size); + return m_start[index]; + } public: // named queries - auto empty() const noexcept -> bool { + constexpr auto empty() const noexcept -> bool { return m_size == 0; } - auto size() const noexcept -> size_type { + constexpr auto size() const noexcept -> size_type { return m_size; } - auto numberOfCharacters() const noexcept -> size_type; + // Returns the current start pointer. If the StringRef is not + // null-terminated, throws std::domain_exception auto c_str() const -> char const*; public: // substrings and searches - auto substr( size_type start, size_type size ) const noexcept -> StringRef; + // Returns a substring of [start, start + length). + // If start + length > size(), then the substring is [start, size()). + // If start > size(), then the substring is empty. + auto substr( size_type start, size_type length ) const noexcept -> StringRef; - // Returns the current start pointer. - // Note that the pointer can change when if the StringRef is a substring - auto currentData() const noexcept -> char const*; + // Returns the current start pointer. May not be null-terminated. + auto data() const noexcept -> char const*; - private: // ownership queries - may not be consistent between calls - auto isOwned() const noexcept -> bool; - auto isSubstring() const noexcept -> bool; - }; + constexpr auto isNullTerminated() const noexcept -> bool { + return m_start[m_size] == '\0'; + } - auto operator + ( StringRef const& lhs, StringRef const& rhs ) -> std::string; - auto operator + ( StringRef const& lhs, char const* rhs ) -> std::string; - auto operator + ( char const* lhs, StringRef const& rhs ) -> std::string; + public: // iterators + constexpr const_iterator begin() const { return m_start; } + constexpr const_iterator end() const { return m_start + m_size; } + }; auto operator += ( std::string& lhs, StringRef const& sr ) -> std::string&; auto operator << ( std::ostream& os, StringRef const& sr ) -> std::ostream&; - inline auto operator "" _sr( char const* rawChars, std::size_t size ) noexcept -> StringRef { + constexpr auto operator "" _sr( char const* rawChars, std::size_t size ) noexcept -> StringRef { return StringRef( rawChars, size ); } - } // namespace Catch +constexpr auto operator "" _catch_sr( char const* rawChars, std::size_t size ) noexcept -> Catch::StringRef { + return Catch::StringRef( rawChars, size ); +} + // end catch_stringref.h +// start catch_preprocessor.hpp + + +#define CATCH_RECURSION_LEVEL0(...) __VA_ARGS__ +#define CATCH_RECURSION_LEVEL1(...) CATCH_RECURSION_LEVEL0(CATCH_RECURSION_LEVEL0(CATCH_RECURSION_LEVEL0(__VA_ARGS__))) +#define CATCH_RECURSION_LEVEL2(...) CATCH_RECURSION_LEVEL1(CATCH_RECURSION_LEVEL1(CATCH_RECURSION_LEVEL1(__VA_ARGS__))) +#define CATCH_RECURSION_LEVEL3(...) CATCH_RECURSION_LEVEL2(CATCH_RECURSION_LEVEL2(CATCH_RECURSION_LEVEL2(__VA_ARGS__))) +#define CATCH_RECURSION_LEVEL4(...) CATCH_RECURSION_LEVEL3(CATCH_RECURSION_LEVEL3(CATCH_RECURSION_LEVEL3(__VA_ARGS__))) +#define CATCH_RECURSION_LEVEL5(...) CATCH_RECURSION_LEVEL4(CATCH_RECURSION_LEVEL4(CATCH_RECURSION_LEVEL4(__VA_ARGS__))) + +#ifdef CATCH_CONFIG_TRADITIONAL_MSVC_PREPROCESSOR +#define INTERNAL_CATCH_EXPAND_VARGS(...) __VA_ARGS__ +// MSVC needs more evaluations +#define CATCH_RECURSION_LEVEL6(...) CATCH_RECURSION_LEVEL5(CATCH_RECURSION_LEVEL5(CATCH_RECURSION_LEVEL5(__VA_ARGS__))) +#define CATCH_RECURSE(...) CATCH_RECURSION_LEVEL6(CATCH_RECURSION_LEVEL6(__VA_ARGS__)) +#else +#define CATCH_RECURSE(...) CATCH_RECURSION_LEVEL5(__VA_ARGS__) +#endif + +#define CATCH_REC_END(...) +#define CATCH_REC_OUT + +#define CATCH_EMPTY() +#define CATCH_DEFER(id) id CATCH_EMPTY() + +#define CATCH_REC_GET_END2() 0, CATCH_REC_END +#define CATCH_REC_GET_END1(...) CATCH_REC_GET_END2 +#define CATCH_REC_GET_END(...) CATCH_REC_GET_END1 +#define CATCH_REC_NEXT0(test, next, ...) next CATCH_REC_OUT +#define CATCH_REC_NEXT1(test, next) CATCH_DEFER ( CATCH_REC_NEXT0 ) ( test, next, 0) +#define CATCH_REC_NEXT(test, next) CATCH_REC_NEXT1(CATCH_REC_GET_END test, next) + +#define CATCH_REC_LIST0(f, x, peek, ...) , f(x) CATCH_DEFER ( CATCH_REC_NEXT(peek, CATCH_REC_LIST1) ) ( f, peek, __VA_ARGS__ ) +#define CATCH_REC_LIST1(f, x, peek, ...) , f(x) CATCH_DEFER ( CATCH_REC_NEXT(peek, CATCH_REC_LIST0) ) ( f, peek, __VA_ARGS__ ) +#define CATCH_REC_LIST2(f, x, peek, ...) f(x) CATCH_DEFER ( CATCH_REC_NEXT(peek, CATCH_REC_LIST1) ) ( f, peek, __VA_ARGS__ ) + +#define CATCH_REC_LIST0_UD(f, userdata, x, peek, ...) , f(userdata, x) CATCH_DEFER ( CATCH_REC_NEXT(peek, CATCH_REC_LIST1_UD) ) ( f, userdata, peek, __VA_ARGS__ ) +#define CATCH_REC_LIST1_UD(f, userdata, x, peek, ...) , f(userdata, x) CATCH_DEFER ( CATCH_REC_NEXT(peek, CATCH_REC_LIST0_UD) ) ( f, userdata, peek, __VA_ARGS__ ) +#define CATCH_REC_LIST2_UD(f, userdata, x, peek, ...) f(userdata, x) CATCH_DEFER ( CATCH_REC_NEXT(peek, CATCH_REC_LIST1_UD) ) ( f, userdata, peek, __VA_ARGS__ ) + +// Applies the function macro `f` to each of the remaining parameters, inserts commas between the results, +// and passes userdata as the first parameter to each invocation, +// e.g. CATCH_REC_LIST_UD(f, x, a, b, c) evaluates to f(x, a), f(x, b), f(x, c) +#define CATCH_REC_LIST_UD(f, userdata, ...) CATCH_RECURSE(CATCH_REC_LIST2_UD(f, userdata, __VA_ARGS__, ()()(), ()()(), ()()(), 0)) + +#define CATCH_REC_LIST(f, ...) CATCH_RECURSE(CATCH_REC_LIST2(f, __VA_ARGS__, ()()(), ()()(), ()()(), 0)) + +#define INTERNAL_CATCH_EXPAND1(param) INTERNAL_CATCH_EXPAND2(param) +#define INTERNAL_CATCH_EXPAND2(...) INTERNAL_CATCH_NO## __VA_ARGS__ +#define INTERNAL_CATCH_DEF(...) INTERNAL_CATCH_DEF __VA_ARGS__ +#define INTERNAL_CATCH_NOINTERNAL_CATCH_DEF +#define INTERNAL_CATCH_STRINGIZE(...) INTERNAL_CATCH_STRINGIZE2(__VA_ARGS__) +#ifndef CATCH_CONFIG_TRADITIONAL_MSVC_PREPROCESSOR +#define INTERNAL_CATCH_STRINGIZE2(...) #__VA_ARGS__ +#define INTERNAL_CATCH_STRINGIZE_WITHOUT_PARENS(param) INTERNAL_CATCH_STRINGIZE(INTERNAL_CATCH_REMOVE_PARENS(param)) +#else +// MSVC is adding extra space and needs another indirection to expand INTERNAL_CATCH_NOINTERNAL_CATCH_DEF +#define INTERNAL_CATCH_STRINGIZE2(...) INTERNAL_CATCH_STRINGIZE3(__VA_ARGS__) +#define INTERNAL_CATCH_STRINGIZE3(...) #__VA_ARGS__ +#define INTERNAL_CATCH_STRINGIZE_WITHOUT_PARENS(param) (INTERNAL_CATCH_STRINGIZE(INTERNAL_CATCH_REMOVE_PARENS(param)) + 1) +#endif + +#define INTERNAL_CATCH_MAKE_NAMESPACE2(...) ns_##__VA_ARGS__ +#define INTERNAL_CATCH_MAKE_NAMESPACE(name) INTERNAL_CATCH_MAKE_NAMESPACE2(name) + +#define INTERNAL_CATCH_REMOVE_PARENS(...) INTERNAL_CATCH_EXPAND1(INTERNAL_CATCH_DEF __VA_ARGS__) + +#ifndef CATCH_CONFIG_TRADITIONAL_MSVC_PREPROCESSOR +#define INTERNAL_CATCH_MAKE_TYPE_LIST2(...) decltype(get_wrapper()) +#define INTERNAL_CATCH_MAKE_TYPE_LIST(...) INTERNAL_CATCH_MAKE_TYPE_LIST2(INTERNAL_CATCH_REMOVE_PARENS(__VA_ARGS__)) +#else +#define INTERNAL_CATCH_MAKE_TYPE_LIST2(...) INTERNAL_CATCH_EXPAND_VARGS(decltype(get_wrapper())) +#define INTERNAL_CATCH_MAKE_TYPE_LIST(...) INTERNAL_CATCH_EXPAND_VARGS(INTERNAL_CATCH_MAKE_TYPE_LIST2(INTERNAL_CATCH_REMOVE_PARENS(__VA_ARGS__))) +#endif + +#define INTERNAL_CATCH_MAKE_TYPE_LISTS_FROM_TYPES(...)\ + CATCH_REC_LIST(INTERNAL_CATCH_MAKE_TYPE_LIST,__VA_ARGS__) + +#define INTERNAL_CATCH_REMOVE_PARENS_1_ARG(_0) INTERNAL_CATCH_REMOVE_PARENS(_0) +#define INTERNAL_CATCH_REMOVE_PARENS_2_ARG(_0, _1) INTERNAL_CATCH_REMOVE_PARENS(_0), INTERNAL_CATCH_REMOVE_PARENS_1_ARG(_1) +#define INTERNAL_CATCH_REMOVE_PARENS_3_ARG(_0, _1, _2) INTERNAL_CATCH_REMOVE_PARENS(_0), INTERNAL_CATCH_REMOVE_PARENS_2_ARG(_1, _2) +#define INTERNAL_CATCH_REMOVE_PARENS_4_ARG(_0, _1, _2, _3) INTERNAL_CATCH_REMOVE_PARENS(_0), INTERNAL_CATCH_REMOVE_PARENS_3_ARG(_1, _2, _3) +#define INTERNAL_CATCH_REMOVE_PARENS_5_ARG(_0, _1, _2, _3, _4) INTERNAL_CATCH_REMOVE_PARENS(_0), INTERNAL_CATCH_REMOVE_PARENS_4_ARG(_1, _2, _3, _4) +#define INTERNAL_CATCH_REMOVE_PARENS_6_ARG(_0, _1, _2, _3, _4, _5) INTERNAL_CATCH_REMOVE_PARENS(_0), INTERNAL_CATCH_REMOVE_PARENS_5_ARG(_1, _2, _3, _4, _5) +#define INTERNAL_CATCH_REMOVE_PARENS_7_ARG(_0, _1, _2, _3, _4, _5, _6) INTERNAL_CATCH_REMOVE_PARENS(_0), INTERNAL_CATCH_REMOVE_PARENS_6_ARG(_1, _2, _3, _4, _5, _6) +#define INTERNAL_CATCH_REMOVE_PARENS_8_ARG(_0, _1, _2, _3, _4, _5, _6, _7) INTERNAL_CATCH_REMOVE_PARENS(_0), INTERNAL_CATCH_REMOVE_PARENS_7_ARG(_1, _2, _3, _4, _5, _6, _7) +#define INTERNAL_CATCH_REMOVE_PARENS_9_ARG(_0, _1, _2, _3, _4, _5, _6, _7, _8) INTERNAL_CATCH_REMOVE_PARENS(_0), INTERNAL_CATCH_REMOVE_PARENS_8_ARG(_1, _2, _3, _4, _5, _6, _7, _8) +#define INTERNAL_CATCH_REMOVE_PARENS_10_ARG(_0, _1, _2, _3, _4, _5, _6, _7, _8, _9) INTERNAL_CATCH_REMOVE_PARENS(_0), INTERNAL_CATCH_REMOVE_PARENS_9_ARG(_1, _2, _3, _4, _5, _6, _7, _8, _9) +#define INTERNAL_CATCH_REMOVE_PARENS_11_ARG(_0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10) INTERNAL_CATCH_REMOVE_PARENS(_0), INTERNAL_CATCH_REMOVE_PARENS_10_ARG(_1, _2, _3, _4, _5, _6, _7, _8, _9, _10) + +#define INTERNAL_CATCH_VA_NARGS_IMPL(_0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, N, ...) N + +#define INTERNAL_CATCH_TYPE_GEN\ + template struct TypeList {};\ + template\ + constexpr auto get_wrapper() noexcept -> TypeList { return {}; }\ + template class...> struct TemplateTypeList{};\ + template class...Cs>\ + constexpr auto get_wrapper() noexcept -> TemplateTypeList { return {}; }\ + template\ + struct append;\ + template\ + struct rewrap;\ + template class, typename...>\ + struct create;\ + template class, typename>\ + struct convert;\ + \ + template \ + struct append { using type = T; };\ + template< template class L1, typename...E1, template class L2, typename...E2, typename...Rest>\ + struct append, L2, Rest...> { using type = typename append, Rest...>::type; };\ + template< template class L1, typename...E1, typename...Rest>\ + struct append, TypeList, Rest...> { using type = L1; };\ + \ + template< template class Container, template class List, typename...elems>\ + struct rewrap, List> { using type = TypeList>; };\ + template< template class Container, template class List, class...Elems, typename...Elements>\ + struct rewrap, List, Elements...> { using type = typename append>, typename rewrap, Elements...>::type>::type; };\ + \ + template