EVP_PKEY_CTX_set_dh_paramgen_gindex

Set the FIPS 186-4 gindex used when generating DH parameters.

Synopsis

Declared in <openssl/dh.h>

int
EVP_PKEY_CTX_set_dh_paramgen_gindex(
    EVP_PKEY_CTX* ctx,
    int gindex);

Return Value

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

Parameters

NameDescription
ctxEVP_PKEY_CTX configured for DH parameter generation.
gindexCanonical gindex selecting the generator construction.