EVP_PKEY_CTX_set_scrypt_N

Set the scrypt CPU/memory cost parameter N on a PKEY KDF context.

Synopsis

Declared in <openssl/kdf.h>

int
EVP_PKEY_CTX_set_scrypt_N(
    EVP_PKEY_CTX* ctx,
    uint64_t n);

Return Value

1 on success, or a negative value on error.

Parameters

NameDescription
ctxContext configured for the scrypt KDF.
nCost parameter N (power of two).