[#EVP_PKEY_verify_recover]
= EVP&lowbar;PKEY&lowbar;verify&lowbar;recover
:mrdocs:

Recover the signed data from a signature (algorithms that support recovery, e&period;g&period; RSA)&period;

== Synopsis

Declared in `&lt;openssl&sol;evp&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
EVP&lowbar;PKEY&lowbar;verify&lowbar;recover(
    xref:EVP_PKEY_CTX.adoc[EVP&lowbar;PKEY&lowbar;CTX]* ctx,
    unsigned char* rout,
    size&lowbar;t* routlen,
    unsigned char const* sig,
    size&lowbar;t siglen);
----

== Return Value

1 on success, 0 or a negative value on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| Context previously prepared with EVP&lowbar;PKEY&lowbar;verify&lowbar;recover&lowbar;init()&period;
| *rout*
| Output buffer for the recovered data, or NULL to only query the required length&period;
| *routlen*
| On entry, capacity of `rout` when non&hyphen;NULL&semi; on return, recovered length in bytes&period;
| *sig*
| Signature bytes to recover from&period;
| *siglen*
| Length of `sig` in bytes&period;
|===


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