RSA_padding_check_PKCS1_OAEP

Verify PKCS#1 OAEP padding and recover the encoded message (deprecated).

Synopsis

Declared in <openssl/rsa.h>

[[deprecated]]
int
RSA_padding_check_PKCS1_OAEP(
    unsigned char* to,
    int tlen,
    unsigned char const* f,
    int fl,
    int rsa_len,
    unsigned char const* p,
    int pl);

WARNING

Deprecated. Use of this entity is allowed but discouraged.

Return Value

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

Parameters

NameDescription
toDestination buffer for the recovered message.
tlenCapacity of to in bytes.
fEncoded message after RSA public operation (typically modulus-sized).
flLength of f in bytes.
rsa_lenRSA modulus size in bytes (used to validate encoding length).
pOptional OAEP encoding parameter / label octets, or NULL.
plLength of p in bytes.