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

Name

Description

ctx

EVP_PKEY_CTX configured for DSA parameter generation.

nbits

Desired bit length of p (for example 2048).

Created with MrDocs