EVP_PKEY_CTX_set_dsa_paramgen_bits

Set the DSA prime modulus length in bits for parameter generation.

Synopsis

Declared in <openssl/dsa.h>

int
EVP_PKEY_CTX_set_dsa_paramgen_bits(
    EVP_PKEY_CTX* ctx,
    int nbits);

Return Value

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

Parameters

NameDescription
ctxEVP_PKEY_CTX configured for DSA parameter generation.
nbitsDesired bit length of p (for example 2048).