Derive keying material with the ANSI X9.42 / RFC 2631 KDF (deprecated).

Synopsis

Declared in <openssl/dh.h>

[[deprecated]]
int
DH_KDF_X9_42(
    unsigned char* out,
    size_t outlen,
    unsigned char const* Z,
    size_t Zlen,
    ASN1_OBJECT* key_oid,
    unsigned char const* ukm,
    size_t ukmlen,
    EVP_MD const* md);
Warning

Deprecated. Use of this entity is allowed but discouraged.

Return Value

1 on success, or 0 on error.

Parameters

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.

Created with MrDocs