Set whether ECDH key agreement multiplies by the curve cofactor.
Declared in <openssl/ec.h>
int
EVP_PKEY_CTX_set_ecdh_cofactor_mode(
EVP_PKEY_CTX* ctx,
int cofactor_mode);
1 on success, or a negative value on failure.
| Name | Description |
|---|---|
| ctx | Key context configured for ECDH. |
| cofactor_mode | 1 to enable cofactor ECDH, 0 to disable, or -1 to reset to the default. |