[#EVP_PKEY_CTX_set_dsa_paramgen_gindex]
= EVP&lowbar;PKEY&lowbar;CTX&lowbar;set&lowbar;dsa&lowbar;paramgen&lowbar;gindex
:mrdocs:

Set the DSA parameter&hyphen;generation gindex (FIPS 186 verifiable g seed index)&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;gindex(
    xref:EVP_PKEY_CTX.adoc[EVP&lowbar;PKEY&lowbar;CTX]* ctx,
    int gindex);
----

== 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;
| *gindex*
| Non&hyphen;negative gindex value passed to the DSA provider&period;
|===


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