Lines Matching refs:pctx
388 EVP_PKEY_CTX *pctx = NULL;
403 pctx = EVP_PKEY_CTX_new_id(EVP_PKEY_RSA, NULL);
404 if (!pctx)
407 if (EVP_PKEY_keygen_init(pctx) <= 0)
410 if (EVP_PKEY_CTX_set_rsa_keygen_bits(pctx, 2048) <= 0)
413 if (EVP_PKEY_keygen(pctx, &pkey) <= 0)
415 EVP_PKEY_CTX_free(pctx);
416 pctx = NULL;
596 if (pctx)
597 EVP_PKEY_CTX_free(pctx);