[#RSA_padding_check_X931]
= RSA&lowbar;padding&lowbar;check&lowbar;X931
:mrdocs:

Verify ANSI X9&period;31 padding 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;X931(
    unsigned char* to,
    int tlen,
    unsigned char const* f,
    int fl,
    int rsa&lowbar;len);
----

[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;
| *f*
| Encoded block to check&period;
| *fl*
| Length of `f` in bytes&period;
| *rsa&lowbar;len*
| Expected RSA modulus size in bytes&period;
|===


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