[#EVP_PKEY_CTX_get_rsa_mgf1_md]
= EVP&lowbar;PKEY&lowbar;CTX&lowbar;get&lowbar;rsa&lowbar;mgf1&lowbar;md
:mrdocs:

Get the MGF1 digest configured for RSA&hyphen;PSS or RSA&hyphen;OAEP on a key context&period;

== Synopsis

Declared in `&lt;openssl&sol;rsa&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
EVP&lowbar;PKEY&lowbar;CTX&lowbar;get&lowbar;rsa&lowbar;mgf1&lowbar;md(
    xref:EVP_PKEY_CTX.adoc[EVP&lowbar;PKEY&lowbar;CTX]* ctx,
    xref:EVP_MD.adoc[EVP&lowbar;MD] const** md);
----

== Return Value

1 on success, or a non&hyphen;positive value on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| RSA key context&period;
| *md*
| Receives a pointer to the digest method (do not free)&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
