/external/epid-sdk/ext/ipp/sources/ippcp/ |
pcpmontred.c | 72 const BNU_CHUNK_T* pModulus, cpSize nsM, BNU_CHUNK_T m0) 78 for(n=0, carry = 0; n<(nsM-1); n++) { 80 BNU_CHUNK_T t = pProduct[nsM +n +1] + carry; 82 extension = cpAddMulDgt_BNU(pProduct+n, pModulus, nsM, u); 83 ADD_AB(carry, pProduct[nsM+n], pProduct[nsM+n], extension); 86 carry = t<pProduct[nsM+n+1]; 87 pProduct[nsM+n+1] = t; 90 m0 *= pProduct[nsM-1]; 91 extension = cpAddMulDgt_BNU(pProduct+nsM-1, pModulus, nsM, m0) [all...] |
pcpmontred.h | 59 const BNU_CHUNK_T* pModulus, cpSize nsM, BNU_CHUNK_T m0); 64 const BNU_CHUNK_T* pModulus, cpSize nsM, BNU_CHUNK_T m0); 68 const BNU_CHUNK_T* pModulus, cpSize nsM, BNU_CHUNK_T m0) 71 cpMontRedAdx_BNU(pR, pProduct, pModulus, nsM, m0); 73 IsFeatureEnabled(ippCPUID_ADCOX)? cpMontRedAdx_BNU(pR, pProduct, pModulus, nsM, m0) 74 : cpMontRedAdc_BNU(pR, pProduct, pModulus, nsM, m0); 76 cpMontRedAdc_BNU(pR, pProduct, pModulus, nsM, m0);
|
pcpbnu_arith_minv.c | 106 // nsM size of M 116 const BNU_CHUNK_T* pM, cpSize nsM, 120 FIX_BNU(pM, nsM); 129 cpSize moduloSize = nsM; 146 nsM = cpDiv_BNU(Q, &nsQ, (BNU_CHUNK_T*)pM, nsM, bufA, nsA); 148 //Print_BNU(" m: ", pM, nsM); 152 if (nsM==1 && pM[0]==1) { 160 else if (nsM==1 && pM[0]==0) { 166 nsA = cpDiv_BNU(Q, &nsQ, bufA, nsA, (BNU_CHUNK_T*)pM, nsM); [all...] |
pcpmont_expbinbnu.c | 86 cpSize nsM = MOD_LEN( pModEngine ); 94 COPY_BNU(dataY, MOD_MNT_R( pModEngine ), nsM); 97 ZEXPAND_BNU(dataY, 0, nsM); 113 ZEXPAND_COPY_BNU(dataT, nsM, dataX, nsX); 114 COPY_BNU(dataY, dataT, nsM); 143 return nsM;
|
pcpbnarithmod.c | 105 cpSize nsM = BN_SIZE(pM); 112 nsR = cpMod_BNU(pBuffA, nsA, pDataM, nsM); 119 ZEXPAND_BNU(pDataR, nsR, nsM); 120 cpSub_BNU(pDataR, pDataM, pDataR, nsM); 121 FIX_BNU(pDataR, nsM); 122 BN_SIZE(pR) = nsM;
|
pcpmontgomery.h | 115 cpSize nsM = MOD_LEN( pModEngine ); 120 ZEXPAND_COPY_BNU(pDataA, nsM, pA, nsA); 121 ZEXPAND_COPY_BNU(pDataR, nsM, pB, nsB); 126 return nsM; 140 cpSize nsM = MOD_LEN( pModEngine ); 141 ZEXPAND_COPY_BNU(pR, nsM, pA, nsA); 153 cpSize nsM = MOD_LEN(pModEngine); 157 FIX_BNU(pR, nsM); 158 return nsM; 165 cpSize nsM = MOD_LEN(pModEngine) [all...] |
pcpmontmul.c | 104 cpSize nsM = MOD_LEN( MNT_ENGINE(pCtx) ); 107 BNU_CHUNK_T* pDataB = pDataA + nsM; 110 ZEXPAND_COPY_BNU(pDataA, nsM, BN_NUMBER(pA), BN_SIZE(pA)); 111 ZEXPAND_COPY_BNU(pDataB, nsM, BN_NUMBER(pB), BN_SIZE(pB)); 117 FIX_BNU(pDataR, nsM); 118 BN_SIZE(pR) = nsM;
|
pcpmontform.c | 96 cpSize nsM = MOD_LEN( MNT_ENGINE(pCtx) ); 100 ZEXPAND_COPY_BNU(pDataA, nsM, BN_NUMBER(pA), BN_SIZE(pA)); 104 FIX_BNU(BN_NUMBER(pR), nsM); 105 BN_SIZE(pR) = nsM;
|
pcpngmontexpstuff.h | 87 cpSize nsM = MOD_LEN( pMont ); 88 ZEXPAND_COPY_BNU(pR, nsM, pXreg, nsX); 90 return nsM; 97 cpSize nsM = MOD_LEN(pMont); 99 return nsM; 107 cpSize nsM = MOD_LEN(pMont); 111 FIX_BNU(pR, nsM); 112 BN_SIZE(pRbn) = nsM;
|
pcpbnuarith.h | 147 const BNU_CHUNK_T* pM, cpSize nsM, 210 // cpDiv_BNU(NULL,NULL, pX,nsX, pModulus, nsM) 216 // nsM size of Modulus 220 __INLINE cpSize cpMod_BNU(BNU_CHUNK_T* pX, cpSize nsX, BNU_CHUNK_T* pModulus, cpSize nsM) 222 return cpDiv_BNU(NULL,NULL, pX,nsX, pModulus, nsM);
|