Lines Matching refs:peer
376 int EVP_PKEY_derive_set_peer_ex(EVP_PKEY_CTX *ctx, EVP_PKEY *peer, in EVP_PKEY_derive_set_peer_ex() argument
398 check_ctx = EVP_PKEY_CTX_new_from_pkey(ctx->libctx, peer, ctx->propquery); in EVP_PKEY_derive_set_peer_ex()
424 provkey = evp_pkey_export_to_provider(peer, ctx->libctx, in EVP_PKEY_derive_set_peer_ex()
455 ret = ctx->pmeth->ctrl(ctx, EVP_PKEY_CTRL_PEER_KEY, 0, peer); in EVP_PKEY_derive_set_peer_ex()
468 if (ctx->pkey->type != peer->type) { in EVP_PKEY_derive_set_peer_ex()
480 if (!EVP_PKEY_missing_parameters(peer) && in EVP_PKEY_derive_set_peer_ex()
481 !EVP_PKEY_parameters_eq(ctx->pkey, peer)) { in EVP_PKEY_derive_set_peer_ex()
487 ctx->peerkey = peer; in EVP_PKEY_derive_set_peer_ex()
489 ret = ctx->pmeth->ctrl(ctx, EVP_PKEY_CTRL_PEER_KEY, 1, peer); in EVP_PKEY_derive_set_peer_ex()
496 EVP_PKEY_up_ref(peer); in EVP_PKEY_derive_set_peer_ex()
501 int EVP_PKEY_derive_set_peer(EVP_PKEY_CTX *ctx, EVP_PKEY *peer) in EVP_PKEY_derive_set_peer() argument
503 return EVP_PKEY_derive_set_peer_ex(ctx, peer, 1); in EVP_PKEY_derive_set_peer()