[#PKCS1_MGF1]
= PKCS1&lowbar;MGF1
:mrdocs:

Generate a PKCS &num;1 mask using MGF1 with digest `dgst` (deprecated)&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;deprecated&rsqb;&rsqb;
int
PKCS1&lowbar;MGF1(
    unsigned char* mask,
    long len,
    unsigned char const* seed,
    long seedlen,
    xref:EVP_MD.adoc[EVP&lowbar;MD] const* dgst);
----

[WARNING]
====
https://en.cppreference.com/cpp/language/attributes/deprecated[Deprecated^]. Use of this entity is allowed but discouraged.
====
== Return Value

0 on success, or &hyphen;1 on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *mask*
| Output buffer that receives `len` mask bytes&period;
| *len*
| Desired mask length in bytes&period;
| *seed*
| MGF seed (mgfSeed)&period;
| *seedlen*
| Length of `seed` in bytes&period;
| *dgst*
| Hash function used by MGF1&period;
|===


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