Set the DH parameter‐generation subprime (q) length in bits.

Synopsis

Declared in <openssl/dh.h>

int
EVP_PKEY_CTX_set_dh_paramgen_subprime_len(
    EVP_PKEY_CTX* ctx,
    int qlen);

Return Value

1 on success, or a negative value on error.

Parameters

Name

Description

ctx

EVP_PKEY_CTX configured for DH parameter generation.

qlen

Desired bit length of the subprime q.

Created with MrDocs