[#EVP_PKEY_CTX_set_dsa_paramgen_md]
= EVP&lowbar;PKEY&lowbar;CTX&lowbar;set&lowbar;dsa&lowbar;paramgen&lowbar;md
:mrdocs:

Set the digest used for DSA parameter generation on an EVP&lowbar;PKEY&lowbar;CTX&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;md(
    xref:EVP_PKEY_CTX.adoc[EVP&lowbar;PKEY&lowbar;CTX]* ctx,
    xref:EVP_MD.adoc[EVP&lowbar;MD] const* md);
----

== Return Value

1 on success, or a negative value for unsupported &sol; failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| Parameter&hyphen;generation context for a DSA key&period;
| *md*
| Message digest to use&semi; if unset, SHA&hyphen;1&sol;224&sol;256 is chosen to match q&period;
|===


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