[#DH_KDF_X9_42] = DH_KDF_X9_42 :mrdocs: Derive keying material with the ANSI X9.42 / RFC 2631 KDF (deprecated). == Synopsis Declared in `<openssl/dh.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[deprecated]] int DH_KDF_X9_42( unsigned char* out, size_t outlen, unsigned char const* Z, size_t Zlen, xref:ASN1_OBJECT.adoc[ASN1_OBJECT]* key_oid, unsigned char const* ukm, size_t ukmlen, xref:EVP_MD.adoc[EVP_MD] const* md); ---- [WARNING] ==== https://en.cppreference.com/cpp/language/attributes/deprecated[Deprecated^]. Use of this entity is allowed but discouraged. ==== == Return Value 1 on success, or 0 on error. == Parameters [cols="1,4"] |=== | Name| Description | *out* | Output buffer of `outlen` bytes receiving the derived key. | *outlen* | Desired derived‐key length. | *Z* | Shared secret bytes. | *Zlen* | Length of `Z.` | *key_oid* | Algorithm OID embedded in the OtherInfo structure. | *ukm* | Optional partyInfo/UKM bytes, or NULL. | *ukmlen* | Length of `ukm` when non‐NULL. | *md* | Message digest used by the KDF. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#