[#EVP_PKEY_fromdata]
= EVP&lowbar;PKEY&lowbar;fromdata
:mrdocs:

Build an EVP&lowbar;PKEY (or parameters) from an OSSL&lowbar;PARAM array after fromdata&lowbar;init&period;

== Synopsis

Declared in `&lt;openssl&sol;evp&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
EVP&lowbar;PKEY&lowbar;fromdata(
    xref:EVP_PKEY_CTX.adoc[EVP&lowbar;PKEY&lowbar;CTX]* ctx,
    xref:EVP_PKEY.adoc[EVP&lowbar;PKEY]** ppkey,
    int selection,
    xref:OSSL_PARAM.adoc[OSSL&lowbar;PARAM] param[]);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| Context previously prepared with EVP&lowbar;PKEY&lowbar;fromdata&lowbar;init()&period;
| *ppkey*
| Destination that receives the created EVP&lowbar;PKEY on success&period;
| *selection*
| OSSL&lowbar;KEYMGMT&lowbar;SELECT&lowbar;&ast; mask describing which key parts `param` supplies&period;
| *param*
| NULL&hyphen;terminated OSSL&lowbar;PARAM array of key material &sol; parameters&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
