Lines Matching refs:field_mul
81 * standard modular addition and subtraction are used, the field_mul and
529 /* in the Montgomery case, field_mul will cancel out Montgomery factor in
531 if (x != NULL && !group->meth->field_mul(group, x, &point->X, Z_2, ctx)) {
537 /* field_mul works on standard representation */
538 if (!group->meth->field_mul(group, Z_3, Z_2, Z_1, ctx)) {
545 /* in the Montgomery case, field_mul will cancel out Montgomery factor in
547 if (!group->meth->field_mul(group, y, &point->Y, Z_3, ctx)) {
563 int (*field_mul)(const EC_GROUP *, BIGNUM *, const BIGNUM *, const BIGNUM *,
581 field_mul = group->meth->field_mul;
618 !field_mul(group, n1, &a->X, n0, ctx)) {
623 if (!field_mul(group, n0, n0, &b->Z, ctx) ||
624 !field_mul(group, n2, &a->Y, n0, ctx)) {
639 !field_mul(group, n3, &b->X, n0, ctx)) {
644 if (!field_mul(group, n0, n0, &a->Z, ctx) ||
645 !field_mul(group, n4, &b->Y, n0, ctx)) {
697 } else if (!field_mul(group, n0, &a->Z, &b->Z, ctx)) {
700 if (!field_mul(group, &r->Z, n0, n5, ctx)) {
710 !field_mul(group, n3, n1, n4, ctx) ||
724 if (!field_mul(group, n0, n0, n6, ctx) ||
725 !field_mul(group, n5, n4, n5, ctx)) {
728 if (!field_mul(group, n1, n2, n5, ctx) ||
754 int (*field_mul)(const EC_GROUP *, BIGNUM *, const BIGNUM *, const BIGNUM *,
768 field_mul = group->meth->field_mul;
806 !field_mul(group, n1, n0, n2, ctx) ||
819 !field_mul(group, n1, n1, &group->a, ctx) ||
831 } else if (!field_mul(group, n0, &a->Y, &a->Z, ctx)) {
842 !field_mul(group, n2, &a->X, n3, ctx) ||
865 !field_mul(group, n0, n1, n0, ctx) ||
894 int (*field_mul)(const EC_GROUP *, BIGNUM *, const BIGNUM *, const BIGNUM *,
906 field_mul = group->meth->field_mul;
944 !field_mul(group, Z6, Z4, tmp, ctx)) {
953 !field_mul(group, rh, rh, &point->X, ctx)) {
957 if (!field_mul(group, tmp, Z4, &group->a, ctx) ||
959 !field_mul(group, rh, rh, &point->X, ctx)) {
965 if (!field_mul(group, tmp, &group->b, Z6, ctx) ||
974 !field_mul(group, rh, rh, &point->X, ctx)) {
1004 int (*field_mul)(const EC_GROUP *, BIGNUM *, const BIGNUM *, const BIGNUM *,
1024 field_mul = group->meth->field_mul;
1051 !field_mul(group, tmp1, &a->X, Zb23, ctx)) {
1060 !field_mul(group, tmp2, &b->X, Za23, ctx)) {
1076 if (!field_mul(group, Zb23, Zb23, &b->Z, ctx) ||
1077 !field_mul(group, tmp1, &a->Y, Zb23, ctx)) {
1085 if (!field_mul(group, Za23, Za23, &a->Z, ctx) ||
1086 !field_mul(group, tmp2, &b->Y, Za23, ctx)) {
1209 if (!group->meth->field_mul(group, prod_Z[i], prod_Z[i - 1],
1247 if (!group->meth->field_mul(group, tmp_Z, prod_Z[i - 1], tmp, ctx) ||
1249 !group->meth->field_mul(group, tmp, tmp, &points[i]->Z, ctx) ||
1268 !group->meth->field_mul(group, &p->X, &p->X, tmp, ctx) ||
1269 !group->meth->field_mul(group, tmp, tmp, &p->Z, ctx) ||
1270 !group->meth->field_mul(group, &p->Y, &p->Y, tmp, ctx)) {