[#DSA_sign]
= DSA&lowbar;sign
:mrdocs:

Create a DER&hyphen;encoded DSA signature over a message digest (deprecated)&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;deprecated&rsqb;&rsqb;
int
DSA&lowbar;sign(
    int type,
    unsigned char const* dgst,
    int dlen,
    unsigned char* sig,
    unsigned int* siglen,
    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

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *type*
| Historical digest NID&semi; ignored by modern implementations&period;
| *dgst*
| Digest octets to sign&period;
| *dlen*
| Length of `dgst` in bytes&period;
| *sig*
| Output buffer receiving the DER signature (at least DSA&lowbar;size(`dsa)` bytes)&period;
| *siglen*
| Receives the number of signature bytes written&period;
| *dsa*
| DSA key containing the private key used for signing&period;
|===


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