EVP_PKEY_CTX_set1_scrypt_salt

Set the scrypt salt on a KDF key context (copies salt).

Synopsis

Declared in <openssl/kdf.h>

int
EVP_PKEY_CTX_set1_scrypt_salt(
    EVP_PKEY_CTX* ctx,
    unsigned char const* salt,
    int saltlen);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
ctxContext configured for the scrypt algorithm.
saltSalt octets to copy.
saltlenLength of salt in bytes.