Home | History | Annotate | Download | only in ec

Lines Matching refs:field_mul

126  * are used, the field_mul and field_sqr methods will be used for
613 /* in the Montgomery case, field_mul will cancel out Montgomery factor in X: */
614 if (!group->meth->field_mul(group, x, &point->X, Z_2, ctx)) goto err;
621 /* field_mul works on standard representation */
622 if (!group->meth->field_mul(group, Z_3, Z_2, Z_1, ctx)) goto err;
629 /* in the Montgomery case, field_mul will cancel out Montgomery factor in Y: */
630 if (!group->meth->field_mul(group, y, &point->Y, Z_3, ctx)) goto err;
645 int (*field_mul)(const EC_GROUP *, BIGNUM *, const BIGNUM *, const BIGNUM *, BN_CTX *);
659 field_mul = group->meth->field_mul;
696 if (!field_mul(group, n1, &a->X, n0, ctx)) goto end;
699 if (!field_mul(group, n0, n0, &b->Z, ctx)) goto end;
700 if (!field_mul(group, n2, &a->Y, n0, ctx)) goto end;
715 if (!field_mul(group, n3, &b->X, n0, ctx)) goto end;
718 if (!field_mul(group, n0, n0, &a->Z, ctx)) goto end;
719 if (!field_mul(group, n4, &b->Y, n0, ctx)) goto end;
767 { if (!field_mul(group, n0, &a->Z, &b->Z, ctx)) goto end; }
768 if (!field_mul(group, &r->Z, n0, n5, ctx)) goto end;
776 if (!field_mul(group, n3, n1, n4, ctx)) goto end;
786 if (!field_mul(group, n0, n0, n6, ctx)) goto end;
787 if (!field_mul(group, n5, n4, n5, ctx)) goto end; /* now n5 is n5^3 */
788 if (!field_mul(group, n1, n2, n5, ctx)) goto end;
809 int (*field_mul)(const EC_GROUP *, BIGNUM *, const BIGNUM *, const BIGNUM *, BN_CTX *);
823 field_mul = group->meth->field_mul;
860 if (!field_mul(group, n1, n0, n2, ctx)) goto err;
873 if (!field_mul(group, n1, n1, &group->a, ctx)) goto err;
885 if (!field_mul(group, n0, &a->Y, &a->Z, ctx)) goto err;
893 if (!field_mul(group, n2, &a->X, n3, ctx)) goto err;
910 if (!field_mul(group, n0, n1, n0, ctx)) goto err;
942 int (*field_mul)(const EC_GROUP *, BIGNUM *, const BIGNUM *, const BIGNUM *, BN_CTX *);
952 field_mul = group->meth->field_mul;
986 if (!field_mul(group, Z6, Z4, tmp, ctx)) goto err;
994 if (!field_mul(group, rh, rh, &point->X, ctx)) goto err;
998 if (!field_mul(group, tmp, Z4, &group->a, ctx)) goto err;
1000 if (!field_mul(group, rh, rh, &point->X, ctx)) goto err;
1004 if (!field_mul(group, tmp, &group->b, Z6, ctx)) goto err;
1013 if (!field_mul(group, rh, rh, &point->X, ctx)) goto err;
1039 int (*field_mul)(const EC_GROUP *, BIGNUM *, const BIGNUM *, const BIGNUM *, BN_CTX *);
1059 field_mul = group->meth->field_mul;
1085 if (!field_mul(group, tmp1, &a->X, Zb23, ctx)) goto end;
1093 if (!field_mul(group, tmp2, &b->X, Za23, ctx)) goto end;
1109 if (!field_mul(group, Zb23, Zb23, &b->Z, ctx)) goto end;
1110 if (!field_mul(group, tmp1, &a->Y, Zb23, ctx)) goto end;
1117 if (!field_mul(group, Za23, Za23, &a->Z, ctx)) goto end;
1118 if (!field_mul(group, tmp2, &b->Y, Za23, ctx)) goto end;
1262 if (!group->meth->field_mul(group, heap[i],
1293 if (!group->meth->field_mul(group, tmp0, heap[i/2], heap[i + 1], ctx)) goto err;
1294 if (!group->meth->field_mul(group, tmp1, heap[i/2], heap[i], ctx)) goto err;
1314 if (!group->meth->field_mul(group, &p->X, &p->X, tmp1, ctx)) goto err;
1316 if (!group->meth->field_mul(group, tmp1, tmp1, &p->Z, ctx)) goto err;
1317 if (!group->meth->field_mul(group, &p->Y, &p->Y, tmp1, ctx)) goto err;