EVP_PKEY_fromdata

Build an EVP_PKEY (or parameters) from an OSSL_PARAM array after fromdata_init.

Synopsis

Declared in <openssl/evp.h>

int
EVP_PKEY_fromdata(
    EVP_PKEY_CTX* ctx,
    EVP_PKEY** ppkey,
    int selection,
    OSSL_PARAM param[]);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
ctxContext previously prepared with EVP_PKEY_fromdata_init().
ppkeyDestination that receives the created EVP_PKEY on success.
selectionOSSL_KEYMGMT_SELECT_* mask describing which key parts param supplies.
paramNULL-terminated OSSL_PARAM array of key material / parameters.