Cap the memory scrypt may use during key derivation.
Declared in <openssl/kdf.h>
int
EVP_PKEY_CTX_set_scrypt_maxmem_bytes(
EVP_PKEY_CTX* ctx,
uint64_t maxmem_bytes);
1 on success, or a negative value on error.
| Name | Description |
|---|---|
| ctx | Context configured for the scrypt KDF. |
| maxmem_bytes | Maximum bytes of RAM the derivation may consume. |