/openssl/test/ |
H A D | ssl_test_ctx_test.c | 77 if (!TEST_int_eq(ctx->method, ctx2->method) in testctx_eq() 81 || !extraconf_eq(&ctx->extra, &ctx2->extra) in testctx_eq() 85 ctx2->expected_client_alert) in testctx_eq() 87 ctx2->expected_server_alert) in testctx_eq() 91 ctx2->session_ticket_expected) in testctx_eq() 93 ctx2->compression_expected) in testctx_eq() 95 ctx2->expected_npn_protocol) in testctx_eq() 97 ctx2->expected_alpn_protocol) in testctx_eq() 99 ctx2->expected_cipher) in testctx_eq() 103 ctx2->resumption_expected) in testctx_eq() [all …]
|
H A D | sm3_internal_test.c | 59 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 D | cmactest.c | 302 CMAC_CTX *ctx = NULL, *ctx2 = NULL; in test_cmac_copy() local 308 ctx2 = CMAC_CTX_new(); in test_cmac_copy() 309 if (!TEST_ptr(ctx) || !TEST_ptr(ctx2)) in test_cmac_copy() 315 || !TEST_true(CMAC_CTX_copy(ctx2, ctx)) in test_cmac_copy() 316 || !TEST_true(CMAC_Final(ctx2, buf, &len))) in test_cmac_copy() 325 CMAC_CTX_free(ctx2); in test_cmac_copy()
|
H A D | hmactest.c | 221 HMAC_CTX *ctx = NULL, *ctx2 = NULL; in test_hmac_copy() local 227 ctx2 = HMAC_CTX_new(); in test_hmac_copy() 228 if (!TEST_ptr(ctx) || !TEST_ptr(ctx2)) in test_hmac_copy() 233 || !TEST_true(HMAC_CTX_copy(ctx2, ctx)) in test_hmac_copy() 234 || !TEST_true(HMAC_Final(ctx2, buf, &len))) in test_hmac_copy() 243 HMAC_CTX_free(ctx2); in test_hmac_copy()
|
H A D | keymgmt_internal_test.c | 33 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()
|
H A D | evp_pkey_provided_test.c | 1315 EVP_PKEY_CTX *ctx = NULL, *ctx2 = NULL; in test_fromdata_ecx() local 1509 if (!TEST_int_gt(EVP_PKEY_check(ctx2), 0)) in test_fromdata_ecx() 1526 if (!TEST_int_gt(EVP_PKEY_public_check(ctx2), 0) in test_fromdata_ecx() 1527 || !TEST_int_le(EVP_PKEY_private_check(ctx2), 0) in test_fromdata_ecx() 1528 || !TEST_int_le(EVP_PKEY_check(ctx2), 0)) in test_fromdata_ecx() 1531 EVP_PKEY_CTX_free(ctx2); in test_fromdata_ecx() 1532 ctx2 = NULL; in test_fromdata_ecx() 1540 || !TEST_int_le(EVP_PKEY_public_check(ctx2), 0)) in test_fromdata_ecx() 1542 EVP_PKEY_CTX_free(ctx2); in test_fromdata_ecx() 1543 ctx2 = NULL; in test_fromdata_ecx() [all …]
|
H A D | evp_extra_test.c | 2724 EVP_PKEY_CTX *ctx2 = NULL; in test_EVP_PKEY_check() local 2754 ctx2 = EVP_PKEY_CTX_new_id(0xdefaced, NULL); in test_EVP_PKEY_check() 2757 ctx2->pkey = pkey; in test_EVP_PKEY_check() 2759 if (!TEST_int_eq(EVP_PKEY_check(ctx2), 0xbeef)) in test_EVP_PKEY_check() 2762 if (!TEST_int_eq(EVP_PKEY_public_check(ctx2), 0xbeef)) in test_EVP_PKEY_check() 2765 if (!TEST_int_eq(EVP_PKEY_param_check(ctx2), 0xbeef)) in test_EVP_PKEY_check() 2774 EVP_PKEY_CTX_free(ctx2); in test_EVP_PKEY_check() 5437 EVP_CIPHER_CTX *ctx = NULL, *ctx2 = NULL; in test_cipher_with_engine() local 5450 || !TEST_ptr(ctx2 = EVP_CIPHER_CTX_new())) in test_cipher_with_engine() 5457 if (!TEST_true(EVP_CIPHER_CTX_copy(ctx2, ctx))) in test_cipher_with_engine() [all …]
|
/openssl/demos/pkey/ |
H A D | EVP_PKEY_DSA_paramvalidate.c | 111 EVP_PKEY_CTX *ctx2 = NULL; in main() local 183 ctx2 = create_merged_key(dsaparamskey, params, libctx, propq); in main() 184 if (ctx2 == NULL) in main() 186 if (EVP_PKEY_param_check(ctx2) <= 0) { in main() 191 if (!dsa_print_key(EVP_PKEY_CTX_get0_pkey(ctx2), 0, libctx, propq)) in main() 197 EVP_PKEY_CTX_free(ctx2); in main()
|
/openssl/crypto/rsa/ |
H A D | rsa_x931g.c | 31 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()
|
/openssl/apps/ |
H A D | s_server.c | 84 static SSL_CTX *ctx2 = NULL; variable 444 if (ctx2 != NULL) { in ssl_servername_cb() 1103 ctx = ctx2 = NULL; in s_server_main() 2056 if (ctx2 != NULL) { in s_server_main() 2186 if (ctx2 != NULL in s_server_main() 2199 if (ctx2 != NULL) in s_server_main() 2260 if (ctx2 != NULL) { in s_server_main() 2286 if (ctx2) in s_server_main() 2293 if (ctx2) { in s_server_main() 2311 if (ctx2 != NULL && !SSL_CTX_compress_certs(ctx2, 0)) in s_server_main() [all …]
|
H A D | fipsinstall.c | 582 EVP_MAC_CTX *ctx = NULL, *ctx2 = NULL; in fipsinstall_main() local 845 ctx2 = EVP_MAC_CTX_dup(ctx); in fipsinstall_main() 846 if (ctx2 == NULL) { in fipsinstall_main() 861 if (!do_mac(ctx2, read_buffer, mem_bio, install_mac, &install_mac_len)) in fipsinstall_main() 922 EVP_MAC_CTX_free(ctx2); in fipsinstall_main()
|
H A D | x509.c | 715 X509V3_CTX ctx2; in x509_main() local 724 X509V3_set_ctx_test(&ctx2); in x509_main() 725 X509V3_set_nconf(&ctx2, extconf); in x509_main() 726 if (!X509V3_EXT_add_nconf(extconf, &ctx2, extsect, NULL)) { in x509_main()
|