Lines Matching refs:ctx
123 BN_CTX *ctx = NULL;
127 ctx = BN_CTX_new_ex(ossl_ec_key_get_libctx(priv));
128 if (ctx == NULL) {
134 && EC_GROUP_cmp(group_priv, group_peer, ctx) == 0;
137 BN_CTX_free(ctx);
463 * The ctx->cofactor_mode flag has precedence over the
464 * cofactor_mode flag set on ctx->k.
466 * - if ctx->cofactor_mode == -1, use ctx->k directly
467 * - if ctx->cofactor_mode == key_cofactor_mode, use ctx->k directly
468 * - if ctx->cofactor_mode != key_cofactor_mode:
469 * - if ctx->k->cofactor == 1, the cofactor_mode flag is irrelevant, use
470 * ctx->k directly
471 * - if ctx->k->cofactor != 1, use a duplicate of ctx->k with the flag
472 * set to ctx->cofactor_mode