[#RSA_padding_add_PKCS1_OAEP]
= RSA&lowbar;padding&lowbar;add&lowbar;PKCS1&lowbar;OAEP
:mrdocs:

Apply PKCS&num;1 OAEP padding using SHA&hyphen;1 &sol; MGF1&hyphen;SHA&hyphen;1 defaults (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;OAEP(
    unsigned char* to,
    int tlen,
    unsigned char const* f,
    int fl,
    unsigned char const* p,
    int pl);
----

[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
| *to*
| Destination encoded block of length `tlen&period;`
| *tlen*
| RSA modulus size in bytes&period;
| *f*
| Message bytes to pad&period;
| *fl*
| Length of `f` in bytes&period;
| *p*
| Optional OAEP encoding parameter &sol; label bytes, or NULL&period;
| *pl*
| Length of `p` in bytes&period;
|===


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