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
Name |
Description |
out |
Destination buffer for the derived key material. |
outlen |
Number of bytes to write to |
Z |
Shared secret (ECDH Z) octets used as KDF key input. |
Zlen |
Length of |
sinfo |
Optional shared‐info / OtherInfo octets bound into the KDF, or NULL if |
sinfolen |
Length of |
md |
Message digest used by the X9.63 KDF (for example SHA‐256). |
Created with MrDocs