[#DSA_generate_parameters_ex]
= DSA&lowbar;generate&lowbar;parameters&lowbar;ex
:mrdocs:

Generate DSA domain parameters into an existing DSA object (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;generate&lowbar;parameters&lowbar;ex(
    xref:DSA.adoc[DSA]* dsa,
    int bits,
    unsigned char const* seed,
    int seed&lowbar;len,
    int* counter&lowbar;ret,
    unsigned long* h&lowbar;ret,
    xref:BN_GENCB.adoc[BN&lowbar;GENCB]* cb);
----

[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
| *dsa*
| Destination DSA that receives p, q, and g&period;
| *bits*
| Desired length of the prime p in bits&period;
| *seed*
| Optional seed for deterministic generation, or NULL&period;
| *seed&lowbar;len*
| Length of `seed` in bytes&period;
| *counter&lowbar;ret*
| Optional output for the generation counter, or NULL&period;
| *h&lowbar;ret*
| Optional output for the generator counter h, or NULL&period;
| *cb*
| Optional progress callback, or NULL&period;
|===


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