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

Name

Description

ctx

EVP_PKEY_CTX configured for DH parameter generation.

gindex

Canonical gindex selecting the generator construction.

Created with MrDocs