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

Name

Description

to

Destination buffer for the recovered message.

tlen

Capacity of to in bytes.

f

Encoded message after RSA public operation (typically modulus‐sized).

fl

Length of f in bytes.

rsa_len

RSA modulus size in bytes (used to validate encoding length).

p

Optional OAEP encoding parameter / label octets, or NULL.

pl

Length of p in bytes.

Created with MrDocs