[#EVP_PKEY_CTX_set_scrypt_N]
= EVP&lowbar;PKEY&lowbar;CTX&lowbar;set&lowbar;scrypt&lowbar;N
:mrdocs:

Set the scrypt CPU&sol;memory cost parameter N on a PKEY KDF context&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;set&lowbar;scrypt&lowbar;N(
    xref:EVP_PKEY_CTX.adoc[EVP&lowbar;PKEY&lowbar;CTX]* ctx,
    uint64&lowbar;t n);
----

== Return Value

1 on success, or a negative value on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| Context configured for the scrypt KDF&period;
| *n*
| Cost parameter N (power of two)&period;
|===


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