EVP_PKEY_CTX_set1_hkdf_salt

Set the HKDF salt, replacing any previously set salt.

Synopsis

Declared in <openssl/kdf.h>

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

Return Value

1 on success, or a negative value on error.

Parameters

NameDescription
ctxContext configured for the HKDF KDF.
saltSalt octets (copied), or NULL when saltlen is 0.
saltlenLength of salt in bytes.