Lines Matching refs:nsM
72 const BNU_CHUNK_T* pModulus, cpSize nsM, BNU_CHUNK_T m0) in cpMontRedAdc_BNU() argument
78 for(n=0, carry = 0; n<(nsM-1); n++) { in cpMontRedAdc_BNU()
80 BNU_CHUNK_T t = pProduct[nsM +n +1] + carry; in cpMontRedAdc_BNU()
82 extension = cpAddMulDgt_BNU(pProduct+n, pModulus, nsM, u); in cpMontRedAdc_BNU()
83 ADD_AB(carry, pProduct[nsM+n], pProduct[nsM+n], extension); in cpMontRedAdc_BNU()
86 carry = t<pProduct[nsM+n+1]; in cpMontRedAdc_BNU()
87 pProduct[nsM+n+1] = t; in cpMontRedAdc_BNU()
90 m0 *= pProduct[nsM-1]; in cpMontRedAdc_BNU()
91 extension = cpAddMulDgt_BNU(pProduct+nsM-1, pModulus, nsM, m0); in cpMontRedAdc_BNU()
92 ADD_AB(extension, pProduct[2*nsM-1], pProduct[2*nsM-1], extension); in cpMontRedAdc_BNU()
95 carry -= cpSub_BNU(pR, pProduct+nsM, pModulus, nsM); in cpMontRedAdc_BNU()
97 MASKED_COPY_BNU(pR, carry, pProduct+nsM, pR, nsM); in cpMontRedAdc_BNU()