[#RSA_padding_add_PKCS1_OAEP_mgf1] = RSA_padding_add_PKCS1_OAEP_mgf1 :mrdocs: Apply PKCS#1 OAEP padding with explicit message and MGF1 digests (deprecated). == Synopsis Declared in `<openssl/rsa.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[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, xref:EVP_MD.adoc[EVP_MD] const* md, xref:EVP_MD.adoc[EVP_MD] const* mgf1md); ---- [WARNING] ==== https://en.cppreference.com/cpp/language/attributes/deprecated[Deprecated^]. Use of this entity is allowed but discouraged. ==== == Return Value 1 on success, or a non‐positive value on failure. == Parameters [cols="1,4"] |=== | Name| Description | *to* | Destination buffer for the encoded message (typically modulus‐sized). | *tlen* | Capacity of `to` in bytes. | *from* | Message octets to encode. | *flen* | Length of `from` in bytes. | *param* | Optional OAEP encoding parameter / label octets, or NULL. | *plen* | Length of `param` in bytes. | *md* | Digest used for OAEP label hashing; NULL selects SHA‐1. | *mgf1md* | Digest used for MGF1; NULL selects the same digest as `md.` |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#