Lines Matching defs:pkey
224 * Some algorithms (e.g. legacy KDFs) don't have a pkey - so we create
227 if (ctx->pkey == NULL) {
228 EVP_PKEY *pkey = EVP_PKEY_new();
230 if (pkey == NULL
231 || !EVP_PKEY_set_type_by_keymgmt(pkey, ctx->keymgmt)
232 || (pkey->keydata = evp_keymgmt_newdata(ctx->keymgmt)) == NULL) {
234 EVP_PKEY_free(pkey);
238 ctx->pkey = pkey;
244 if (!ossl_assert(ctx->pkey->keymgmt == NULL
245 || ctx->pkey->keymgmt == ctx->keymgmt)) {
268 * exchange, and try to export |ctx->pkey| to that keymgmt (when
311 * With the keymgmt we found (if we did), we try to export |ctx->pkey|
313 * export it if |tmp_keymgmt| is different from |ctx->pkey|'s keymgmt)
320 provkey = evp_pkey_export_to_provider(ctx->pkey, ctx->libctx,
462 if (ctx->pkey == NULL) {
467 if (ctx->pkey->type != peer->type) {
480 !EVP_PKEY_parameters_eq(ctx->pkey, peer)) {