Derive key material from an ECDH shared secret using the X9.63 KDF (deprecated).
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);
Deprecated. Use of this entity is allowed but discouraged.
Historically named for ANSI X9.62; the KDF is actually specified in ANSI X9.63. Retained for ABI compatibility (prefer X9.63-named APIs).
1 on success, or 0 on failure.
| Name | Description |
|---|---|
| out | Destination buffer for the derived key material. |
| outlen | Number of bytes to write to out. |
| Z | Shared secret (ECDH Z) octets used as KDF key input. |
| Zlen | Length of Z in bytes. |
| sinfo | Optional shared-info / OtherInfo octets bound into the KDF, or NULL if sinfolen is 0. |
| sinfolen | Length of sinfo in bytes. |
| md | Message digest used by the X9.63 KDF (for example SHA-256). |