Set whether ECDH key agreement multiplies by the curve cofactor.
Synopsis
Declared in <openssl/ec.h>
int
EVP_PKEY_CTX_set_ecdh_cofactor_mode(
EVP_PKEY_CTX* ctx,
int cofactor_mode);
Return Value
1 on success, or a negative value on failure.
Parameters
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. |
Created with MrDocs