EVP_PKEY_verify_recover

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

Synopsis

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);

Return Value

1 on success, 0 or a negative value on failure.

Parameters

NameDescription
ctxContext previously prepared with EVP_PKEY_verify_recover_init().
routOutput buffer for the recovered data, or NULL to only query the required length.
routlenOn entry, capacity of rout when non-NULL; on return, recovered length in bytes.
sigSignature bytes to recover from.
siglenLength of sig in bytes.