EVP_PKEY_CTX_add1_hkdf_info

Append octets to the HKDF info/context parameter on a PKEY HKDF context.

Synopsis

Declared in <openssl/kdf.h>

int
EVP_PKEY_CTX_add1_hkdf_info(
    EVP_PKEY_CTX* ctx,
    unsigned char const* info,
    int infolen);

Return Value

1 on success, or a negative value on error.

Parameters

NameDescription
ctxKey derivation context configured for HKDF.
infoAdditional info bytes to append (copied).
infolenLength of info in bytes.