EVP_PKEY_CTX_set_dh_kdf_outlen

Set the output length in bytes of the DH key-derivation function.

Synopsis

Declared in <openssl/dh.h>

int
EVP_PKEY_CTX_set_dh_kdf_outlen(
    EVP_PKEY_CTX* ctx,
    int len);

Return Value

1 on success, or a non-positive value on failure.

Parameters

NameDescription
ctxKey context configured for a DH KDF operation.
lenDesired KDF output length in bytes.