[#EVP_PKEY_todata] = EVP_PKEY_todata :mrdocs: Export selected key components from an EVP_PKEY as a newly allocated OSSL_PARAM array. == Synopsis Declared in `<openssl/evp.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int EVP_PKEY_todata( xref:EVP_PKEY.adoc[EVP_PKEY] const* pkey, int selection, xref:OSSL_PARAM.adoc[OSSL_PARAM]** params); ---- == Return Value 1 on success, or 0 on failure. == Parameters [cols="1,4"] |=== | Name| Description | *pkey* | Provider‐backed key to export. | *selection* | OSSL_KEYMGMT_SELECT_* mask describing which parts to export. | *params* | Receives a newly allocated parameter array; free with OSSL_PARAM_free(). |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#