EVP_PKEY_Q_keygen

Quickly generate a key of algorithm type using varargs size/curve parameters.

Synopsis

Declared in <openssl/evp.h>

EVP_PKEY*
EVP_PKEY_Q_keygen(
    OSSL_LIB_CTX* libctx,
    char const* propq,
    char const* type, ...);

Return Value

Newly allocated EVP_PKEY, or NULL on failure; free with EVP_PKEY_free().

Parameters

NameDescription
libctxLibrary context for fetches, or NULL for the default.
propqProperty query string, or NULL.
typeAlgorithm name (for example "RSA", "EC", "ED25519").