Lines Matching defs:pctx
1356 EVP_PKEY_CTX *pctx = NULL, *ctx = NULL, *kctx = NULL;
1359 if (!TEST_ptr(pctx = EVP_PKEY_CTX_new_id(EVP_PKEY_EC, NULL))
1360 || !TEST_int_gt(EVP_PKEY_paramgen_init(pctx), 0)
1361 || !TEST_int_gt(EVP_PKEY_CTX_set_ec_paramgen_curve_nid(pctx,
1363 || !TEST_int_gt(EVP_PKEY_paramgen(pctx, ¶m), 0)
1367 EVP_PKEY_CTX_free(pctx);
1368 pctx = NULL;
1381 EVP_PKEY_CTX_free(pctx);
1389 EVP_PKEY_CTX *pctx = NULL, *ctx = NULL, *kctx = NULL;
1392 if (!TEST_ptr(pctx = EVP_PKEY_CTX_new_id(EVP_PKEY_EC, NULL))
1393 || !TEST_int_gt(EVP_PKEY_paramgen_init(pctx), 0)
1394 || !TEST_int_gt(EVP_PKEY_CTX_set_ec_paramgen_curve_nid(pctx,
1396 || !TEST_int_gt(EVP_PKEY_paramgen(pctx, ¶m), 0)
1400 EVP_PKEY_CTX_free(pctx);
1401 pctx = NULL;
1413 EVP_PKEY_CTX_free(pctx);
1729 EVP_PKEY_CTX *pctx = NULL, *dctx = NULL;
1735 if (!TEST_ptr(pctx = EVP_PKEY_CTX_new_from_name(NULL, "HKDF", NULL)))
1737 if (!TEST_int_eq(EVP_PKEY_derive_init_ex(pctx, params), 1))
1739 if (!TEST_int_eq(EVP_PKEY_derive(pctx, NULL, &len), 1)
1742 if (!TEST_ptr_null(dctx = EVP_PKEY_CTX_dup(pctx)))
1748 EVP_PKEY_CTX_free(pctx);