RSA_padding_add_PKCS1_OAEP

Apply PKCS#1 OAEP padding using SHA-1 / MGF1-SHA-1 defaults (deprecated).

Synopsis

Declared in <openssl/rsa.h>

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

WARNING

Deprecated. Use of this entity is allowed but discouraged.

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
toDestination encoded block of length tlen.
tlenRSA modulus size in bytes.
fMessage bytes to pad.
flLength of f in bytes.
pOptional OAEP encoding parameter / label bytes, or NULL.
plLength of p in bytes.