Lines Matching defs:tmp
964 BIGNUM *rh, *tmp, *Z4, *Z6;
982 tmp = BN_CTX_get(ctx);
1003 if (!field_sqr(group, tmp, point->Z, ctx))
1005 if (!field_sqr(group, Z4, tmp, ctx))
1007 if (!field_mul(group, Z6, Z4, tmp, ctx))
1012 if (!BN_mod_lshift1_quick(tmp, Z4, p))
1014 if (!BN_mod_add_quick(tmp, tmp, Z4, p))
1016 if (!BN_mod_sub_quick(rh, rh, tmp, p))
1021 if (!field_mul(group, tmp, Z4, group->a, ctx))
1023 if (!BN_mod_add_quick(rh, rh, tmp, p))
1030 if (!field_mul(group, tmp, group->b, Z6, ctx))
1032 if (!BN_mod_add_quick(rh, rh, tmp, p))
1048 if (!field_sqr(group, tmp, point->Y, ctx))
1051 ret = (0 == BN_ucmp(tmp, rh));
1210 BIGNUM *tmp, *tmp_Z;
1225 tmp = BN_CTX_get(ctx);
1274 if (!group->meth->field_inv(group, tmp, prod_Z[num - 1], ctx)) {
1284 if (!group->meth->field_encode(group, tmp, tmp, ctx))
1286 if (!group->meth->field_encode(group, tmp, tmp, ctx))
1292 * Loop invariant: tmp is the product of the inverses of points[0]->Z
1301 meth->field_mul(group, tmp_Z, prod_Z[i - 1], tmp, ctx))
1304 * Update tmp to satisfy the loop invariant for i - 1.
1306 if (!group->meth->field_mul(group, tmp, tmp, points[i]->Z, ctx))
1316 if (!BN_copy(points[0]->Z, tmp))
1328 if (!group->meth->field_sqr(group, tmp, p->Z, ctx))
1330 if (!group->meth->field_mul(group, p->X, p->X, tmp, ctx))
1333 if (!group->meth->field_mul(group, tmp, tmp, p->Z, ctx))
1335 if (!group->meth->field_mul(group, p->Y, p->Y, tmp, ctx))