EVP_PKEY_export

Export selected key parameters from an EVP_PKEY via a callback.

Synopsis

Declared in <openssl/evp.h>

int
EVP_PKEY_export(
    EVP_PKEY const* pkey,
    int selection,
    OSSL_CALLBACK* export_cb,
    void* export_cbarg);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
pkeyProvider-backed key to export.
selectionOSSL_KEYMGMT_SELECT_* mask describing which parts to export.
export_cbCallback invoked with a temporary OSSL_PARAM array (not valid after return).
export_cbargApplication argument passed to export_cb.