Quickly generate a key of algorithm type using varargs size/curve parameters.
Declared in <openssl/evp.h>
EVP_PKEY*
EVP_PKEY_Q_keygen(
OSSL_LIB_CTX* libctx,
char const* propq,
char const* type, ...);
Newly allocated EVP_PKEY, or NULL on failure; free with EVP_PKEY_free().
| Name | Description |
|---|---|
| libctx | Library context for fetches, or NULL for the default. |
| propq | Property query string, or NULL. |
| type | Algorithm name (for example "RSA", "EC", "ED25519"). |