[#EVP_PBE_find]
= EVP&lowbar;PBE&lowbar;find
:mrdocs:

Look up a registered password&hyphen;based encryption (PBE) algorithm by NID&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
EVP&lowbar;PBE&lowbar;find(
    int type,
    int pbe&lowbar;nid,
    int* pcnid,
    int* pmnid,
    xref:EVP_PBE_KEYGEN.adoc[EVP&lowbar;PBE&lowbar;KEYGEN]** pkeygen);
----

== Return Value

1 if found, or 0 otherwise&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *type*
| PBE application type such as EVP&lowbar;PBE&lowbar;TYPE&lowbar;OUTER or EVP&lowbar;PBE&lowbar;TYPE&lowbar;PRF&period;
| *pbe&lowbar;nid*
| NID of the PBE AlgorithmIdentifier&period;
| *pcnid*
| Optional destination for the cipher NID, or NULL&period;
| *pmnid*
| Optional destination for the digest&sol;PRF NID, or NULL&period;
| *pkeygen*
| Optional destination for the keygen function pointer, or NULL&period;
|===


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