/openssl/test/helpers/ |
H A D | ssl_test_ctx.c | 104 if (!parse_enum(ssl_test_results, OSSL_NELEM(ssl_test_results), in parse_expected_result() 146 return enum_name(ssl_alerts, OSSL_NELEM(ssl_alerts), alert); in ssl_alert_name() 163 return parse_enum(ssl_protocols, OSSL_NELEM(ssl_protocols), in parse_protocol() 213 if (!parse_enum(ssl_servername, OSSL_NELEM(ssl_servername), in parse_servername() 225 if (!parse_enum(ssl_servername, OSSL_NELEM(ssl_servername), in parse_expected_servername() 235 return enum_name(ssl_servername, OSSL_NELEM(ssl_servername), in ssl_servername_name() 292 OSSL_NELEM(ssl_session_ticket), in ssl_session_ticket_name() 311 if (!parse_enum(ssl_session_id, OSSL_NELEM(ssl_session_id), in parse_session_id() 322 OSSL_NELEM(ssl_session_id), in ssl_session_id_name() 337 if (!parse_enum(ssl_test_methods, OSSL_NELEM(ssl_test_methods), in parse_test_method() [all …]
|
/openssl/test/ |
H A D | quic_record_test.c | 2963 for (i = 0; i < OSSL_NELEM(counts_u[0]); ++i) { in test_hdr_prot_stats() 3201 OSSL_NELEM(tx_script_1_iovec), 3266 OSSL_NELEM(tx_script_2_iovec), 3318 OSSL_NELEM(tx_script_3_iovec), 3376 OSSL_NELEM(tx_script_4a_iovec), 3420 OSSL_NELEM(tx_script_4b_iovec), 3464 OSSL_NELEM(tx_script_4c_iovec), 3535 OSSL_NELEM(tx_script_5_iovec), 3588 OSSL_NELEM(tx_script_6_iovec), 3705 ADD_ALL_TESTS(test_rx_script, OSSL_NELEM(rx_scripts)); in setup_tests() [all …]
|
H A D | constant_time_test.c | 248 if (!TEST_uint_eq(OSSL_NELEM(test_values), OSSL_NELEM(test_values_s))) in test_sizeofs() 259 for (j = 0; j < (int)OSSL_NELEM(test_values); ++j) { in test_binops() 286 for (j = 0; j < (int)OSSL_NELEM(test_values_8); ++j) { in test_binops_8() 312 for (j = 0; j < (int)OSSL_NELEM(test_values_s); ++j) { in test_binops_s() 340 for (j = 0; j < OSSL_NELEM(signed_test_values); ++j) { in test_signed() 372 for (j = 0; j < OSSL_NELEM(test_values_32); j++) { in test_32values() 402 ADD_ALL_TESTS(test_is_zero, OSSL_NELEM(test_values)); in setup_tests() 406 ADD_ALL_TESTS(test_binops, OSSL_NELEM(test_values)); in setup_tests() 407 ADD_ALL_TESTS(test_binops_8, OSSL_NELEM(test_values_8)); in setup_tests() 408 ADD_ALL_TESTS(test_binops_s, OSSL_NELEM(test_values_s)); in setup_tests() [all …]
|
H A D | punycode_test.c | 157 unsigned int bsize = OSSL_NELEM(buffer); in test_punycode() 163 for (i = 0; i < OSSL_NELEM(tc->raw); i++) in test_punycode() 228 unsigned int buf[OSSL_NELEM(out)]; in test_puny_overrun() 229 unsigned int bsize = OSSL_NELEM(buf) - 1; in test_puny_overrun() 242 const size_t num_reps = OSSL_NELEM(string) / 2; in test_dotted_overflow() 288 ADD_ALL_TESTS(test_punycode, OSSL_NELEM(puny_cases)); in setup_tests() 292 ADD_ALL_TESTS(test_a2ulabel_bad_decode, OSSL_NELEM(bad_decode_tests)); in setup_tests()
|
H A D | threadpool_test.c | 165 for (i = 0; i < OSSL_NELEM(t); ++i) { in test_thread_internal() 196 if (!TEST_int_eq(OSSL_set_max_threads(NULL, OSSL_NELEM(t)), 1)) in test_thread_internal() 199 for (i = 0; i < OSSL_NELEM(t); ++i) { in test_thread_internal() 205 for (i = 0; i < OSSL_NELEM(t); ++i) { in test_thread_internal() 209 for (i = 0; i < OSSL_NELEM(t); ++i) { in test_thread_internal() 218 if (!TEST_int_eq(OSSL_set_max_threads(NULL, OSSL_NELEM(t) - 1), 1)) in test_thread_internal() 221 for (i = 0; i < OSSL_NELEM(t); ++i) { in test_thread_internal() 227 for (i = 0; i < OSSL_NELEM(t); ++i) { in test_thread_internal() 231 for (i = 0; i < OSSL_NELEM(t); ++i) { in test_thread_internal()
|
H A D | quic_txpim_test.c | 26 for (i = 0; i < OSSL_NELEM(pkts); ++i) { in test_txpim() 33 for (j = 0; j < OSSL_NELEM(chunks); ++j) { in test_txpim() 43 OSSL_NELEM(chunks))) in test_txpim() 55 for (i = 0; i < OSSL_NELEM(pkts); ++i) in test_txpim()
|
H A D | bio_dgram_test.c | 384 for (i = 0; i < OSSL_NELEM(tx_msg); ++i) { in test_bio_dgram_impl() 392 if (!TEST_true(do_sendmmsg(b1, tx_msg, OSSL_NELEM(tx_msg), 0, &num_processed)) in test_bio_dgram_impl() 393 || !TEST_size_t_eq(num_processed, OSSL_NELEM(tx_msg))) in test_bio_dgram_impl() 400 for (i = 0; i < OSSL_NELEM(rx_msg); ++i) { in test_bio_dgram_impl() 408 if (!TEST_true(do_recvmmsg(b2, rx_msg, OSSL_NELEM(rx_msg), 0, &num_processed)) in test_bio_dgram_impl() 409 || !TEST_size_t_eq(num_processed, OSSL_NELEM(rx_msg))) in test_bio_dgram_impl() 412 if (!TEST_mem_eq(tx_buf, OSSL_NELEM(tx_msg), rx_buf, OSSL_NELEM(tx_msg))) in test_bio_dgram_impl() 514 for (i = 0; i < OSSL_NELEM(key); ++i) in test_bio_dgram_pair() 610 if (!TEST_true(BIO_sendmmsg(bio1, msgs, sizeof(BIO_MSG), OSSL_NELEM(msgs), 0, in test_bio_dgram_pair() 659 OSSL_NELEM(msgs), 0, &num_processed)) in test_bio_dgram_pair() [all …]
|
H A D | property_test.c | 392 for (i = 0; i < OSSL_NELEM(impls); i++) in test_register_deregister() 401 for (i = 0; i < OSSL_NELEM(impls); i++) { in test_register_deregister() 402 const size_t j = (1 + i * 3) % OSSL_NELEM(impls); in test_register_deregister() 466 for (i = 0; i < OSSL_NELEM(impls); i++) in test_property() 478 for (i = 0; i < OSSL_NELEM(queries); i++) { in test_property() 495 for (i = 0; i < OSSL_NELEM(queries); i++) { in test_property() 527 for (i = 0; i < OSSL_NELEM(queries); i++) { in test_property() 694 ADD_ALL_TESTS(test_property_parse, OSSL_NELEM(parser_tests)); in setup_tests() 695 ADD_ALL_TESTS(test_property_parse_error, OSSL_NELEM(parse_error_tests)); in setup_tests() 696 ADD_ALL_TESTS(test_property_merge, OSSL_NELEM(merge_tests)); in setup_tests() [all …]
|
H A D | v3nametest.c | 662 * OSSL_NELEM(gennames)); in test_GENERAL_NAME_cmp() 664 * OSSL_NELEM(gennames)); in test_GENERAL_NAME_cmp() 670 for (i = 0; i < OSSL_NELEM(gennames); i++) { in test_GENERAL_NAME_cmp() 685 for (i = 0; i < OSSL_NELEM(gennames); i++) { in test_GENERAL_NAME_cmp() 686 for (j = 0; j < OSSL_NELEM(gennames); j++) { in test_GENERAL_NAME_cmp() 699 for (i = 0; i < OSSL_NELEM(gennames); i++) { in test_GENERAL_NAME_cmp() 713 ADD_ALL_TESTS(call_run_cert, OSSL_NELEM(name_fns)); in setup_tests()
|
H A D | quic_stream_test.c | 56 num_iov = OSSL_NELEM(iov); in test_sstream_simple() 72 num_iov = OSSL_NELEM(iov); in test_sstream_simple() 89 num_iov = OSSL_NELEM(iov); in test_sstream_simple() 105 num_iov = OSSL_NELEM(iov); in test_sstream_simple() 115 num_iov = OSSL_NELEM(iov); in test_sstream_simple() 132 num_iov = OSSL_NELEM(iov); in test_sstream_simple() 159 num_iov = OSSL_NELEM(iov); in test_sstream_simple() 173 num_iov = OSSL_NELEM(iov); in test_sstream_simple() 184 num_iov = OSSL_NELEM(iov); in test_sstream_simple() 198 num_iov = OSSL_NELEM(iov); in test_sstream_simple() [all …]
|
H A D | quic_wire_test.c | 83 OSSL_NELEM(encode_case_3_ranges), 104 f.num_ack_ranges = OSSL_NELEM(ranges); in encode_case_3_dec() 1194 OSSL_NELEM(encode_case_##n##_expect), \ 1386 f.num_ack_ranges = OSSL_NELEM(ranges); in ack_generic_decode() 1606 OSSL_NELEM(non_minimal_1), 1607 OSSL_NELEM(non_minimal_2), 1608 OSSL_NELEM(non_minimal_3), 1609 OSSL_NELEM(non_minimal_4), 1610 OSSL_NELEM(non_minimal_5), 1611 OSSL_NELEM(non_minimal_6), [all …]
|
H A D | stack_test.c | 57 const int n = OSSL_NELEM(v); in test_int_stack() 70 const int n_finds = OSSL_NELEM(finds); in test_int_stack() 82 const int n_exfinds = OSSL_NELEM(exfinds); in test_int_stack() 177 const int n = OSSL_NELEM(v); in test_uchar_stack() 276 const int n = OSSL_NELEM(v); in test_SS_stack() 349 const int n = OSSL_NELEM(v); in test_SU_stack()
|
H A D | quic_fc_test.c | 501 if (!TEST_size_t_lt(op->stream_idx, OSSL_NELEM(stream_rxfc)) in run_rxfc_script() 515 if (!TEST_true(conn_init_done && op->stream_idx < OSSL_NELEM(stream_rxfc) in run_rxfc_script() 527 if (!TEST_true(conn_init_done && op->stream_idx < OSSL_NELEM(stream_rxfc) in run_rxfc_script() 546 if (!TEST_true(op->stream_idx < OSSL_NELEM(stream_rxfc) in run_rxfc_script() 561 if (!TEST_true(op->stream_idx < OSSL_NELEM(stream_rxfc) in run_rxfc_script() 576 if (!TEST_true(op->stream_idx < OSSL_NELEM(stream_rxfc) in run_rxfc_script() 592 if (!TEST_true(op->stream_idx < OSSL_NELEM(stream_rxfc) in run_rxfc_script() 609 if (!TEST_true(op->stream_idx < OSSL_NELEM(stream_rxfc) in run_rxfc_script() 641 ADD_ALL_TESTS(test_rxfc, OSSL_NELEM(rx_scripts)); in setup_tests()
|
H A D | endecoder_legacy_test.c | 279 for (i = 0; i < OSSL_NELEM(keys); i++) { in lookup_key() 532 for (i = 0; i < OSSL_NELEM(test_stanza->structure); i++) { in test_key() 552 for (i = 0; i < OSSL_NELEM(test_stanza->structure); i++) { in test_key() 570 for (i = 0; i < OSSL_NELEM(test_stanza->structure); i++) { in test_key() 607 for (i = 0; i < OSSL_NELEM(test_stanza->structure); i++) { in test_key() 627 for (i = 0; i < OSSL_NELEM(test_stanza->structure); i++) { in test_key() 645 for (i = 0; i < OSSL_NELEM(test_stanza->structure); i++) { in test_key() 696 for (i = 0; i < OSSL_NELEM(keys); i++) { in OPT_TEST_DECLARE_USAGE() 721 ADD_ALL_TESTS(test_key, OSSL_NELEM(test_stanzas)); in OPT_TEST_DECLARE_USAGE() 729 for (i = 0; i < OSSL_NELEM(keys); i++) in cleanup_tests()
|
H A D | sparse_array_test.c | 49 for (i = 0; i < OSSL_NELEM(cases); i++) { in test_sparse_array() 87 for (i = 0; i < OSSL_NELEM(cases); i++) in test_sparse_array_num() 157 doall_data.num_cases = OSSL_NELEM(cases); in test_sparse_array_doall() 161 for (i = 0; i < OSSL_NELEM(cases); i++) in test_sparse_array_doall()
|
H A D | asn1_internal_test.c | 41 for (tmp = tbl_standard, i = 0; i < OSSL_NELEM(tbl_standard); i++, tmp++) { in test_tbl_standard() 55 for (tmp = tbl_standard, i = 0; i < OSSL_NELEM(tbl_standard); i++, tmp++) in test_tbl_standard() 78 for (tmp = standard_methods, i = 0; i < OSSL_NELEM(standard_methods); in test_standard_methods() 108 for (tmp = standard_methods, i = 0; i < OSSL_NELEM(standard_methods); in test_standard_methods()
|
H A D | bioprinttest.c | 194 for (i = 0; i < (int)OSSL_NELEM(fspecs); i++) { in dofptest() 289 ADD_ALL_TESTS(test_fp, OSSL_NELEM(pw_params)); in setup_tests() 290 ADD_ALL_TESTS(test_zu, OSSL_NELEM(zu_data)); in setup_tests() 291 ADD_ALL_TESTS(test_j, OSSL_NELEM(jf_data)); in setup_tests()
|
/openssl/crypto/bn/ |
H A D | bn_srp.c | 53 OSSL_NELEM(bn_group_1024_value), 54 OSSL_NELEM(bn_group_1024_value), 88 OSSL_NELEM(bn_group_1536_value), 89 OSSL_NELEM(bn_group_1536_value), 131 OSSL_NELEM(bn_group_2048_value), 132 OSSL_NELEM(bn_group_2048_value), 190 OSSL_NELEM(bn_group_3072_value), 191 OSSL_NELEM(bn_group_3072_value), 265 OSSL_NELEM(bn_group_4096_value), 266 OSSL_NELEM(bn_group_4096_value), [all …]
|
/openssl/providers/implementations/rands/seeding/ |
H A D | rand_vms.c | 347 ILE3 JPI_items_64bit[OSSL_NELEM(JPI_item_data_64bit) + 1]; in data_collect_method() 349 ILE3 DVI_items[OSSL_NELEM(DVI_item_data) + 1]; in data_collect_method() 350 ILE3 JPI_items[OSSL_NELEM(JPI_item_data) + 1]; in data_collect_method() 351 ILE3 RMI_items[OSSL_NELEM(RMI_item_data) + 1]; in data_collect_method() 352 ILE3 SYI_items[OSSL_NELEM(SYI_item_data) + 1]; in data_collect_method() 356 uint32_t buffer[OSSL_NELEM(JPI_item_data_64bit) * 2 in data_collect_method() 357 + OSSL_NELEM(RMI_item_data_64bit) * 2 in data_collect_method() 358 + OSSL_NELEM(DVI_item_data) in data_collect_method() 359 + OSSL_NELEM(JPI_item_data) in data_collect_method() 360 + OSSL_NELEM(RMI_item_data) in data_collect_method() [all …]
|
/openssl/crypto/hpke/ |
H A D | hpke_util.c | 158 int i, sz = OSSL_NELEM(hpke_kem_tab); in ossl_HPKE_KEM_INFO_find_curve() 174 int i, sz = OSSL_NELEM(hpke_kem_tab); in ossl_HPKE_KEM_INFO_find_id() 196 size_t sz = OSSL_NELEM(hpke_kem_tab); in ossl_HPKE_KEM_INFO_find_random() 204 int i, sz = OSSL_NELEM(hpke_kdf_tab); in ossl_HPKE_KDF_INFO_find_id() 218 size_t sz = OSSL_NELEM(hpke_kdf_tab); in ossl_HPKE_KDF_INFO_find_random() 226 int i, sz = OSSL_NELEM(hpke_aead_tab); in ossl_HPKE_AEAD_INFO_find_id() 241 size_t sz = OSSL_NELEM(hpke_aead_tab) - 1; in ossl_HPKE_AEAD_INFO_find_random() 437 for (j = 0; j < OSSL_NELEM(synp[i].synonyms); ++j) { in synonyms_name2id() 501 OSSL_NELEM(kemstrtab))) == 0) in ossl_hpke_str2suite() 505 OSSL_NELEM(kdfstrtab))) == 0) in ossl_hpke_str2suite() [all …]
|
/openssl/crypto/evp/ |
H A D | ec_support.c | 125 for (i = 0; i < OSSL_NELEM(curve_list); i++) { in OSSL_EC_curve_nid2name() 141 for (i = 0; i < OSSL_NELEM(curve_list); i++) { in ossl_ec_curve_name2nid() 173 for (i = 0; i < OSSL_NELEM(nist_curves); i++) { in ossl_ec_curve_nid2nist_int() 183 for (i = 0; i < OSSL_NELEM(nist_curves); i++) { in ossl_ec_curve_nist2nid_int()
|
H A D | dh_support.c | 42 for (i = 0; i < OSSL_NELEM(dhtype2id); ++i) { in ossl_dh_gen_type_id2name() 54 for (i = 0; i < OSSL_NELEM(dhtype2id); ++i) { in ossl_dh_gen_type_name2id()
|
/openssl/crypto/x509/ |
H A D | v3_tlsf.c | 71 for (j = 0; j < OSSL_NELEM(tls_feature_tbl); j++) in STACK_OF() 74 if (j < OSSL_NELEM(tls_feature_tbl)) in STACK_OF() 110 for (j = 0; j < OSSL_NELEM(tls_feature_tbl); j++) in v2i_TLS_FEATURE() 113 if (j < OSSL_NELEM(tls_feature_tbl)) in v2i_TLS_FEATURE()
|
/openssl/engines/ |
H A D | e_devcrypto.c | 173 for (i = 0; i < OSSL_NELEM(cipher_data); i++) in find_cipher_data_index() 407 static int known_cipher_nids[OSSL_NELEM(cipher_data)]; 410 static int selected_ciphers[OSSL_NELEM(cipher_data)]; 444 i < OSSL_NELEM(cipher_data); i++) { in prepare_cipher_methods() 574 for (i = 0; i < OSSL_NELEM(cipher_data); i++) { in destroy_all_cipher_methods() 596 for (i = 0; i < OSSL_NELEM(cipher_data); i++) in devcrypto_select_all_ciphers() 632 for (i = 0; i < OSSL_NELEM(cipher_data); i++) { in dump_cipher_info() 715 for (i = 0; i < OSSL_NELEM(digest_data); i++) in find_digest_data_index() 1004 for (i = 0; i < OSSL_NELEM(digest_data); i++) { in destroy_all_digest_methods() 1026 for (i = 0; i < OSSL_NELEM(digest_data); i++) in devcrypto_select_all_digests() [all …]
|
/openssl/crypto/asn1/ |
H A D | asn1_item_list.c | 32 for (i = 0; i < OSSL_NELEM(asn1_item_list); i++) { in ASN1_ITEM_lookup() 43 if (i >= OSSL_NELEM(asn1_item_list)) in ASN1_ITEM_get()
|