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

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().

Created with MrDocs