Set the DH parameter-generation prime (p) length in bits.
Declared in <openssl/dh.h>
int
EVP_PKEY_CTX_set_dh_paramgen_prime_len(
EVP_PKEY_CTX* ctx,
int pbits);
1 on success, or a non-positive value on error.
| Name | Description |
|---|---|
| ctx | EVP_PKEY_CTX configured for DH parameter generation. |
| pbits | Desired bit length of the prime modulus p. |