[#RSA_padding_check_PKCS1_OAEP_mgf1]
= RSA&lowbar;padding&lowbar;check&lowbar;PKCS1&lowbar;OAEP&lowbar;mgf1
:mrdocs:

Verify PKCS&num;1 OAEP padding with explicit digests and recover the message (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;check&lowbar;PKCS1&lowbar;OAEP&lowbar;mgf1(
    unsigned char* to,
    int tlen,
    unsigned char const* from,
    int flen,
    int num,
    unsigned char const* param,
    int plen,
    xref:EVP_MD.adoc[EVP&lowbar;MD] const* md,
    xref:EVP_MD.adoc[EVP&lowbar;MD] const* mgf1md);
----

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

Length of the recovered message, or a negative value on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *to*
| Destination buffer for the recovered message&period;
| *tlen*
| Capacity of `to` in bytes&period;
| *from*
| Encoded OAEP block&period;
| *flen*
| Length of `from` in bytes&period;
| *num*
| RSA modulus size in bytes&period;
| *param*
| Optional OAEP label bytes, or NULL&period;
| *plen*
| Length of `param` in bytes&period;
| *md*
| Hash used by OAEP, or NULL for SHA&hyphen;1&period;
| *mgf1md*
| Hash used by MGF1, or NULL to use `md&period;`
|===


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