Lines Matching refs:ctx
236 BN_CTX *ctx = NULL;
247 if ((ctx = BN_CTX_new()) == NULL) goto err;
258 if (!EC_GROUP_get_order(eckey->group, order, ctx))
275 if (!EC_POINT_mul(eckey->group, pub_key, priv_key, NULL, NULL, ctx))
290 if (ctx != NULL)
291 BN_CTX_free(ctx);
298 BN_CTX *ctx = NULL;
308 if ((ctx = BN_CTX_new()) == NULL)
314 if (!EC_POINT_is_on_curve(eckey->group, eckey->pub_key, ctx))
326 if (!EC_POINT_mul(eckey->group, point, NULL, eckey->pub_key, order, ctx))
347 NULL, NULL, ctx))
353 ctx) != 0)
361 if (ctx != NULL)
362 BN_CTX_free(ctx);
452 int EC_KEY_precompute_mult(EC_KEY *key, BN_CTX *ctx)
456 return EC_GROUP_precompute_mult(key->group, ctx);