[#RSA_padding_add_PKCS1_PSS]
= RSA&lowbar;padding&lowbar;add&lowbar;PKCS1&lowbar;PSS
:mrdocs:

Encode an EMSA&hyphen;PSS padded block for RSA signature (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;padding&lowbar;add&lowbar;PKCS1&lowbar;PSS(
    xref:RSA.adoc[RSA]* rsa,
    unsigned char* EM,
    unsigned char const* mHash,
    xref:EVP_MD.adoc[EVP&lowbar;MD] const* Hash,
    int sLen);
----

[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
| *rsa*
| RSA key providing the modulus length&period;
| *EM*
| Destination encoded message of length RSA&lowbar;size(`rsa)&period;`
| *mHash*
| Hash of the message being signed&period;
| *Hash*
| Digest method that produced `mHash` (and used by MGF1 unless configured otherwise)&period;
| *sLen*
| Salt length in bytes, or RSA&lowbar;PSS&lowbar;SALTLEN&lowbar;&ast; special values&period;
|===


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