RSA_padding_add_PKCS1_OAEP_mgf1

Apply PKCS#1 OAEP padding with explicit message and MGF1 digests (deprecated).

Synopsis

Declared in <openssl/rsa.h>

[[deprecated]]
int
RSA_padding_add_PKCS1_OAEP_mgf1(
    unsigned char* to,
    int tlen,
    unsigned char const* from,
    int flen,
    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

1 on success, or a non-positive value on failure.

Parameters

NameDescription
toDestination buffer for the encoded message (typically modulus-sized).
tlenCapacity of to in bytes.
fromMessage octets to encode.
flenLength of from in bytes.
paramOptional OAEP encoding parameter / label octets, or NULL.
plenLength of param in bytes.
mdDigest used for OAEP label hashing; NULL selects SHA-1.
mgf1mdDigest used for MGF1; NULL selects the same digest as md.