[#RSA_verify_PKCS1_PSS_mgf1]
= RSA&lowbar;verify&lowbar;PKCS1&lowbar;PSS&lowbar;mgf1
:mrdocs:

Verify a PKCS&num;1 PSS&hyphen;encoded digest using an explicit MGF1 hash (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;verify&lowbar;PKCS1&lowbar;PSS&lowbar;mgf1(
    xref:RSA.adoc[RSA]* rsa,
    unsigned char const* mHash,
    xref:EVP_MD.adoc[EVP&lowbar;MD] const* Hash,
    xref:EVP_MD.adoc[EVP&lowbar;MD] const* mgf1Hash,
    unsigned char const* EM,
    int sLen);
----

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

1 if the encoding is valid, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *rsa*
| RSA key whose modulus length defines the encoded message size&period;
| *mHash*
| Message digest that was signed&period;
| *Hash*
| Hash algorithm that produced `mHash` and labels the PSS encoding&period;
| *mgf1Hash*
| Hash algorithm used by MGF1, or NULL to use `Hash&period;`
| *EM*
| Encoded message to verify (typically RSA&lowbar;size(rsa) bytes)&period;
| *sLen*
| Salt length in bytes, or a special RSA&lowbar;PSS&lowbar;SALTLEN&lowbar;&ast; value&period;
|===


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