/freebsd/crypto/libecc/src/wycheproof_tests/ |
H A D | libecc_wycheproof.c | 45 ext_printf("OpenMP abort following error ... %s:%d\n", __FILE__, __LINE__); \ 100 ext_printf("Error: ECDSA tests error importing params\n"); in check_wycheproof_ecdsa() 108 ext_printf("Error: ECDSA tests error importing public key\n"); in check_wycheproof_ecdsa() 117 …ext_printf("[-] Error when verifying ECDSA test %d / %s (verification NOK while must be valid)\n",… in check_wycheproof_ecdsa() 118 ext_printf(" (comment = %s)\n", t->comment); in check_wycheproof_ecdsa() 124 …ext_printf("[-] Error when verifying ECDSA test %d / %s (verification OK while must be invalid)\n"… in check_wycheproof_ecdsa() 125 ext_printf(" (comment = %s)\n", t->comment); in check_wycheproof_ecdsa() 138 ext_printf("\t[~] ECDSA test %d / %s (verification %d while acceptable)\n", i, t->name, ret); in check_wycheproof_ecdsa() 139 ext_printf("\t (comment = %s)\n", t->comment); in check_wycheproof_ecdsa() 191 ext_printf("Error: EDDSA tests error importing params\n"); in check_wycheproof_eddsa() [all …]
|
/freebsd/crypto/libecc/src/examples/basic/ |
H A D | fp_square_residue.c | 69 ext_printf("Random before squaring:\n"); in main() 71 ext_printf("Random after squaring:\n"); in main() 83 ext_printf("First found square OK!\n"); in main() 85 ext_printf("First found square NOK: square " in main() 92 ext_printf("Second found square OK!\n"); in main() 94 ext_printf("Second found square NOK: square " in main() 101 ext_printf("Value n has no square over Fp\n"); in main() 102 ext_printf("(Note: this error can be due to " in main() 105 ext_printf("(though this should happen with " in main() 112 ext_printf("Tonelli-Shanks algorithm unkown " in main() [all …]
|
H A D | curve_basic_examples.c | 84 ext_printf("Error: Tonelli-Shanks found a bad " in get_random_point_on_curve() 144 ext_printf("Error: error when importing curve %s " in check_curve() 168 ext_printf("Error: C = A+B is not on the %s curve!\n", in check_curve() 175 ext_printf("Error: C = A+B is not on the %s curve!\n", in check_curve() 191 ext_printf("Error: C = A+B is not on the %s curve!\n", in check_curve() 198 ext_printf("Error: C = A+B is not on the %s curve!\n", in check_curve() 217 ext_printf("Error: qA is not 0! (regular mul)\n"); in check_curve() 225 ext_printf("Error: qA is not 0! (regular blind mul)\n"); in check_curve() 233 ext_printf("Error: qB is not 0! (regular mul)\n"); in check_curve() 241 ext_printf("Error: qB is not 0! (regular blind mul)\n"); in check_curve() [all …]
|
H A D | curve_ecdh.c | 129 ext_printf(" Error: unknown role %s for ECDH\n", role); in ECDH_helper() 145 ext_printf(" Error: error when importing curve %s " in ECDH_helper() 209 ext_printf(" ECDH shared secret computed by %s:\n", role); in ECDH_helper() 251 ext_printf("Error: error when treating %s\n", curve_name); in main() 255 ext_printf("[+] ECDH on curve %s\n", curve_name); in main() 258 ext_printf("Error: error in ECDH_helper\n"); in main() 263 ext_printf("Error: error in ECDH_helper\n"); in main() 273 ext_printf("Error: error in ECDH_helper\n"); in main() 276 ext_printf("==================================\n"); in main()
|
H A D | nn_pollard_rho.c | 146 ext_printf("=================\n"); in find_divisors() 152 ext_printf("The number is probably prime, leaving ...\n"); in find_divisors() 156 ext_printf("The number is composite, performing Pollard's rho\n"); in find_divisors() 183 ext_printf("Pollard's rho succeded\n"); in find_divisors() 208 ext_printf in find_divisors() 217 ext_printf("=================\n"); in find_divisors()
|
/freebsd/crypto/libecc/src/tests/ |
H A D | ec_self_tests.c | 92 ext_printf("%s ", (const char *)(ec_maps[i].params->name->buf)); in print_curves() 104 ext_printf("%s ", hash_maps[i].name); in print_hash_algs() 116 ext_printf("%s ", ec_sig_maps[i].name); in print_sig_algs() 126 ext_printf("Argument %s is unknown. Possible args are:\n", bad_arg); in print_help() 129 ext_printf("\t%20s:\t%s\n", test_types[j].type_name, in print_help() 132 ext_printf("-------------------\n"); in print_help() 133 …ext_printf("NOTE: you can filter signatures with 'sign=', hash algorithms with 'hash=', curves wit… in print_help() 134 ext_printf("\tExample: sign=ECDSA hash=SHA256 hash=SHA512 curve=FRP256V1\n"); in print_help() 135 ext_printf("\tPossible signatures: "); in print_help() 137 ext_printf("\n\tPossible hash algorithms: "); in print_help() [all …]
|
H A D | ec_self_tests_core.c | 44 ext_printf("OpenMP abort following error ... %s:%d\n", __FILE__, __LINE__); \ 74 ext_printf("Error generating key pair\n"); in ec_gen_import_export_kp() 84 ext_printf("Error exporting public key\n"); in ec_gen_import_export_kp() 91 ext_printf("Error exporting private key\n"); in ec_gen_import_export_kp() 102 ext_printf("Error importing public key\n"); in ec_gen_import_export_kp() 110 ext_printf("Error importing private key\n"); in ec_gen_import_export_kp() 149 ext_printf("Error when getting random\n"); in random_split_ec_sign() 194 ext_printf("Error when getting random\n"); in random_split_ec_verify() 248 ext_printf("Error importing params\n"); in ec_import_export_test() 255 ext_printf("Error at key pair generation/import/export\n"); in ec_import_export_test() [all …]
|
/freebsd/crypto/libecc/src/utils/ |
H A D | print_curves.c | 31 ext_printf("%s: infinity\n", msg); in ec_point_print() 36 ext_printf("%s", msg); in ec_point_print() 38 ext_printf("%s", msg); in ec_point_print() 53 ext_printf("%s", msg); in ec_montgomery_point_print() 55 ext_printf("%s", msg); in ec_montgomery_point_print() 69 ext_printf("%s", msg); in ec_edwards_point_print() 71 ext_printf("%s", msg); in ec_edwards_point_print()
|
H A D | print_buf.c | 23 ext_printf("%s: ", msg); in buf_print() 25 ext_printf("%02x", buf[i]); in buf_print() 27 ext_printf("\n"); in buf_print()
|
H A D | print_nn.c | 26 ext_printf("%s (%d words, i.e. %d bits): 0x", msg, a->wlen, in nn_print() 30 ext_printf(PRINTF_WORD_HEX_FMT, a->val[w]); in nn_print() 33 ext_printf("\n"); in nn_print()
|
H A D | print_fp.c | 26 ext_printf("%s:\n", msg); in fp_ctx_print() 28 ext_printf("\t fp_ctx->mpinv 0x%016lx\n", in fp_ctx_print() 59 ext_printf("%s:\n", msg); in fp_print_all()
|
/freebsd/crypto/libecc/src/examples/sss/ |
H A D | sss.c | 504 ext_printf("[-] sss_combine error for share %d / %d: session ID is not OK!\n", i, k); in sss_combine() 517 ext_printf("[-] sss_combine error for share %d / %d: HMAC is not OK!\n", i, k); in sss_combine() 572 ext_printf("[-] sss_regenerate error for share %d / %d: session ID is not OK!\n", i, k); in sss_regenerate() 586 ext_printf("[-] sss_regenerate error for share %d / %d: HMAC is not OK!\n", i, k); in sss_regenerate() 667 ext_printf("[+] Generating the secrets %d / %d, call should be OK\n", K, N); in main() 672 ext_printf(" [X] Error: sss_generate error\n"); in main() 684 ext_printf("[+] Combining the secrets with less shares: call should trigger an error\n"); in main() 688 ext_printf(" [X] Error: sss_combine error\n"); in main() 696 ext_printf("[+] Combining the secrets with minimum shares: call should be OK\n"); in main() 700 ext_printf(" [X] Error: sss_combine error\n"); in main() [all …]
|
/freebsd/crypto/libecc/include/libecc/utils/ |
H A D | utils.h | 56 ext_printf("MUST_HAVE error: %s at %d\n", __FILE__,__LINE__); \ 59 ext_printf("SHOULD_HAVE error: %s at %d\n", __FILE__,__LINE__); \ 62 ext_printf("KNOWN_FACT error: %s at %d\n", __FILE__,__LINE__); \
|
/freebsd/crypto/libecc/src/examples/sig/gostr34_10_94/ |
H A D | gostr34_10_94.c | 485 …ext_printf("Error: you seem to have compiled libecc with usable NN size < 4096, not suitable for G… in main() 486 ext_printf(" => Please recompile libecc with EXTRA_CFLAGS=\"-DUSER_NN_BIT_LEN=4096\"\n"); in main() 487 ext_printf(" This will increase usable NN for proper GOSTR34_10_94 up to 4096 bits.\n"); in main() 488 …ext_printf(" Then recompile the current examples with the same EXTRA_CFLAGS=\"-DUSER_NN_BIT_LE… in main() 501 ext_printf("RFC4357 self-signed signature result %d\n", ret); in main() 515 ext_printf("Random signature result %d\n", ret); in main()
|
/freebsd/crypto/libecc/src/examples/sig/sdsa/ |
H A D | sdsa.c | 441 …ext_printf("Error: you seem to have compiled libecc with usable NN size < 4096, not suitable for D… in main() 442 ext_printf(" => Please recompile libecc with EXTRA_CFLAGS=\"-DUSER_NN_BIT_LEN=4096\"\n"); in main() 443 ext_printf(" This will increase usable NN for proper DSA up to 4096 bits.\n"); in main() 444 …ext_printf(" Then recompile the current examples with the same EXTRA_CFLAGS=\"-DUSER_NN_BIT_LE… in main() 462 ext_printf("Signature result %d\n", ret); in main()
|
/freebsd/crypto/libecc/src/external_deps/ |
H A D | print.c | 21 void ext_printf(const char *format, ...) in ext_printf() function
|
/freebsd/crypto/libecc/include/libecc/external_deps/ |
H A D | print.h | 32 void ext_printf(const char *format, ...);
|
/freebsd/crypto/libecc/src/examples/sig/dsa/ |
H A D | dsa.c | 529 …ext_printf("Error: you seem to have compiled libecc with usable NN size < 4096, not suitable for D… in main() 530 ext_printf(" => Please recompile libecc with EXTRA_CFLAGS=\"-DUSER_NN_BIT_LEN=4096\"\n"); in main() 531 ext_printf(" This will increase usable NN for proper DSA up to 4096 bits.\n"); in main() 532 …ext_printf(" Then recompile the current examples with the same EXTRA_CFLAGS=\"-DUSER_NN_BIT_LE… in main() 550 ext_printf("Signature result %d\n", ret); in main()
|
/freebsd/crypto/libecc/src/examples/sig/rsa/ |
H A D | rsa_tests.h | 200 ext_printf("[-] Test %s failed (modbits = %" PRIu32 ")\n", t->name, t->modbits); in perform_rsa_tests() 204 ext_printf("[+] Test %s passed (modbits = %" PRIu32 ")\n", t->name, t->modbits); in perform_rsa_tests() 209 …ext_printf("++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\n\t=== [+] All RSA tests … in perform_rsa_tests()
|
H A D | rsa.c | 2043 …ext_printf("Error: you seem to have compiled libecc with usable NN size < 4096, not suitable for R… in main() 2044 ext_printf(" => Please recompile libecc with EXTRA_CFLAGS=\"-DUSER_NN_BIT_LEN=4096\"\n"); in main() 2045 ext_printf(" This will increase usable NN for proper RSA up to 4096 bits.\n"); in main() 2046 …ext_printf(" Then recompile the current examples with the same EXTRA_CFLAGS=\"-DUSER_NN_BIT_LE… in main()
|
/freebsd/crypto/libecc/src/examples/sig/kcdsa/ |
H A D | kcdsa.c | 733 …ext_printf("Error: you seem to have compiled libecc with usable NN size < 4096, not suitable for D… in main() 734 ext_printf(" => Please recompile libecc with EXTRA_CFLAGS=\"-DUSER_NN_BIT_LEN=4096\"\n"); in main() 735 ext_printf(" This will increase usable NN for proper DSA up to 4096 bits.\n"); in main() 736 …ext_printf(" Then recompile the current examples with the same EXTRA_CFLAGS=\"-DUSER_NN_BIT_LE… in main() 754 ext_printf("Signature result %d\n", ret); in main()
|
/freebsd/crypto/libecc/ |
H A D | meson.options | 3 option('use_external_print', type: 'boolean', value: false, description: 'use external ext_printf()…
|