Home
last modified time | relevance | path

Searched refs:ctx2 (Results 1 – 21 of 21) sorted by relevance

/netbsd/src/crypto/external/bsd/openssl/dist/test/
Dssl_test_ctx_test.c75 static int testctx_eq(SSL_TEST_CTX *ctx, SSL_TEST_CTX *ctx2) in testctx_eq() argument
77 if (!TEST_int_eq(ctx->method, ctx2->method) in testctx_eq()
78 || !TEST_int_eq(ctx->handshake_mode, ctx2->handshake_mode) in testctx_eq()
79 || !TEST_int_eq(ctx->app_data_size, ctx2->app_data_size) in testctx_eq()
80 || !TEST_int_eq(ctx->max_fragment_size, ctx2->max_fragment_size) in testctx_eq()
81 || !extraconf_eq(&ctx->extra, &ctx2->extra) in testctx_eq()
82 || !extraconf_eq(&ctx->resume_extra, &ctx2->resume_extra) in testctx_eq()
83 || !TEST_int_eq(ctx->expected_result, ctx2->expected_result) in testctx_eq()
85 ctx2->expected_client_alert) in testctx_eq()
87 ctx2->expected_server_alert) in testctx_eq()
[all …]
Dsm3_internal_test.c59 SM3_CTX ctx1, ctx2; in test_sm3() local
68 if (!TEST_true(ossl_sm3_init(&ctx2)) in test_sm3()
69 || !TEST_true(ossl_sm3_update(&ctx2, input2, sizeof(input2))) in test_sm3()
70 || !TEST_true(ossl_sm3_final(md2, &ctx2)) in test_sm3()
Dcmactest.c171 CMAC_CTX *ctx = NULL, *ctx2 = NULL; in test_cmac_copy() local
177 ctx2 = CMAC_CTX_new(); in test_cmac_copy()
178 if (!TEST_ptr(ctx) || !TEST_ptr(ctx2)) in test_cmac_copy()
184 || !TEST_true(CMAC_CTX_copy(ctx2, ctx)) in test_cmac_copy()
185 || !TEST_true(CMAC_Final(ctx2, buf, &len))) in test_cmac_copy()
194 CMAC_CTX_free(ctx2); in test_cmac_copy()
Dhmactest.c223 HMAC_CTX *ctx = NULL, *ctx2 = NULL; in test_hmac_copy() local
229 ctx2 = HMAC_CTX_new(); in test_hmac_copy()
230 if (!TEST_ptr(ctx) || !TEST_ptr(ctx2)) in test_hmac_copy()
235 || !TEST_true(HMAC_CTX_copy(ctx2, ctx)) in test_hmac_copy()
236 || !TEST_true(HMAC_Final(ctx2, buf, &len))) in test_hmac_copy()
245 HMAC_CTX_free(ctx2); in test_hmac_copy()
Dkeymgmt_internal_test.c33 OSSL_LIB_CTX *ctx2; member
46 OSSL_LIB_CTX_free(fixture->ctx2); in tear_down()
59 || !TEST_ptr(fixture->ctx2 = OSSL_LIB_CTX_new()) in set_up()
60 || !TEST_ptr(fixture->prov2 = OSSL_PROVIDER_load(fixture->ctx2, in set_up()
222 || !TEST_ptr(km2 = EVP_KEYMGMT_fetch(fixture->ctx2, "RSA", NULL)) in test_pass_rsa()
Devp_pkey_provided_test.c919 EVP_PKEY_CTX *ctx = NULL, *ctx2 = NULL; in test_fromdata_ecx() local
1110 if (!TEST_ptr(ctx2 = EVP_PKEY_CTX_new_from_pkey(NULL, pk, NULL))) in test_fromdata_ecx()
1113 if (!TEST_int_gt(EVP_PKEY_check(ctx2), 0)) in test_fromdata_ecx()
1130 if (!TEST_int_gt(EVP_PKEY_public_check(ctx2), 0) in test_fromdata_ecx()
1131 || !TEST_int_le(EVP_PKEY_private_check(ctx2), 0) in test_fromdata_ecx()
1132 || !TEST_int_le(EVP_PKEY_check(ctx2), 0)) in test_fromdata_ecx()
1135 EVP_PKEY_CTX_free(ctx2); in test_fromdata_ecx()
1136 ctx2 = NULL; in test_fromdata_ecx()
1142 if (!TEST_ptr(ctx2 = EVP_PKEY_CTX_new_from_pkey(NULL, copy_pk, NULL)) in test_fromdata_ecx()
1144 || !TEST_int_le(EVP_PKEY_public_check(ctx2), 0)) in test_fromdata_ecx()
[all …]
Devp_extra_test.c2369 EVP_PKEY_CTX *ctx2 = NULL; in test_EVP_PKEY_check() local
2399 ctx2 = EVP_PKEY_CTX_new_id(0xdefaced, NULL); in test_EVP_PKEY_check()
2402 ctx2->pkey = pkey; in test_EVP_PKEY_check()
2404 if (!TEST_int_eq(EVP_PKEY_check(ctx2), 0xbeef)) in test_EVP_PKEY_check()
2407 if (!TEST_int_eq(EVP_PKEY_public_check(ctx2), 0xbeef)) in test_EVP_PKEY_check()
2410 if (!TEST_int_eq(EVP_PKEY_param_check(ctx2), 0xbeef)) in test_EVP_PKEY_check()
2419 EVP_PKEY_CTX_free(ctx2); in test_EVP_PKEY_check()
4960 EVP_CIPHER_CTX *ctx = NULL, *ctx2 = NULL; in test_cipher_with_engine() local
4973 || !TEST_ptr(ctx2 = EVP_CIPHER_CTX_new())) in test_cipher_with_engine()
4980 if (!TEST_true(EVP_CIPHER_CTX_copy(ctx2, ctx))) in test_cipher_with_engine()
[all …]
/netbsd/src/crypto/external/bsd/openssl/dist/crypto/rsa/
Drsa_x931g.c31 BN_CTX *ctx = NULL, *ctx2 = NULL; in RSA_X931_derive_ex() local
113 ctx2 = BN_CTX_new(); in RSA_X931_derive_ex()
114 if (ctx2 == NULL) in RSA_X931_derive_ex()
117 rsa->d = BN_mod_inverse(NULL, rsa->e, r0, ctx2); /* d */ in RSA_X931_derive_ex()
136 rsa->iqmp = BN_mod_inverse(NULL, rsa->q, rsa->p, ctx2); in RSA_X931_derive_ex()
145 BN_CTX_free(ctx2); in RSA_X931_derive_ex()
/netbsd/src/crypto/external/bsd/openssl/dist/apps/
Ds_server.c82 static SSL_CTX *ctx2 = NULL; variable
438 if (ctx2 != NULL) { in ssl_servername_cb()
440 SSL_set_SSL_CTX(s, ctx2); in ssl_servername_cb()
1062 ctx = ctx2 = NULL; in s_server_main()
1965 ctx2 = SSL_CTX_new_ex(app_get0_libctx(), app_get0_propq(), meth); in s_server_main()
1966 if (ctx2 == NULL) { in s_server_main()
1972 if (ctx2 != NULL) { in s_server_main()
1976 ssl_ctx_security_debug(ctx2, sdebug); in s_server_main()
1982 if (!SSL_CTX_set_generate_session_id(ctx2, generate_session_id)) { in s_server_main()
1990 ssl_ctx_set_excert(ctx2, exc); in s_server_main()
[all …]
Dfipsinstall.c303 EVP_MAC_CTX *ctx = NULL, *ctx2 = NULL; in fipsinstall_main() local
464 ctx2 = EVP_MAC_CTX_dup(ctx); in fipsinstall_main()
465 if (ctx2 == NULL) { in fipsinstall_main()
480 if (!do_mac(ctx2, read_buffer, mem_bio, install_mac, &install_mac_len)) in fipsinstall_main()
535 EVP_MAC_CTX_free(ctx2); in fipsinstall_main()
Dx509.c683 X509V3_CTX ctx2; in x509_main() local
694 X509V3_set_ctx_test(&ctx2); in x509_main()
695 X509V3_set_nconf(&ctx2, extconf); in x509_main()
696 if (!X509V3_EXT_add_nconf(extconf, &ctx2, extsect, NULL)) { in x509_main()
/netbsd/src/external/bsd/ipf/dist/lib/
Dsave_file.c64 file_match(ctx1, ctx2) in file_match() argument
65 void *ctx1, *ctx2; in file_match()
67 file_opts_t *f1 = ctx1, *f2 = ctx2;
Dsave_v2trap.c55 snmpv2_match(ctx1, ctx2) in snmpv2_match() argument
56 void *ctx1, *ctx2; in snmpv2_match()
58 snmpv2_opts_t *s1 = ctx1, *s2 = ctx2;
Dsave_v1trap.c51 snmpv1_match(ctx1, ctx2) in snmpv1_match() argument
52 void *ctx1, *ctx2; in snmpv1_match()
54 snmpv1_opts_t *s1 = ctx1, *s2 = ctx2;
/netbsd/src/external/bsd/wpa/dist/src/ap/
Dwpa_auth.h614 void (*cb)(void *ctx1, void *ctx2),
615 void *ctx1, void *ctx2);
617 void (*cb)(void *ctx1, void *ctx2),
618 void *ctx1, void *ctx2);
620 void (*cb)(void *ctx1, void *ctx2),
621 void *ctx1, void *ctx2);
Dwpa_auth_i.h169 void (*eapol_status_cb)(void *ctx1, void *ctx2);
Dwpa_auth.c6845 void (*cb)(void *ctx1, void *ctx2), argument
6846 void *ctx1, void *ctx2)
6867 void (*cb)(void *ctx1, void *ctx2), argument
6868 void *ctx1, void *ctx2)
7047 void (*cb)(void *ctx1, void *ctx2), argument
7048 void *ctx1, void *ctx2)
7099 sm->eapol_status_cb_ctx2 = ctx2;
/netbsd/src/external/gpl3/gcc/dist/gcc/
Domp-general.cc1736 tree ctx1, tree ctx2) in omp_context_selector_props_compare() argument
1740 for (tree t1 = pass ? ctx2 : ctx1; t1; t1 = TREE_CHAIN (t1)) in omp_context_selector_props_compare()
1743 for (t2 = pass ? ctx1 : ctx2; t2; t2 = TREE_CHAIN (t2)) in omp_context_selector_props_compare()
1814 omp_context_selector_set_compare (const char *set, tree ctx1, tree ctx2) in omp_context_selector_set_compare() argument
1819 int len2 = list_length (ctx2); in omp_context_selector_set_compare()
1824 std::swap (ctx1, ctx2); in omp_context_selector_set_compare()
1830 tree t2 = ctx2; in omp_context_selector_set_compare()
1871 for (t2 = ctx2; t2; t2 = TREE_CHAIN (t2)) in omp_context_selector_set_compare()
1906 omp_context_selector_compare (tree ctx1, tree ctx2) in omp_context_selector_compare() argument
1911 int len2 = list_length (ctx2); in omp_context_selector_compare()
[all …]
Dipa-cp.cc3138 ipa_polymorphic_call_context ctx2 = ipa_polymorphic_call_context in ipa_get_indirect_edge_target_1() local
3140 if (!ctx2.useless_p ()) in ipa_get_indirect_edge_target_1()
3141 context.combine_with (ctx2, ie->indirect_info->otr_type); in ipa_get_indirect_edge_target_1()
/netbsd/src/external/gpl3/gcc/dist/gcc/cp/
Dclass.cc10429 common_enclosing_class (tree ctx1, tree ctx2) in common_enclosing_class() argument
10431 if (!TYPE_P (ctx1) || !TYPE_P (ctx2)) in common_enclosing_class()
10434 && ctx2 == TYPE_MAIN_VARIANT (ctx2)); in common_enclosing_class()
10435 if (ctx1 == ctx2) in common_enclosing_class()
10440 for (tree t = ctx2; TYPE_P (t); t = TYPE_CONTEXT (t)) in common_enclosing_class()
/netbsd/src/external/bsd/wpa/dist/hostapd/
Dctrl_iface.c2261 static void restore_tk(void *ctx1, void *ctx2) in restore_tk() argument
2264 struct sta_info *sta = ctx2; in restore_tk()