EVP_PKEY_CTX_set_rsa_mgf1_md_name

Set the MGF1 digest for RSA-PSS or RSA-OAEP by algorithm name.

Synopsis

Declared in <openssl/rsa.h>

int
EVP_PKEY_CTX_set_rsa_mgf1_md_name(
    EVP_PKEY_CTX* ctx,
    char const* mdname,
    char const* mdprops);

Return Value

1 on success, or a negative value on failure.

Parameters

NameDescription
ctxKey operation context configured for RSA padding that uses MGF1.
mdnameDigest name (for example "SHA256").
mdpropsOptional property query for fetching mdname, or NULL.