Lines Matching defs:kctx
1904 EVP_PKEY_CTX *pctx = NULL, *kctx = NULL;
1920 if (!TEST_ptr(kctx = EVP_PKEY_CTX_new_from_pkey(testctx, params, NULL))
1921 || !TEST_int_gt(EVP_PKEY_keygen_init(kctx), 0)
1922 || !TEST_true(EVP_PKEY_keygen(kctx, &key))
1936 EVP_PKEY_CTX_free(kctx);
2022 EVP_PKEY_CTX *kctx = NULL;
2057 if (!TEST_ptr(kctx = EVP_PKEY_CTX_new_from_pkey(testctx,
2061 if (!TEST_int_gt(EVP_PKEY_keygen_init(kctx), 0))
2064 if (!TEST_true(EVP_PKEY_keygen(kctx, &pkey)))
2205 EVP_PKEY_CTX_free(kctx);
2452 EVP_PKEY_CTX *kctx = NULL;
2467 kctx = EVP_PKEY_CTX_new_id(EVP_PKEY_CMAC, NULL);
2470 if (!TEST_int_gt(EVP_PKEY_keygen_init(kctx), 0)
2471 || !TEST_int_gt(EVP_PKEY_CTX_ctrl(kctx, -1, EVP_PKEY_OP_KEYGEN,
2474 || !TEST_int_gt(EVP_PKEY_CTX_ctrl(kctx, -1, EVP_PKEY_OP_KEYGEN,
2477 || !TEST_int_gt(EVP_PKEY_keygen(kctx, &pkey), 0)
2500 EVP_PKEY_CTX_free(kctx);