Lines Matching refs:ppkey
128 int EVP_PKEY_generate(EVP_PKEY_CTX *ctx, EVP_PKEY **ppkey)
135 if (ppkey == NULL)
144 if (*ppkey == NULL)
145 *ppkey = allocated_pkey = EVP_PKEY_new();
147 if (*ppkey == NULL) {
185 * the returned value from evp_keymgmt_util_gen() is cached in *ppkey,
189 && (evp_keymgmt_util_gen(*ppkey, ctx->keymgmt, ctx->op.keymgmt.genctx,
196 /* In case |*ppkey| was originally a legacy key */
198 evp_pkey_free_legacy(*ppkey);
204 (*ppkey)->type = ctx->legacy_keytype;
225 ret = ctx->pmeth->paramgen(ctx, *ppkey);
228 ret = ctx->pmeth->keygen(ctx, *ppkey);
238 *ppkey = NULL;
259 int EVP_PKEY_paramgen(EVP_PKEY_CTX *ctx, EVP_PKEY **ppkey)
265 return EVP_PKEY_generate(ctx, ppkey);
268 int EVP_PKEY_keygen(EVP_PKEY_CTX *ctx, EVP_PKEY **ppkey)
274 return EVP_PKEY_generate(ctx, ppkey);
363 int EVP_PKEY_fromdata(EVP_PKEY_CTX *ctx, EVP_PKEY **ppkey, int selection,
374 if (ppkey == NULL)
377 if (*ppkey == NULL)
378 allocated_pkey = *ppkey = EVP_PKEY_new();
380 if (*ppkey == NULL) {
385 keydata = evp_keymgmt_util_fromdata(*ppkey, ctx->keymgmt, selection, params);
388 *ppkey = NULL;
393 /* keydata is cached in *ppkey, so we need not bother with it further */