EVP_PKEY_CTX_set_scrypt_maxmem_bytes

Cap the memory scrypt may use during key derivation.

Synopsis

Declared in <openssl/kdf.h>

int
EVP_PKEY_CTX_set_scrypt_maxmem_bytes(
    EVP_PKEY_CTX* ctx,
    uint64_t maxmem_bytes);

Return Value

1 on success, or a negative value on error.

Parameters

NameDescription
ctxContext configured for the scrypt KDF.
maxmem_bytesMaximum bytes of RAM the derivation may consume.