Lines Matching defs:mode
60 * ECDH cofactor mode:
64 * . -1 use cofactor mode set for k
242 int mode;
244 if (!OSSL_PARAM_get_int(p, &mode))
247 if (mode < -1 || mode > 1)
250 pectx->cofactor_mode = mode;
346 int mode = pectx->cofactor_mode;
348 if (mode == -1) {
350 mode = EC_KEY_get_flags(pectx->k) & EC_FLAG_COFACTOR_ECDH ? 1 : 0;
353 if (!OSSL_PARAM_set_int(p, mode))