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

Prepare a key context to import key material via EVP&lowbar;PKEY&lowbar;fromdata()&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
EVP&lowbar;PKEY&lowbar;fromdata&lowbar;init(xref:EVP_PKEY_CTX.adoc[EVP&lowbar;PKEY&lowbar;CTX]* ctx);
----

== Return Value

1 on success, or a non&hyphen;positive value on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| Context created for the target key type (for example with EVP&lowbar;PKEY&lowbar;CTX&lowbar;new&lowbar;from&lowbar;name)&period;
|===


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