[#PKCS5_v2_scrypt_keyivgen_ex]
= PKCS5&lowbar;v2&lowbar;scrypt&lowbar;keyivgen&lowbar;ex
:mrdocs:

Initialize `ctx` for scrypt&hyphen;based PBE using a library context&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
PKCS5&lowbar;v2&lowbar;scrypt&lowbar;keyivgen&lowbar;ex(
    xref:EVP_CIPHER_CTX.adoc[EVP&lowbar;CIPHER&lowbar;CTX]* ctx,
    char const* pass,
    int passlen,
    xref:ASN1_TYPE.adoc[ASN1&lowbar;TYPE]* param,
    xref:EVP_CIPHER-07.adoc[EVP&lowbar;CIPHER] const* c,
    xref:EVP_MD.adoc[EVP&lowbar;MD] const* md,
    int en&lowbar;de,
    xref:OSSL_LIB_CTX.adoc[OSSL&lowbar;LIB&lowbar;CTX]* libctx,
    char const* propq);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| Cipher context to initialize&period;
| *pass*
| Password bytes&period;
| *passlen*
| Length of `pass,` or &hyphen;1 if NUL&hyphen;terminated&period;
| *param*
| ASN&period;1 parameters describing salt and scrypt settings&period;
| *c*
| Content cipher to initialize&period;
| *md*
| Unused for scrypt (may be NULL)&period;
| *en&lowbar;de*
| 1 to encrypt, or 0 to decrypt&period;
| *libctx*
| Library context for algorithm fetches, or NULL for the default&period;
| *propq*
| Property query for algorithm fetches, or NULL&period;
|===


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