Export selected key components from an EVP_PKEY as a newly allocated OSSL_PARAM array.
Declared in <openssl/evp.h>
int
EVP_PKEY_todata(
EVP_PKEY const* pkey,
int selection,
OSSL_PARAM** params);
1 on success, or 0 on failure.
| 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(). |