Lines Matching defs:meth
59 ec_GFp_nistp256_mod(const mp_int *a, mp_int *r, const GFMethod *meth)
83 MP_CHECKOK(mp_mod(a, &meth->irr, r));
248 MP_CHECKOK(mp_sub(r, &meth->irr, r));
255 MP_CHECKOK(mp_add(r, &meth->irr, r));
258 MP_CHECKOK(mp_sub(r, &meth->irr, r));
262 if (MP_DIGIT(r,7) >= MP_DIGIT(&meth->irr,7)) {
263 if (mp_cmp(r,&meth->irr) != MP_LT) {
264 MP_CHECKOK(mp_sub(r, &meth->irr, r));
388 MP_CHECKOK(mp_sub(r, &meth->irr, r));
403 ec_GFp_nistp256_sqr(const mp_int *a, mp_int *r, const GFMethod *meth)
408 MP_CHECKOK(ec_GFp_nistp256_mod(r, r, meth));
418 const GFMethod *meth)
423 MP_CHECKOK(ec_GFp_nistp256_mod(r, r, meth));
434 group->meth->field_mod = &ec_GFp_nistp256_mod;
435 group->meth->field_mul = &ec_GFp_nistp256_mul;
436 group->meth->field_sqr = &ec_GFp_nistp256_sqr;