EVP_PKEY_todata

Export selected key components from an EVP_PKEY as a newly allocated OSSL_PARAM array.

Synopsis

Declared in <openssl/evp.h>

int
EVP_PKEY_todata(
    EVP_PKEY const* pkey,
    int selection,
    OSSL_PARAM** params);

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.
paramsReceives a newly allocated parameter array; free with OSSL_PARAM_free().