Home
last modified time | relevance | path

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

12

/freebsd/crypto/openssl/test/
H A Dssl_test_ctx_test.c74 static int testctx_eq(SSL_TEST_CTX *ctx, SSL_TEST_CTX *ctx2) in testctx_eq() argument
76 if (!TEST_int_eq(ctx->method, ctx2->method) in testctx_eq()
77 || !TEST_int_eq(ctx->handshake_mode, ctx2->handshake_mode) in testctx_eq()
78 || !TEST_int_eq(ctx->app_data_size, ctx2->app_data_size) in testctx_eq()
79 || !TEST_int_eq(ctx->max_fragment_size, ctx2->max_fragment_size) in testctx_eq()
80 || !extraconf_eq(&ctx->extra, &ctx2->extra) in testctx_eq()
81 || !extraconf_eq(&ctx->resume_extra, &ctx2->resume_extra) in testctx_eq()
82 || !TEST_int_eq(ctx->expected_result, ctx2->expected_result) in testctx_eq()
84 ctx2->expected_client_alert) in testctx_eq()
86 ctx2->expected_server_alert) in testctx_eq()
[all …]
H A 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()
H A Dcmactest.c275 CMAC_CTX *ctx = NULL, *ctx2 = NULL; in test_cmac_copy() local
281 ctx2 = CMAC_CTX_new(); in test_cmac_copy()
282 if (!TEST_ptr(ctx) || !TEST_ptr(ctx2)) in test_cmac_copy()
288 || !TEST_true(CMAC_CTX_copy(ctx2, ctx)) in test_cmac_copy()
289 || !TEST_true(CMAC_Final(ctx2, buf, &len))) in test_cmac_copy()
298 CMAC_CTX_free(ctx2); in test_cmac_copy()
H A Dhmactest.c244 HMAC_CTX *ctx = NULL, *ctx2 = NULL; in test_hmac_copy() local
250 ctx2 = HMAC_CTX_new(); in test_hmac_copy()
251 if (!TEST_ptr(ctx) || !TEST_ptr(ctx2)) in test_hmac_copy()
256 || !TEST_true(HMAC_CTX_copy(ctx2, ctx)) in test_hmac_copy()
257 || !TEST_true(HMAC_Final(ctx2, buf, &len))) in test_hmac_copy()
266 HMAC_CTX_free(ctx2); in test_hmac_copy()
H A 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()
224 || !TEST_ptr(km2 = EVP_KEYMGMT_fetch(fixture->ctx2, "RSA", NULL)) in test_pass_rsa()
H A Dml_dsa_test.c369 static uint8_t ctx2[256] = { 0 }; variable
383 { msg1, sizeof(msg1), ctx2, sizeof(ctx2), 0, 0 },
384 { msg1, sizeof(msg1), ctx2, sizeof(ctx2), 1, 0 },
389 { msg2, sizeof(msg2), ctx2, sizeof(ctx2), 0, 0 },
390 { msg2, sizeof(msg2), ctx2, sizeof(ctx2), 1, 0 },
H A Devp_pkey_provided_test.c1349 EVP_PKEY_CTX *ctx = NULL, *ctx2 = NULL; in test_fromdata_ecx() local
1529 if (!TEST_ptr(ctx2 = EVP_PKEY_CTX_new_from_pkey(NULL, pk, NULL))) in test_fromdata_ecx()
1532 if (!TEST_int_gt(EVP_PKEY_check(ctx2), 0)) in test_fromdata_ecx()
1549 if (!TEST_int_gt(EVP_PKEY_public_check(ctx2), 0) in test_fromdata_ecx()
1550 || !TEST_int_le(EVP_PKEY_private_check(ctx2), 0) in test_fromdata_ecx()
1551 || !TEST_int_le(EVP_PKEY_check(ctx2), 0)) in test_fromdata_ecx()
1554 EVP_PKEY_CTX_free(ctx2); in test_fromdata_ecx()
1555 ctx2 = NULL; in test_fromdata_ecx()
1561 if (!TEST_ptr(ctx2 = EVP_PKEY_CTX_new_from_pkey(NULL, copy_pk, NULL)) in test_fromdata_ecx()
1563 || !TEST_int_le(EVP_PKEY_public_check(ctx2), 0)) in test_fromdata_ecx()
[all …]
H A Devp_extra_test.c3295 EVP_PKEY_CTX *ctx2 = NULL; in test_EVP_PKEY_check() local
3325 ctx2 = EVP_PKEY_CTX_new_id(0xdefaced, NULL); in test_EVP_PKEY_check()
3330 ctx2->pkey = pkey; in test_EVP_PKEY_check()
3332 if (!TEST_int_eq(EVP_PKEY_check(ctx2), 0xbeef)) in test_EVP_PKEY_check()
3335 if (!TEST_int_eq(EVP_PKEY_public_check(ctx2), 0xbeef)) in test_EVP_PKEY_check()
3338 if (!TEST_int_eq(EVP_PKEY_param_check(ctx2), 0xbeef)) in test_EVP_PKEY_check()
3347 EVP_PKEY_CTX_free(ctx2); in test_EVP_PKEY_check()
6009 EVP_CIPHER_CTX *ctx = NULL, *ctx2 = NULL; in test_cipher_with_engine() local
6022 || !TEST_ptr(ctx2 = EVP_CIPHER_CTX_new())) in test_cipher_with_engine()
6029 if (!TEST_true(EVP_CIPHER_CTX_copy(ctx2, ctx))) in test_cipher_with_engine()
[all …]
/freebsd/crypto/openssl/demos/pkey/
H A DEVP_PKEY_DSA_paramvalidate.c110 EVP_PKEY_CTX *ctx2 = NULL; in main() local
182 ctx2 = create_merged_key(dsaparamskey, params, libctx, propq); in main()
183 if (ctx2 == NULL) in main()
185 if (EVP_PKEY_param_check(ctx2) <= 0) { in main()
190 if (!dsa_print_key(EVP_PKEY_CTX_get0_pkey(ctx2), 0, libctx, propq)) in main()
196 EVP_PKEY_CTX_free(ctx2); in main()
/freebsd/crypto/krb5/src/lib/krb5/krb/
H A Dt_copy_context.c113 krb5_context ctx, ctx2; in main() local
121 check(krb5_copy_context(ctx, &ctx2) == 0); in main()
122 check_context(ctx2, ctx); in main()
123 krb5_free_context(ctx2); in main()
151 check(krb5_copy_context(ctx, &ctx2) == 0); in main()
152 check_context(ctx2, ctx); in main()
153 krb5_free_context(ctx2); in main()
H A Dt_ser.c62 krb5_context ctx2; in ser_context() local
74 check(k5_internalize_context(&ctx2, &bp, &blen)); in ser_context()
77 check(k5_size_context(ctx2, &elen2)); in ser_context()
83 check(k5_externalize_context(ctx2, &bp, &blen)); in ser_context()
89 krb5_free_context(ctx2); in ser_context()
/freebsd/crypto/openssl/crypto/rsa/
H A 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()
/freebsd/crypto/openssl/apps/
H A Ds_server.c84 static SSL_CTX *ctx2 = NULL; variable
447 if (ctx2 != NULL) { in ssl_servername_cb()
449 SSL_set_SSL_CTX(s, ctx2); in ssl_servername_cb()
1201 ctx = ctx2 = NULL; in s_server_main()
2154 ctx2 = SSL_CTX_new_ex(app_get0_libctx(), app_get0_propq(), meth); in s_server_main()
2155 if (ctx2 == NULL) { in s_server_main()
2161 if (ctx2 != NULL) { in s_server_main()
2165 ssl_ctx_security_debug(ctx2, sdebug); in s_server_main()
2171 if (!SSL_CTX_set_generate_session_id(ctx2, generate_session_id)) { in s_server_main()
2179 ssl_ctx_set_excert(ctx2, exc); in s_server_main()
[all …]
H A Dfipsinstall.c628 EVP_MAC_CTX *ctx = NULL, *ctx2 = NULL; in fipsinstall_main() local
890 ctx2 = EVP_MAC_CTX_dup(ctx); in fipsinstall_main()
891 if (ctx2 == NULL) { in fipsinstall_main()
906 if (!do_mac(ctx2, read_buffer, mem_bio, install_mac, &install_mac_len)) in fipsinstall_main()
966 EVP_MAC_CTX_free(ctx2); in fipsinstall_main()
H A Dx509.c775 X509V3_CTX ctx2; in x509_main() local
784 X509V3_set_ctx_test(&ctx2); in x509_main()
785 X509V3_set_nconf(&ctx2, extconf); in x509_main()
786 if (!X509V3_EXT_add_nconf(extconf, &ctx2, extsect, NULL)) { in x509_main()
/freebsd/sbin/ipf/libipf/
H A Dsave_file.c61 file_match(void *ctx1, void *ctx2) in file_match() argument
63 file_opts_t *f1 = ctx1, *f2 = ctx2; in file_match()
H A Dsave_v2trap.c53 snmpv2_match(void *ctx1, void *ctx2) in snmpv2_match() argument
55 snmpv2_opts_t *s1 = ctx1, *s2 = ctx2; in snmpv2_match()
H A Dsave_v1trap.c49 snmpv1_match(void *ctx1, void *ctx2) in snmpv1_match() argument
51 snmpv1_opts_t *s1 = ctx1, *s2 = ctx2; in snmpv1_match()
/freebsd/sys/x86/iommu/
H A Dintel_reg.h46 uint64_t ctx2; member
64 #define DMAR_CTX2_GET_DID(ctx2) (((ctx2) & DMAR_CTX2_DID_MASK) >> 8) argument
H A Dintel_ctx.c139 dmar_pte_store1(&ctxp->ctx2, DMAR_CTX2_DID(domain->domain) | in ctx_id_entry_init_one()
161 KASSERT(move || (ctxp->ctx1 == 0 && ctxp->ctx2 == 0), in ctx_id_entry_init()
165 ctxp->ctx1, ctxp->ctx2)); in ctx_id_entry_init()
787 ctxp->ctx2 = 0; in dmar_free_ctx_locked()
/freebsd/contrib/wpa/src/ap/
H A 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);
H A Dwpa_auth_i.h169 void (*eapol_status_cb)(void *ctx1, void *ctx2);
H A 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;
/freebsd/usr.bin/sort/
H A Dcoll.c996 MD5_CTX ctx1, ctx2; in randomcoll() local
1020 memcpy(&ctx2, &md5_ctx, sizeof(MD5_CTX)); in randomcoll()
1023 MD5Update(&ctx2, bwsrawdata(s2), bwsrawlen(s2)); in randomcoll()
1026 MD5Final(hash2, &ctx2); in randomcoll()
/freebsd/tools/tools/dmardump/
H A Ddmardump.c144 printf(" domain %d", (int)DMAR_CTX2_GET_DID(ctx[idx].ctx2)); in dump_context_table()

12