Apply PKCS#1 OAEP padding using SHA-1 / MGF1-SHA-1 defaults (deprecated).
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);
Deprecated. Use of this entity is allowed but discouraged.
1 on success, or 0 on failure.
| 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. |