RSA_padding_check_PKCS1_OAEP_mgf1

Verify PKCS#1 OAEP padding with explicit digests and recover the message (deprecated).

Synopsis

Declared in <openssl/rsa.h>

[[deprecated]]
int
RSA_padding_check_PKCS1_OAEP_mgf1(
    unsigned char* to,
    int tlen,
    unsigned char const* from,
    int flen,
    int num,
    unsigned char const* param,
    int plen,
    EVP_MD const* md,
    EVP_MD const* mgf1md);

WARNING

Deprecated. Use of this entity is allowed but discouraged.

Return Value

Length of the recovered message, or a negative value on error.

Parameters

NameDescription
toDestination buffer for the recovered message.
tlenCapacity of to in bytes.
fromEncoded OAEP block.
flenLength of from in bytes.
numRSA modulus size in bytes.
paramOptional OAEP label bytes, or NULL.
plenLength of param in bytes.
mdHash used by OAEP, or NULL for SHA-1.
mgf1mdHash used by MGF1, or NULL to use md.