[#EVP_PBE_KEYGEN_EX]
= EVP&lowbar;PBE&lowbar;KEYGEN&lowbar;EX
:mrdocs:

Extended password&hyphen;based encryption key&hyphen;setup callback with library context support&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
typedef int EVP&lowbar;PBE&lowbar;KEYGEN&lowbar;EX(xref:EVP_CIPHER_CTX.adoc[EVP&lowbar;CIPHER&lowbar;CTX]*, char const*, int, xref:ASN1_TYPE.adoc[ASN1&lowbar;TYPE]*, xref:EVP_CIPHER-07.adoc[EVP&lowbar;CIPHER] const*, xref:EVP_MD.adoc[EVP&lowbar;MD] const*, int, xref:OSSL_LIB_CTX.adoc[OSSL&lowbar;LIB&lowbar;CTX]*, char const*);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| Cipher context that receives the derived key and IV&period;
| *pass*
| Password bytes (may contain embedded NULs when `passlen` is set)&period;
| *passlen*
| Length of `pass` in bytes, or &hyphen;1 if `pass` is a NUL&hyphen;terminated string&period;
| *param*
| Algorithm&hyphen;specific PBE parameters (for example PBKDF2PARAM)&period;
| *cipher*
| Cipher to initialize&period;
| *md*
| Digest used by the PBE scheme when applicable&period;
| *en&lowbar;de*
| 1 to encrypt, 0 to decrypt&period;
| *libctx*
| Library context used when fetching algorithms, or NULL for the default&period;
| *propq*
| Property query for algorithm fetches, or NULL&period;
|===


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