Lines Matching defs:pkey
27 /* DH pkey context structure */
323 EVP_PKEY *pkey)
340 EVP_PKEY_assign(pkey, type, dh);
358 EVP_PKEY_assign(pkey, EVP_PKEY_DHX, dh);
370 EVP_PKEY_assign_DH(pkey, dh);
376 static int pkey_dh_keygen(EVP_PKEY_CTX *ctx, EVP_PKEY *pkey)
381 if (ctx->pkey == NULL && dctx->param_nid == NID_undef) {
391 EVP_PKEY_assign(pkey, ctx->pmeth->pkey_id, dh);
392 /* Note: if error return, pkey is freed by parent routine */
393 if (ctx->pkey != NULL && !EVP_PKEY_copy_parameters(pkey, ctx->pkey))
395 return DH_generate_key((DH *)EVP_PKEY_get0_DH(pkey));
407 if (ctx->pkey == NULL || ctx->peerkey == NULL) {
411 dh = (DH *)EVP_PKEY_get0_DH(ctx->pkey);