EVP_PKEY_CTX_set0_dh_kdf_oid

Set the X9.42 KDF OID for DH key derivation, transferring ownership of oid.

Synopsis

Declared in <openssl/dh.h>

int
EVP_PKEY_CTX_set0_dh_kdf_oid(
    EVP_PKEY_CTX* ctx,
    ASN1_OBJECT* oid);

Return Value

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

Parameters

NameDescription
ctxKey context configured for a DHX KDF / derive operation.
oidASN.1 object identifying the CEK algorithm; ctx takes ownership.