[#EVP_PKEY_CTX_set1_pbe_pass]
= EVP&lowbar;PKEY&lowbar;CTX&lowbar;set1&lowbar;pbe&lowbar;pass
:mrdocs:

Set the password for a PBE&hyphen;based EVP&lowbar;PKEY&lowbar;CTX derivation (PKCS&num;5 style)&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
EVP&lowbar;PKEY&lowbar;CTX&lowbar;set1&lowbar;pbe&lowbar;pass(
    xref:EVP_PKEY_CTX.adoc[EVP&lowbar;PKEY&lowbar;CTX]* ctx,
    char const* pass,
    int passlen);
----

== Return Value

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

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| Key&hyphen;derivation context&period;
| *pass*
| Password bytes (may contain embedded NULs)&period;
| *passlen*
| Length of `pass` in bytes&period;
|===


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