Export selected key parameters from an EVP_PKEY via a callback.
Declared in <openssl/evp.h>
int
EVP_PKEY_export(
EVP_PKEY const* pkey,
int selection,
OSSL_CALLBACK* export_cb,
void* export_cbarg);
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. |
| export_cb | Callback invoked with a temporary OSSL_PARAM array (not valid after return). |
| export_cbarg | Application argument passed to export_cb. |