[#RSA_set0_multi_prime_params]
= RSA&lowbar;set0&lowbar;multi&lowbar;prime&lowbar;params
:mrdocs:

Set multi&hyphen;prime RSA factors, exponents, and CRT coefficients (deprecated)&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;deprecated&rsqb;&rsqb;
int
RSA&lowbar;set0&lowbar;multi&lowbar;prime&lowbar;params(
    xref:RSA.adoc[RSA]* r,
    xref:BIGNUM.adoc[BIGNUM]* primes[],
    xref:BIGNUM.adoc[BIGNUM]* exps[],
    xref:BIGNUM.adoc[BIGNUM]* coeffs[],
    int pnum);
----

[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
| *r*
| RSA key to update&period;
| *primes*
| Array of `pnum` prime factors that `r` will own&period;
| *exps*
| Array of `pnum` CRT exponents that `r` will own&period;
| *coeffs*
| Array of `pnum` CRT coefficients that `r` will own&period;
| *pnum*
| Number of additional primes (beyond the classic two&hyphen;prime case)&period;
|===


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