Lines Matching defs:mode
359 int ossl_ec_set_ecdh_cofactor_mode(EC_KEY *ec, int mode)
364 * mode can be only 0 for disable, or 1 for enable here.
367 * also supports mode == -1 with the meaning of "reset to the default for
370 if (mode < 0 || mode > 1)
376 /* ECDH cofactor mode has no effect if cofactor is 1 */
380 if (mode == 1)
382 else if (mode == 0)
565 int mode;
567 if (!OSSL_PARAM_get_int(p, &mode)
568 || !ossl_ec_set_ecdh_cofactor_mode(ec, mode))