Set the message digest used for the ECDH X9.63 KDF on a key context.
Declared in <openssl/ec.h>
int
EVP_PKEY_CTX_set_ecdh_kdf_md(
EVP_PKEY_CTX* ctx,
EVP_MD const* md);
1 on success, or a non-positive value on failure.
| Name | Description |
|---|---|
| ctx | Key-exchange context configured for ECDH with a KDF. |
| md | Digest method such as EVP_sha256(); ownership is not transferred. |