Lines Matching refs:ma
247 uint32_t mp[40], ma[40], mb[40], mv[60], mx[100]; in test_modint() local
265 if (impl->decode_mod(ma, ea, alen, mp) != 1) { in test_modint()
288 check_eqz(ma, a); in test_modint()
292 impl->decode_mod(ma, ea, alen, mp); in test_modint()
294 ctl = impl->add(ma, mb, 1); in test_modint()
295 ctl |= impl->sub(ma, mp, 0) ^ (uint32_t)1; in test_modint()
296 impl->sub(ma, mp, ctl); in test_modint()
299 check_eqz(ma, t1); in test_modint()
301 impl->decode_mod(ma, ea, alen, mp); in test_modint()
303 impl->add(ma, mp, impl->sub(ma, mb, 1)); in test_modint()
306 check_eqz(ma, t1); in test_modint()
308 impl->decode_reduce(ma, ev, vlen, mp); in test_modint()
310 check_eqz(ma, t1); in test_modint()
313 impl->reduce(ma, mv, mp); in test_modint()
315 check_eqz(ma, t1); in test_modint()
317 impl->decode_mod(ma, ea, alen, mp); in test_modint()
318 impl->to_monty(ma, mp); in test_modint()
322 check_eqz(ma, t1); in test_modint()
323 impl->from_monty(ma, mp, mp0i); in test_modint()
324 check_eqz(ma, a); in test_modint()
326 impl->decode_mod(ma, ea, alen, mp); in test_modint()
328 impl->to_monty(ma, mp); in test_modint()
329 impl->montymul(mt1, ma, mb, mp, mp0i); in test_modint()
334 impl->decode_mod(ma, ea, alen, mp); in test_modint()
335 impl->modpow(ma, ev, vlen, mp, mp0i, mt1, mt2); in test_modint()
337 check_eqz(ma, t1); in test_modint()