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

Name

Description

to

Destination encoded block of length tlen.

tlen

RSA modulus size in bytes.

f

Message bytes to pad.

fl

Length of f in bytes.

p

Optional OAEP encoding parameter / label bytes, or NULL.

pl

Length of p in bytes.

Created with MrDocs