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