[#EVP_PKEY_asn1_set_set_priv_key]
= EVP&lowbar;PKEY&lowbar;asn1&lowbar;set&lowbar;set&lowbar;priv&lowbar;key
:mrdocs:

Install a callback that sets raw private&hyphen;key octets on an EVP&lowbar;PKEY&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
EVP&lowbar;PKEY&lowbar;asn1&lowbar;set&lowbar;set&lowbar;priv&lowbar;key(
    xref:EVP_PKEY_ASN1_METHOD.adoc[EVP&lowbar;PKEY&lowbar;ASN1&lowbar;METHOD]* ameth,
    int(* set&lowbar;priv&lowbar;key)(xref:EVP_PKEY.adoc[EVP&lowbar;PKEY]*, unsigned char const*, size&lowbar;t));
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ameth*
| ASN&period;1 method being customized&period;
| *set&lowbar;priv&lowbar;key*
| Callback that imports `len` bytes of raw private key material into `pk&period;`
|===


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