Recover the signed data from a signature (algorithms that support recovery, e.g. RSA).
Declared in <openssl/evp.h>
int
EVP_PKEY_verify_recover(
EVP_PKEY_CTX* ctx,
unsigned char* rout,
size_t* routlen,
unsigned char const* sig,
size_t siglen);
1 on success, 0 or a negative value on failure.
| Name | Description |
|---|---|
| ctx | Context previously prepared with EVP_PKEY_verify_recover_init(). |
| rout | Output buffer for the recovered data, or NULL to only query the required length. |
| routlen | On entry, capacity of rout when non-NULL; on return, recovered length in bytes. |
| sig | Signature bytes to recover from. |
| siglen | Length of sig in bytes. |