[#EVP_PKEY_export]
= EVP&lowbar;PKEY&lowbar;export
:mrdocs:

Export selected key parameters from an EVP&lowbar;PKEY via a callback&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
EVP&lowbar;PKEY&lowbar;export(
    xref:EVP_PKEY.adoc[EVP&lowbar;PKEY] const* pkey,
    int selection,
    xref:OSSL_CALLBACK.adoc[OSSL&lowbar;CALLBACK]* export&lowbar;cb,
    void* export&lowbar;cbarg);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *pkey*
| Provider&hyphen;backed key to export&period;
| *selection*
| OSSL&lowbar;KEYMGMT&lowbar;SELECT&lowbar;&ast; mask describing which parts to export&period;
| *export&lowbar;cb*
| Callback invoked with a temporary OSSL&lowbar;PARAM array (not valid after return)&period;
| *export&lowbar;cbarg*
| Application argument passed to `export&lowbar;cb&period;`
|===


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