Set the message digest used by RSA-OAEP padding on a key context.
Declared in <openssl/rsa.h>
int
EVP_PKEY_CTX_set_rsa_oaep_md(
EVP_PKEY_CTX* ctx,
EVP_MD const* md);
1 on success, or a non-positive value on failure.
| Name | Description |
|---|---|
| ctx | Encrypt/decrypt context for an RSA key using OAEP. |
| md | OAEP hash algorithm (for example EVP_sha256()). |