[#EVP_PKEY_CTX_set1_scrypt_salt]
= EVP&lowbar;PKEY&lowbar;CTX&lowbar;set1&lowbar;scrypt&lowbar;salt
:mrdocs:

Set the scrypt salt on a KDF key context (copies `salt)&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;scrypt&lowbar;salt(
    xref:EVP_PKEY_CTX.adoc[EVP&lowbar;PKEY&lowbar;CTX]* ctx,
    unsigned char const* salt,
    int saltlen);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| Context configured for the scrypt algorithm&period;
| *salt*
| Salt octets to copy&period;
| *saltlen*
| Length of `salt` in bytes&period;
|===


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