Lines Matching refs:tmod
426 BIGNUM tmod;
429 BN_init(&tmod);
430 tmod.d=buf;
431 tmod.dmax=2;
432 tmod.neg=0;
445 tmod.top=0;
446 if ((buf[0] = mod->d[0])) tmod.top=1;
447 if ((buf[1] = mod->top>1 ? mod->d[1] : 0)) tmod.top=2;
449 if ((BN_mod_inverse(Ri,R,&tmod,ctx)) == NULL)
466 if (!BN_div(Ri,NULL,Ri,&tmod,ctx)) goto err;
475 buf[0]=mod->d[0]; /* tmod = N mod word size */
477 tmod.top = buf[0] != 0 ? 1 : 0;
479 if ((BN_mod_inverse(Ri,R,&tmod,ctx)) == NULL)
490 if (!BN_div(Ri,NULL,Ri,&tmod,ctx)) goto err;