Set the MGF1 digest for RSA-PSS or RSA-OAEP by algorithm name.
Declared in <openssl/rsa.h>
int
EVP_PKEY_CTX_set_rsa_mgf1_md_name(
EVP_PKEY_CTX* ctx,
char const* mdname,
char const* mdprops);
1 on success, or a negative value on failure.
| Name | Description |
|---|---|
| ctx | Key operation context configured for RSA padding that uses MGF1. |
| mdname | Digest name (for example "SHA256"). |
| mdprops | Optional property query for fetching mdname, or NULL. |