[#EVP_PKEY_CTX_set_dsa_paramgen_bits]
= EVP&lowbar;PKEY&lowbar;CTX&lowbar;set&lowbar;dsa&lowbar;paramgen&lowbar;bits
:mrdocs:

Set the DSA prime modulus length in bits for parameter generation&period;

== Synopsis

Declared in `&lt;openssl&sol;dsa&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
EVP&lowbar;PKEY&lowbar;CTX&lowbar;set&lowbar;dsa&lowbar;paramgen&lowbar;bits(
    xref:EVP_PKEY_CTX.adoc[EVP&lowbar;PKEY&lowbar;CTX]* ctx,
    int nbits);
----

== Return Value

1 on success, or a non&hyphen;positive value on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| EVP&lowbar;PKEY&lowbar;CTX configured for DSA parameter generation&period;
| *nbits*
| Desired bit length of p (for example 2048)&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
