Select named Diffie‐Hellman parameters (RFC 7919 / RFC 3526) by NID.
Synopsis
Declared in <openssl/dh.h>
int
EVP_PKEY_CTX_set_dh_nid(
EVP_PKEY_CTX* ctx,
int nid);
Description
Mutually exclusive with EVP_PKEY_CTX_set_dh_rfc5114() / set_dhx_rfc5114().
Return Value
1 on success, or a non‐positive value on error.
Parameters
Name |
Description |
ctx |
EVP_PKEY_CTX used for DH parameter or key generation. |
nid |
Named group such as NID_ffdhe2048 or NID_modp_2048, or NID_undef to clear. |
Created with MrDocs