Lines Matching refs:count

128 static void print_result(int alg, int run_no, int count, double time_used);
515 #define COND(unused_cond) (run && count < (testmode ? 1 : INT_MAX))
516 #define COUNT(d) (count)
638 int count; in EVP_Digest_loop() local
647 count = -1; in EVP_Digest_loop()
651 for (count = 0; COND(c[algindex][testnum]); count++) { in EVP_Digest_loop()
655 count = -1; in EVP_Digest_loop()
660 for (count = 0; COND(c[algindex][testnum]); count++) { in EVP_Digest_loop()
663 count = -1; in EVP_Digest_loop()
671 return count; in EVP_Digest_loop()
740 int count; in EVP_MAC_loop() local
742 for (count = 0; COND(c[algindex][testnum]); count++) { in EVP_MAC_loop()
750 return count; in EVP_MAC_loop()
804 int count; in EVP_Cipher_loop() local
808 for (count = 0; COND(c[algindex][testnum]); count++) in EVP_Cipher_loop()
811 return count; in EVP_Cipher_loop()
819 int count; in GHASH_loop() local
822 for (count = 0; COND(c[D_GHASH][testnum]); count++) { in GHASH_loop()
826 return count; in GHASH_loop()
873 int count; in RAND_bytes_loop() local
875 for (count = 0; COND(c[D_RAND][testnum]); count++) in RAND_bytes_loop()
877 return count; in RAND_bytes_loop()
886 int outl, count, rc; in EVP_Update_loop() local
889 for (count = 0; COND(c[D_EVP][testnum]); count++) { in EVP_Update_loop()
897 for (count = 0; COND(c[D_EVP][testnum]); count++) { in EVP_Update_loop()
912 return count; in EVP_Update_loop()
929 int outl, count, realcount = 0; in EVP_Update_loop_aead_enc() local
931 for (count = 0; COND(c[D_EVP][testnum]); count++) { in EVP_Update_loop_aead_enc()
1001 int outl, count, realcount = 0; in EVP_Update_loop_aead_dec() local
1003 for (count = 0; COND(c[D_EVP][testnum]); count++) { in EVP_Update_loop_aead_dec()
1080 int ret, count; in RSA_sign_loop() local
1082 for (count = 0; COND(rsa_c[testnum][0]); count++) { in RSA_sign_loop()
1088 count = -1; in RSA_sign_loop()
1092 return count; in RSA_sign_loop()
1102 int ret, count; in RSA_verify_loop() local
1104 for (count = 0; COND(rsa_c[testnum][1]); count++) { in RSA_verify_loop()
1109 count = -1; in RSA_verify_loop()
1113 return count; in RSA_verify_loop()
1123 int ret, count; in RSA_encrypt_loop() local
1125 for (count = 0; COND(rsa_c[testnum][2]); count++) { in RSA_encrypt_loop()
1131 count = -1; in RSA_encrypt_loop()
1135 return count; in RSA_encrypt_loop()
1145 int ret, count; in RSA_decrypt_loop() local
1147 for (count = 0; COND(rsa_c[testnum][3]); count++) { in RSA_decrypt_loop()
1153 count = -1; in RSA_decrypt_loop()
1157 return count; in RSA_decrypt_loop()
1167 int count; in FFDH_derive_key_loop() local
1169 for (count = 0; COND(ffdh_c[testnum][0]); count++) { in FFDH_derive_key_loop()
1175 return count; in FFDH_derive_key_loop()
1187 int ret, count; in DSA_sign_loop() local
1189 for (count = 0; COND(dsa_c[testnum][0]); count++) { in DSA_sign_loop()
1195 count = -1; in DSA_sign_loop()
1199 return count; in DSA_sign_loop()
1209 int ret, count; in DSA_verify_loop() local
1211 for (count = 0; COND(dsa_c[testnum][1]); count++) { in DSA_verify_loop()
1216 count = -1; in DSA_verify_loop()
1220 return count; in DSA_verify_loop()
1231 int ret, count; in ECDSA_sign_loop() local
1233 for (count = 0; COND(ecdsa_c[testnum][0]); count++) { in ECDSA_sign_loop()
1239 count = -1; in ECDSA_sign_loop()
1243 return count; in ECDSA_sign_loop()
1253 int ret, count; in ECDSA_verify_loop() local
1255 for (count = 0; COND(ecdsa_c[testnum][1]); count++) { in ECDSA_verify_loop()
1261 count = -1; in ECDSA_verify_loop()
1265 return count; in ECDSA_verify_loop()
1275 int count; in ECDH_EVP_derive_key_loop() local
1278 for (count = 0; COND(ecdh_c[testnum][0]); count++) in ECDH_EVP_derive_key_loop()
1281 return count; in ECDH_EVP_derive_key_loop()
1292 int ret, count; in EdDSA_sign_loop() local
1294 for (count = 0; COND(eddsa_c[testnum][0]); count++) { in EdDSA_sign_loop()
1299 count = -1; in EdDSA_sign_loop()
1306 count = -1; in EdDSA_sign_loop()
1310 return count; in EdDSA_sign_loop()
1320 int ret, count; in EdDSA_verify_loop() local
1322 for (count = 0; COND(eddsa_c[testnum][1]); count++) { in EdDSA_verify_loop()
1327 count = -1; in EdDSA_verify_loop()
1334 count = -1; in EdDSA_verify_loop()
1338 return count; in EdDSA_verify_loop()
1350 int ret, count; in SM2_sign_loop() local
1354 for (count = 0; COND(sm2_c[testnum][0]); count++) { in SM2_sign_loop()
1361 count = -1; in SM2_sign_loop()
1369 count = -1; in SM2_sign_loop()
1376 return count; in SM2_sign_loop()
1386 int ret, count; in SM2_verify_loop() local
1389 for (count = 0; COND(sm2_c[testnum][1]); count++) { in SM2_verify_loop()
1394 count = -1; in SM2_verify_loop()
1402 count = -1; in SM2_verify_loop()
1406 return count; in SM2_verify_loop()
1415 int count; in KEM_keygen_loop() local
1417 for (count = 0; COND(kems_c[testnum][0]); count++) { in KEM_keygen_loop()
1430 return count; in KEM_keygen_loop()
1441 int count; in KEM_encaps_loop() local
1443 for (count = 0; COND(kems_c[testnum][1]); count++) { in KEM_encaps_loop()
1447 return count; in KEM_encaps_loop()
1458 int count; in KEM_decaps_loop() local
1460 for (count = 0; COND(kems_c[testnum][2]); count++) { in KEM_decaps_loop()
1464 return count; in KEM_decaps_loop()
1472 int count; in SIG_keygen_loop() local
1474 for (count = 0; COND(kems_c[testnum][0]); count++) { in SIG_keygen_loop()
1480 return count; in SIG_keygen_loop()
1492 int count; in SIG_sign_loop() local
1494 for (count = 0; COND(kems_c[testnum][1]); count++) { in SIG_sign_loop()
1499 BIO_printf(bio_err, "SIG sign failure at count %d\n", count); in SIG_sign_loop()
1501 count = -1; in SIG_sign_loop()
1506 return count; in SIG_sign_loop()
1517 int count; in SIG_verify_loop() local
1519 for (count = 0; COND(kems_c[testnum][2]); count++) { in SIG_verify_loop()
1523 BIO_printf(bio_err, "SIG verify failure at count %d\n", count); in SIG_verify_loop()
1525 count = -1; in SIG_verify_loop()
1530 return count; in SIG_verify_loop()
1894 long count = 0; in speed_main() local
2623 count = run_benchmark(async_jobs, EVP_Digest_MD2_loop, loopargs); in speed_main()
2625 print_result(D_MD2, testnum, count, d); in speed_main()
2626 if (count < 0) in speed_main()
2635 count = run_benchmark(async_jobs, EVP_Digest_MDC2_loop, loopargs); in speed_main()
2637 print_result(D_MDC2, testnum, count, d); in speed_main()
2638 if (count < 0) in speed_main()
2647 count = run_benchmark(async_jobs, EVP_Digest_MD4_loop, loopargs); in speed_main()
2649 print_result(D_MD4, testnum, count, d); in speed_main()
2650 if (count < 0) in speed_main()
2659 count = run_benchmark(async_jobs, MD5_loop, loopargs); in speed_main()
2661 print_result(D_MD5, testnum, count, d); in speed_main()
2662 if (count < 0) in speed_main()
2671 count = run_benchmark(async_jobs, SHA1_loop, loopargs); in speed_main()
2673 print_result(D_SHA1, testnum, count, d); in speed_main()
2674 if (count < 0) in speed_main()
2683 count = run_benchmark(async_jobs, SHA256_loop, loopargs); in speed_main()
2685 print_result(D_SHA256, testnum, count, d); in speed_main()
2686 if (count < 0) in speed_main()
2695 count = run_benchmark(async_jobs, SHA512_loop, loopargs); in speed_main()
2697 print_result(D_SHA512, testnum, count, d); in speed_main()
2698 if (count < 0) in speed_main()
2707 count = run_benchmark(async_jobs, WHIRLPOOL_loop, loopargs); in speed_main()
2709 print_result(D_WHIRLPOOL, testnum, count, d); in speed_main()
2710 if (count < 0) in speed_main()
2719 count = run_benchmark(async_jobs, EVP_Digest_RMD160_loop, loopargs); in speed_main()
2721 print_result(D_RMD160, testnum, count, d); in speed_main()
2722 if (count < 0) in speed_main()
2752 count = run_benchmark(async_jobs, HMAC_loop, loopargs); in speed_main()
2754 print_result(D_HMAC, testnum, count, d); in speed_main()
2755 if (count < 0) in speed_main()
2775 count = run_benchmark(async_jobs, EVP_Cipher_loop, loopargs); in speed_main()
2777 print_result(D_CBC_DES, testnum, count, d); in speed_main()
2797 count = in speed_main()
2800 print_result(D_EDE3_DES, testnum, count, d); in speed_main()
2823 count = in speed_main()
2826 print_result(algindex, testnum, count, d); in speed_main()
2850 count = in speed_main()
2853 print_result(algindex, testnum, count, d); in speed_main()
2876 count = in speed_main()
2879 print_result(algindex, testnum, count, d); in speed_main()
2908 count = run_benchmark(async_jobs, GHASH_loop, loopargs); in speed_main()
2910 print_result(D_GHASH, testnum, count, d); in speed_main()
2911 if (count < 0) in speed_main()
2921 count = run_benchmark(async_jobs, RAND_bytes_loop, loopargs); in speed_main()
2923 print_result(D_RAND, testnum, count, d); in speed_main()
3112 count = run_benchmark(async_jobs, loopfunc, loopargs); in speed_main()
3118 print_result(D_EVP, testnum, count, d); in speed_main()
3126 count = run_benchmark(async_jobs, EVP_Digest_md_loop, loopargs); in speed_main()
3128 print_result(D_EVP, testnum, count, d); in speed_main()
3129 if (count < 0) in speed_main()
3164 count = run_benchmark(async_jobs, CMAC_loop, loopargs); in speed_main()
3166 print_result(D_EVP_CMAC, testnum, count, d); in speed_main()
3167 if (count < 0) in speed_main()
3185 count = run_benchmark(async_jobs, KMAC128_loop, loopargs); in speed_main()
3187 print_result(D_KMAC128, testnum, count, d); in speed_main()
3188 if (count < 0) in speed_main()
3206 count = run_benchmark(async_jobs, KMAC256_loop, loopargs); in speed_main()
3208 print_result(D_KMAC256, testnum, count, d); in speed_main()
3209 if (count < 0) in speed_main()
3268 count = run_benchmark(async_jobs, RSA_sign_loop, loopargs); in speed_main()
3273 count, rsa_keys[testnum].bits, d); in speed_main()
3274 rsa_results[testnum][0] = (double)count / d; in speed_main()
3275 op_count = count; in speed_main()
3298 count = run_benchmark(async_jobs, RSA_verify_loop, loopargs); in speed_main()
3303 count, rsa_keys[testnum].bits, d); in speed_main()
3304 rsa_results[testnum][1] = (double)count / d; in speed_main()
3328 count = run_benchmark(async_jobs, RSA_encrypt_loop, loopargs); in speed_main()
3333 count, rsa_keys[testnum].bits, d); in speed_main()
3334 rsa_results[testnum][2] = (double)count / d; in speed_main()
3335 op_count = count; in speed_main()
3360 count = run_benchmark(async_jobs, RSA_decrypt_loop, loopargs); in speed_main()
3365 count, rsa_keys[testnum].bits, d); in speed_main()
3366 rsa_results[testnum][3] = (double)count / d; in speed_main()
3367 op_count = count; in speed_main()
3408 count = run_benchmark(async_jobs, DSA_sign_loop, loopargs); in speed_main()
3413 count, dsa_bits[testnum], d); in speed_main()
3414 dsa_results[testnum][0] = (double)count / d; in speed_main()
3415 op_count = count; in speed_main()
3438 count = run_benchmark(async_jobs, DSA_verify_loop, loopargs); in speed_main()
3443 count, dsa_bits[testnum], d); in speed_main()
3444 dsa_results[testnum][1] = (double)count / d; in speed_main()
3485 count = run_benchmark(async_jobs, ECDSA_sign_loop, loopargs); in speed_main()
3490 count, ec_curves[testnum].bits, d); in speed_main()
3491 ecdsa_results[testnum][0] = (double)count / d; in speed_main()
3492 op_count = count; in speed_main()
3515 count = run_benchmark(async_jobs, ECDSA_verify_loop, loopargs); in speed_main()
3520 count, ec_curves[testnum].bits, d); in speed_main()
3521 ecdsa_results[testnum][1] = (double)count / d; in speed_main()
3602 count = in speed_main()
3607 "%ld %u-bits ECDH ops in %.2fs\n", count, in speed_main()
3609 ecdh_results[testnum][0] = (double)count / d; in speed_main()
3610 op_count = count; in speed_main()
3688 count = run_benchmark(async_jobs, EdDSA_sign_loop, loopargs); in speed_main()
3694 count, ed_curves[testnum].bits, in speed_main()
3696 eddsa_results[testnum][0] = (double)count / d; in speed_main()
3697 op_count = count; in speed_main()
3716 count = run_benchmark(async_jobs, EdDSA_verify_loop, loopargs); in speed_main()
3721 count, ed_curves[testnum].bits, in speed_main()
3723 eddsa_results[testnum][1] = (double)count / d; in speed_main()
3819 count = run_benchmark(async_jobs, SM2_sign_loop, loopargs); in speed_main()
3825 count, sm2_curves[testnum].bits, in speed_main()
3827 sm2_results[testnum][0] = (double)count / d; in speed_main()
3828 op_count = count; in speed_main()
3848 count = run_benchmark(async_jobs, SM2_verify_loop, loopargs); in speed_main()
3853 count, sm2_curves[testnum].bits, in speed_main()
3855 sm2_results[testnum][1] = (double)count / d; in speed_main()
4033 count = in speed_main()
4038 "%ld %u-bits FFDH ops in %.2fs\n", count, in speed_main()
4040 ffdh_results[testnum][0] = (double)count / d; in speed_main()
4041 op_count = count; in speed_main()
4202 count = in speed_main()
4207 "%ld %s KEM keygen ops in %.2fs\n", count, in speed_main()
4209 kems_results[testnum][0] = (double)count / d; in speed_main()
4210 op_count = count; in speed_main()
4213 count = in speed_main()
4218 "%ld %s KEM encaps ops in %.2fs\n", count, in speed_main()
4220 kems_results[testnum][1] = (double)count / d; in speed_main()
4221 op_count = count; in speed_main()
4224 count = in speed_main()
4229 "%ld %s KEM decaps ops in %.2fs\n", count, in speed_main()
4231 kems_results[testnum][2] = (double)count / d; in speed_main()
4232 op_count = count; in speed_main()
4383 count = run_benchmark(async_jobs, SIG_keygen_loop, loopargs); in speed_main()
4387 "%ld %s signature keygen ops in %.2fs\n", count, in speed_main()
4389 sigs_results[testnum][0] = (double)count / d; in speed_main()
4390 op_count = count; in speed_main()
4393 count = in speed_main()
4398 "%ld %s signature sign ops in %.2fs\n", count, in speed_main()
4400 sigs_results[testnum][1] = (double)count / d; in speed_main()
4401 op_count = count; in speed_main()
4405 count = in speed_main()
4410 "%ld %s signature verify ops in %.2fs\n", count, in speed_main()
4412 sigs_results[testnum][2] = (double)count / d; in speed_main()
4413 op_count = count; in speed_main()
4785 static void print_result(int alg, int run_no, int count, double time_used) in print_result() argument
4787 if (count == -1) { in print_result()
4794 : "%d %s ops in %.2fs\n", count, names[alg], time_used); in print_result()
4795 results[alg][run_no] = ((double)count) / time_used * lengths[run_no]; in print_result()
5056 int j, count, keylen, num = OSSL_NELEM(mblengths_list), ciph_success = 1; in multiblock_speed() local
5094 for (count = 0; run && COND(count); count++) { in multiblock_speed()
5135 : "%d %s ops in %.2fs\n", count, "evp", d); in multiblock_speed()
5138 results[D_EVP][j] = ((double)count) / d * mblengths[j]; in multiblock_speed()