EC_KEY_METHOD_set_compute_key

Set the ECDH shared-secret callback on an EC_KEY_METHOD (deprecated).

Synopsis

Declared in <openssl/ec.h>

[[deprecated]]
void
EC_KEY_METHOD_set_compute_key(
    EC_KEY_METHOD* meth,
    int(* ckey)(unsigned char**, size_t*, EC_POINT const*, EC_KEY const*));

WARNING

Deprecated. Use of this entity is allowed but discouraged.

Parameters

NameDescription
methMethod table to update.
ckeyCallback that computes the shared secret into *psec / *pseclen, or NULL to clear.