Lines Matching refs:group
62 gf2m_Mdouble(mp_int *x, mp_int *z, const ECGroup *group, int kmflag)
70 MP_CHECKOK(group->meth->field_sqr(x, x, group->meth));
71 MP_CHECKOK(group->meth->field_sqr(z, &t1, group->meth));
72 MP_CHECKOK(group->meth->field_mul(x, &t1, z, group->meth));
73 MP_CHECKOK(group->meth->field_sqr(x, x, group->meth));
74 MP_CHECKOK(group->meth->field_sqr(&t1, &t1, group->meth));
75 MP_CHECKOK(group->meth->
76 field_mul(&group->curveb, &t1, &t1, group->meth));
77 MP_CHECKOK(group->meth->field_add(x, &t1, x, group->meth));
90 const ECGroup *group, int kmflag)
101 MP_CHECKOK(group->meth->field_mul(x1, z2, x1, group->meth));
102 MP_CHECKOK(group->meth->field_mul(z1, x2, z1, group->meth));
103 MP_CHECKOK(group->meth->field_mul(x1, z1, &t2, group->meth));
104 MP_CHECKOK(group->meth->field_add(z1, x1, z1, group->meth));
105 MP_CHECKOK(group->meth->field_sqr(z1, z1, group->meth));
106 MP_CHECKOK(group->meth->field_mul(z1, &t1, x1, group->meth));
107 MP_CHECKOK(group->meth->field_add(x1, &t2, x1, group->meth));
122 mp_int *x2, mp_int *z2, const ECGroup *group)
144 MP_CHECKOK(group->meth->field_add(x, y, z2, group->meth));
150 if (group->meth->field_enc) {
151 MP_CHECKOK(group->meth->field_enc(&t5, &t5, group->meth));
154 MP_CHECKOK(group->meth->field_mul(z1, z2, &t3, group->meth));
156 MP_CHECKOK(group->meth->field_mul(z1, x, z1, group->meth));
157 MP_CHECKOK(group->meth->field_add(z1, x1, z1, group->meth));
158 MP_CHECKOK(group->meth->field_mul(z2, x, z2, group->meth));
159 MP_CHECKOK(group->meth->field_mul(z2, x1, x1, group->meth));
160 MP_CHECKOK(group->meth->field_add(z2, x2, z2, group->meth));
162 MP_CHECKOK(group->meth->field_mul(z2, z1, z2, group->meth));
163 MP_CHECKOK(group->meth->field_sqr(x, &t4, group->meth));
164 MP_CHECKOK(group->meth->field_add(&t4, y, &t4, group->meth));
165 MP_CHECKOK(group->meth->field_mul(&t4, &t3, &t4, group->meth));
166 MP_CHECKOK(group->meth->field_add(&t4, z2, &t4, group->meth));
168 MP_CHECKOK(group->meth->field_mul(&t3, x, &t3, group->meth));
169 MP_CHECKOK(group->meth->field_div(&t5, &t3, &t3, group->meth));
170 MP_CHECKOK(group->meth->field_mul(&t3, &t4, &t4, group->meth));
171 MP_CHECKOK(group->meth->field_mul(x1, &t3, x2, group->meth));
172 MP_CHECKOK(group->meth->field_add(x2, x, z2, group->meth));
174 MP_CHECKOK(group->meth->field_mul(z2, &t4, z2, group->meth));
175 MP_CHECKOK(group->meth->field_add(z2, y, z2, group->meth));
196 mp_int *rx, mp_int *ry, const ECGroup *group)
220 MP_CHECKOK(group->meth->field_sqr(&x1, &z2, group->meth)); /* z2 =
223 MP_CHECKOK(group->meth->field_sqr(&z2, &x2, group->meth));
224 MP_CHECKOK(group->meth->field_add(&x2, &group->curveb, &x2, group->meth)); /* x2
254 MP_CHECKOK(gf2m_Madd(px, &x1, &z1, &x2, &z2, group, FLAG(n)));
255 MP_CHECKOK(gf2m_Mdouble(&x2, &z2, group, FLAG(n)));
257 MP_CHECKOK(gf2m_Madd(px, &x2, &z2, &x1, &z1, group, FLAG(n)));
258 MP_CHECKOK(gf2m_Mdouble(&x1, &z1, group, FLAG(n)));
267 i = gf2m_Mxy(px, py, &x1, &z1, &x2, &z2, group);