Home
last modified time | relevance | path

Searched refs:ext_printf (Results 1 – 22 of 22) sorted by relevance

/freebsd/crypto/libecc/src/wycheproof_tests/
H A Dlibecc_wycheproof.c45 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()
117ext_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()
124ext_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 Dfp_square_residue.c69 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 Dcurve_basic_examples.c84 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 Dcurve_ecdh.c129 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 Dnn_pollard_rho.c146 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 Dec_self_tests.c92 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()
133ext_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 Dec_self_tests_core.c44 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 Dprint_curves.c31 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 Dprint_buf.c23 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 Dprint_nn.c26 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 Dprint_fp.c26 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 Dsss.c504 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 Dutils.h56 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 Dgostr34_10_94.c485ext_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()
488ext_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 Dsdsa.c441ext_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()
444ext_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 Dprint.c21 void ext_printf(const char *format, ...) in ext_printf() function
/freebsd/crypto/libecc/include/libecc/external_deps/
H A Dprint.h32 void ext_printf(const char *format, ...);
/freebsd/crypto/libecc/src/examples/sig/dsa/
H A Ddsa.c529ext_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()
532ext_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 Drsa_tests.h200 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()
209ext_printf("++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\n\t=== [+] All RSA tests … in perform_rsa_tests()
H A Drsa.c2043ext_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()
2046ext_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 Dkcdsa.c733ext_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()
736ext_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 Dmeson.options3 option('use_external_print', type: 'boolean', value: false, description: 'use external ext_printf()…