Searched refs:ctx2 (Results 1 - 23 of 23) sorted by relevance

/freebsd-current/crypto/openssl/test/
H A Dssl_test_ctx_test.c75 static int testctx_eq(SSL_TEST_CTX *ctx, SSL_TEST_CTX *ctx2) argument
77 if (!TEST_int_eq(ctx->method, ctx2->method)
78 || !TEST_int_eq(ctx->handshake_mode, ctx2->handshake_mode)
79 || !TEST_int_eq(ctx->app_data_size, ctx2->app_data_size)
80 || !TEST_int_eq(ctx->max_fragment_size, ctx2->max_fragment_size)
81 || !extraconf_eq(&ctx->extra, &ctx2->extra)
82 || !extraconf_eq(&ctx->resume_extra, &ctx2->resume_extra)
83 || !TEST_int_eq(ctx->expected_result, ctx2->expected_result)
85 ctx2->expected_client_alert)
87 ctx2
[all...]
H A Dsm3_internal_test.c59 SM3_CTX ctx1, ctx2; local
68 if (!TEST_true(ossl_sm3_init(&ctx2))
69 || !TEST_true(ossl_sm3_update(&ctx2, input2, sizeof(input2)))
70 || !TEST_true(ossl_sm3_final(md2, &ctx2))
H A Dcmactest.c171 CMAC_CTX *ctx = NULL, *ctx2 = NULL; local
177 ctx2 = CMAC_CTX_new();
178 if (!TEST_ptr(ctx) || !TEST_ptr(ctx2))
184 || !TEST_true(CMAC_CTX_copy(ctx2, ctx))
185 || !TEST_true(CMAC_Final(ctx2, buf, &len)))
194 CMAC_CTX_free(ctx2);
H A Dhmactest.c221 HMAC_CTX *ctx = NULL, *ctx2 = NULL; local
227 ctx2 = HMAC_CTX_new();
228 if (!TEST_ptr(ctx) || !TEST_ptr(ctx2))
233 || !TEST_true(HMAC_CTX_copy(ctx2, ctx))
234 || !TEST_true(HMAC_Final(ctx2, buf, &len)))
243 HMAC_CTX_free(ctx2);
H A Dkeymgmt_internal_test.c33 OSSL_LIB_CTX *ctx2; member in struct:__anon137
46 OSSL_LIB_CTX_free(fixture->ctx2);
59 || !TEST_ptr(fixture->ctx2 = OSSL_LIB_CTX_new())
60 || !TEST_ptr(fixture->prov2 = OSSL_PROVIDER_load(fixture->ctx2,
222 || !TEST_ptr(km2 = EVP_KEYMGMT_fetch(fixture->ctx2, "RSA", NULL))
H A Devp_pkey_provided_test.c910 EVP_PKEY_CTX *ctx = NULL, *ctx2 = NULL; local
1101 if (!TEST_ptr(ctx2 = EVP_PKEY_CTX_new_from_pkey(NULL, pk, NULL)))
1104 if (!TEST_int_gt(EVP_PKEY_check(ctx2), 0))
1121 if (!TEST_int_gt(EVP_PKEY_public_check(ctx2), 0)
1122 || !TEST_int_le(EVP_PKEY_private_check(ctx2), 0)
1123 || !TEST_int_le(EVP_PKEY_check(ctx2), 0))
1126 EVP_PKEY_CTX_free(ctx2);
1127 ctx2 = NULL;
1133 if (!TEST_ptr(ctx2 = EVP_PKEY_CTX_new_from_pkey(NULL, copy_pk, NULL))
1135 || !TEST_int_le(EVP_PKEY_public_check(ctx2),
[all...]
H A Devp_extra_test.c2365 EVP_PKEY_CTX *ctx2 = NULL; local
2395 ctx2 = EVP_PKEY_CTX_new_id(0xdefaced, NULL);
2398 ctx2->pkey = pkey;
2400 if (!TEST_int_eq(EVP_PKEY_check(ctx2), 0xbeef))
2403 if (!TEST_int_eq(EVP_PKEY_public_check(ctx2), 0xbeef))
2406 if (!TEST_int_eq(EVP_PKEY_param_check(ctx2), 0xbeef))
2415 EVP_PKEY_CTX_free(ctx2);
4915 EVP_CIPHER_CTX *ctx = NULL, *ctx2 = NULL; local
4928 || !TEST_ptr(ctx2 = EVP_CIPHER_CTX_new()))
4935 if (!TEST_true(EVP_CIPHER_CTX_copy(ctx2, ct
[all...]
/freebsd-current/crypto/openssl/demos/pkey/
H A DEVP_PKEY_DSA_paramvalidate.c111 EVP_PKEY_CTX *ctx2 = NULL; local
183 ctx2 = create_merged_key(dsaparamskey, params, libctx, propq);
184 if (ctx2 == NULL)
186 if (EVP_PKEY_param_check(ctx2) <= 0) {
191 if (!dsa_print_key(EVP_PKEY_CTX_get0_pkey(ctx2), 0, libctx, propq))
197 EVP_PKEY_CTX_free(ctx2);
/freebsd-current/sbin/ipf/libipf/
H A Dsave_file.c61 file_match(void *ctx1, void *ctx2) argument
63 file_opts_t *f1 = ctx1, *f2 = ctx2;
H A Dsave_v1trap.c49 snmpv1_match(void *ctx1, void *ctx2) argument
51 snmpv1_opts_t *s1 = ctx1, *s2 = ctx2;
H A Dsave_v2trap.c53 snmpv2_match(void *ctx1, void *ctx2) argument
55 snmpv2_opts_t *s1 = ctx1, *s2 = ctx2;
/freebsd-current/crypto/openssl/crypto/rsa/
H A Drsa_x931g.c31 BN_CTX *ctx = NULL, *ctx2 = NULL; local
113 ctx2 = BN_CTX_new();
114 if (ctx2 == NULL)
117 rsa->d = BN_mod_inverse(NULL, rsa->e, r0, ctx2); /* d */
136 rsa->iqmp = BN_mod_inverse(NULL, rsa->q, rsa->p, ctx2);
145 BN_CTX_free(ctx2);
/freebsd-current/crypto/openssl/apps/
H A Ds_server.c82 static SSL_CTX *ctx2 = NULL; variable
438 if (ctx2 != NULL) {
440 SSL_set_SSL_CTX(s, ctx2);
1062 ctx = ctx2 = NULL;
1965 ctx2 = SSL_CTX_new_ex(app_get0_libctx(), app_get0_propq(), meth);
1966 if (ctx2 == NULL) {
1972 if (ctx2 != NULL) {
1976 ssl_ctx_security_debug(ctx2, sdebug);
1982 if (!SSL_CTX_set_generate_session_id(ctx2, generate_session_id)) {
1990 ssl_ctx_set_excert(ctx2, ex
[all...]
H A Dfipsinstall.c303 EVP_MAC_CTX *ctx = NULL, *ctx2 = NULL; local
464 ctx2 = EVP_MAC_CTX_dup(ctx);
465 if (ctx2 == NULL) {
480 if (!do_mac(ctx2, read_buffer, mem_bio, install_mac, &install_mac_len))
535 EVP_MAC_CTX_free(ctx2);
H A Dx509.c683 X509V3_CTX ctx2; local
694 X509V3_set_ctx_test(&ctx2);
695 X509V3_set_nconf(&ctx2, extconf);
696 if (!X509V3_EXT_add_nconf(extconf, &ctx2, extsect, NULL)) {
/freebsd-current/sys/x86/iommu/
H A Dintel_reg.h46 uint64_t ctx2; member in struct:dmar_ctx_entry
64 #define DMAR_CTX2_GET_DID(ctx2) (((ctx2) & DMAR_CTX2_DID_MASK) >> 8)
H A Dintel_ctx.c156 dmar_pte_store1(&ctxp->ctx2, DMAR_CTX2_DID(domain->domain) |
178 KASSERT(move || (ctxp->ctx1 == 0 && ctxp->ctx2 == 0),
182 ctxp->ctx1, ctxp->ctx2));
804 ctxp->ctx2 = 0;
/freebsd-current/contrib/wpa/src/ap/
H A Dwpa_auth.h548 void (*cb)(void *ctx1, void *ctx2),
549 void *ctx1, void *ctx2);
551 void (*cb)(void *ctx1, void *ctx2),
552 void *ctx1, void *ctx2);
554 void (*cb)(void *ctx1, void *ctx2),
555 void *ctx1, void *ctx2);
H A Dwpa_auth_i.h166 void (*eapol_status_cb)(void *ctx1, void *ctx2);
H A Dwpa_auth.c5370 void (*cb)(void *ctx1, void *ctx2),
5371 void *ctx1, void *ctx2)
5392 void (*cb)(void *ctx1, void *ctx2),
5393 void *ctx1, void *ctx2)
5572 void (*cb)(void *ctx1, void *ctx2),
5573 void *ctx1, void *ctx2)
5624 sm->eapol_status_cb_ctx2 = ctx2;
5369 wpa_auth_resend_m1(struct wpa_state_machine *sm, int change_anonce, void (*cb)(void *ctx1, void *ctx2), void *ctx1, void *ctx2) argument
5391 wpa_auth_resend_m3(struct wpa_state_machine *sm, void (*cb)(void *ctx1, void *ctx2), void *ctx1, void *ctx2) argument
5571 wpa_auth_resend_group_m1(struct wpa_state_machine *sm, void (*cb)(void *ctx1, void *ctx2), void *ctx1, void *ctx2) argument
/freebsd-current/tools/tools/dmardump/
H A Ddmardump.c144 printf(" domain %d", (int)DMAR_CTX2_GET_DID(ctx[idx].ctx2));
/freebsd-current/usr.bin/sort/
H A Dcoll.c996 MD5_CTX ctx1, ctx2; local
1020 memcpy(&ctx2, &md5_ctx, sizeof(MD5_CTX));
1023 MD5Update(&ctx2, bwsrawdata(s2), bwsrawlen(s2));
1026 MD5Final(hash2, &ctx2);
/freebsd-current/contrib/wpa/hostapd/
H A Dctrl_iface.c2471 static void restore_tk(void *ctx1, void *ctx2) argument
2474 struct sta_info *sta = ctx2;

Completed in 433 milliseconds