EVP_PKEY_keygen

Generate a key pair into *ppkey using an initialised keygen context.

Synopsis

Declared in <openssl/evp.h>

int
EVP_PKEY_keygen(
    EVP_PKEY_CTX* ctx,
    EVP_PKEY** ppkey);

Return Value

1 on success, or a non-positive value on failure.

Parameters

NameDescription
ctxContext prepared with EVP_PKEY_keygen_init() (and any controls).
ppkeyAddress of an EVP_PKEY pointer that receives the new key (allocated if NULL).