Lines Matching refs:ctx
620 size_t num, BN_CTX *ctx)
654 if ((mod = BN_CTX_get(ctx)) == NULL)
656 if (!BN_nnmod(mod, scalar[i], group->order, ctx)) {
813 __owur static int ecp_nistz256_mult_precompute(EC_GROUP *group, BN_CTX *ctx)
851 if (ctx == NULL) {
852 ctx = new_ctx = BN_CTX_new_ex(group->libctx);
853 if (ctx == NULL)
857 BN_CTX_start(ctx);
900 || !group->meth->make_affine(group, P, ctx))
909 if (!EC_POINT_dbl(group, P, P, ctx))
913 if (!EC_POINT_add(group, T, T, generator, ctx))
927 BN_CTX_end(ctx);
939 BN_CTX *ctx)
957 const BIGNUM *scalars[], BN_CTX *ctx)
982 BN_CTX_start(ctx);
1005 group, &p.a, ctx)) {
1010 if (0 == EC_POINT_cmp(group, generator, pre_comp_generator, ctx))
1031 if ((tmp_scalar = BN_CTX_get(ctx)) == NULL)
1034 if (!BN_nnmod(tmp_scalar, scalar, group->order, ctx)) {
1152 if (!ecp_nistz256_windowed_mul(group, out, scalars, points, num, ctx))
1170 BN_CTX_end(ctx);
1178 BIGNUM *x, BIGNUM *y, BN_CTX *ctx)
1302 const BIGNUM *x, BN_CTX *ctx)
1336 if ((tmp = BN_CTX_get(ctx)) == NULL
1337 || !BN_nnmod(tmp, x, group->order, ctx)) {