[#DSA_sign_setup]
= DSA&lowbar;sign&lowbar;setup
:mrdocs:

Legacy DSA precomputation stub retained for ABI compatibility (deprecated&semi; do not use)&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&lowbar;setup(
    xref:DSA.adoc[DSA]* dsa,
    xref:BN_CTX.adoc[BN&lowbar;CTX]* ctx&lowbar;in,
    xref:BIGNUM.adoc[BIGNUM]** kinvp,
    xref:BIGNUM.adoc[BIGNUM]** rp);
----

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

Calling this only adds overhead&semi; it does not affect DSA&lowbar;sign()&period;

== Return Value

1 on success, or 0 &sol; &hyphen;1 on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *dsa*
| DSA key (unused for signature math since OpenSSL 1&period;1&period;0 opaque DSA)&period;
| *ctx&lowbar;in*
| Optional BN&lowbar;CTX, or NULL&period;
| *kinvp*
| Receives allocated BIGNUM output historically used as k&circ;&hyphen;1 (caller frees)&semi; may be unused&period;
| *rp*
| Receives allocated BIGNUM output historically used as r (caller frees)&semi; may be unused&period;
|===


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