[#DSA_do_sign]
= DSA&lowbar;do&lowbar;sign
:mrdocs:

Sign a digest with a DSA private key, returning a DSA&lowbar;SIG structure (deprecated)&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;deprecated&rsqb;&rsqb;
xref:DSA_SIG.adoc[DSA&lowbar;SIG]*
DSA&lowbar;do&lowbar;sign(
    unsigned char const* dgst,
    int dlen,
    xref:DSA.adoc[DSA]* dsa);
----

[WARNING]
====
https://en.cppreference.com/cpp/language/attributes/deprecated[Deprecated^]. Use of this entity is allowed but discouraged.
====
== Return Value

Newly allocated DSA&lowbar;SIG, or NULL on error&semi; free with DSA&lowbar;SIG&lowbar;free()&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *dgst*
| Digest bytes to sign&period;
| *dlen*
| Length of `dgst` in bytes&period;
| *dsa*
| DSA key containing the private key used for signing&period;
|===


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