ECDH_KDF_X9_62

Derive key material from an ECDH shared secret using the X9.63 KDF (deprecated).

Synopsis

Declared in <openssl/ec.h>

[[deprecated]]
int
ECDH_KDF_X9_62(
    unsigned char* out,
    size_t outlen,
    unsigned char const* Z,
    size_t Zlen,
    unsigned char const* sinfo,
    size_t sinfolen,
    EVP_MD const* md);

WARNING

Deprecated. Use of this entity is allowed but discouraged.

Description

Historically named for ANSI X9.62; the KDF is actually specified in ANSI X9.63. Retained for ABI compatibility (prefer X9.63-named APIs).

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
outDestination buffer for the derived key material.
outlenNumber of bytes to write to out.
ZShared secret (ECDH Z) octets used as KDF key input.
ZlenLength of Z in bytes.
sinfoOptional shared-info / OtherInfo octets bound into the KDF, or NULL if sinfolen is 0.
sinfolenLength of sinfo in bytes.
mdMessage digest used by the X9.63 KDF (for example SHA-256).