Set the message digest used by the HKDF extract/expand stages.

Synopsis

Declared in <openssl/kdf.h>

int
EVP_PKEY_CTX_set_hkdf_md(
    EVP_PKEY_CTX* ctx,
    EVP_MD const* md);

Return Value

1 on success, or a negative value on error.

Parameters

Name

Description

ctx

Context configured for the HKDF KDF.

md

Digest algorithm (for example EVP_sha256()).

Created with MrDocs