Home
last modified time | relevance | path

Searched refs:nsR (Results 1 – 12 of 12) sorted by relevance

/external/epid-sdk/ext/ipp/sources/ippcp/
Dpcpgfp_rand.c60 int nsR = (reqBitSize +BITSIZE(BNU_CHUNK_T)-1)/BITSIZE(BNU_CHUNK_T); in cpGFpRand() local
67 cpGFpElementPadd(pPool, nsR, 0); in cpGFpRand()
72 nsR = cpMod_BNU(pPool, nsR, GFP_MODULUS(pGFE), elemLen); in cpGFpRand()
73 cpGFpElementPadd(pPool+nsR, elemLen-nsR, 0); in cpGFpRand()
Dpcpbnarithmul.c95 cpSize nsR = BN_ROOM(pR); variable
109 IPP_BADARG_RET(nsR*BNU_CHUNK_BITS < (bitSizeA+bitSizeB-1), ippStsOutOfRangeErr);
125 ZEXPAND_BNU(pDataR, 0, nsR+1);
132 nsR = (bitSizeA + bitSizeB + BNU_CHUNK_BITS - 1) /BNU_CHUNK_BITS;
133 FIX_BNU(pDataR, nsR);
134 IPP_BADARG_RET(nsR>BN_ROOM(pR), ippStsOutOfRangeErr);
136 BN_SIZE(pR) = nsR;
Dpcpbnarithmod.c109 cpSize nsR; variable
112 nsR = cpMod_BNU(pBuffA, nsA, pDataM, nsM);
114 COPY_BNU(pDataR, pBuffA, nsR);
115 BN_SIZE(pR) = nsR;
118 if(BN_NEGATIVE(pA) && !(nsR==1 && pDataR[0]==0)) {
119 ZEXPAND_BNU(pDataR, nsR, nsM);
Dpcpbnarithdiv.c109 cpSize nsR; variable
112 nsR = cpDiv_BNU(pDataQ, &nsQ, pDataA, nsA, pDataB, nsB);
113 COPY_BNU(pDataR, pDataA, nsR);
120 BN_SIZE(pR) = nsR;
121 if(nsR==1 && pDataR[0]==0) BN_SIGN(pR) = ippBigNumPOS;
Dpcpbnu_arith_minv.c69 static int cpMac_BNU(BNU_CHUNK_T* pR, cpSize nsR, in cpMac_BNU() argument
74 ZEXPAND_BNU(pR, nsR, nsA+nsB-1); in cpMac_BNU()
83 expansion = cpInc_BNU(pR+i+nsA, pR+i+nsA, nsR-i-nsA, expansion); in cpMac_BNU()
89 FIX_BNU(pR, nsR); in cpMac_BNU()
90 return nsR; in cpMac_BNU()
Dpcpbnuarith.h190 int nsR = cpDiv_BNU32((Ipp32u*)pQ, pnsQ, in cpDiv_BNU() local
194 if(nsR&1) ((Ipp32u*)pA)[nsR] = 0; in cpDiv_BNU()
195 nsR = INTERNAL_BNU_LENGTH(nsR); in cpDiv_BNU()
201 return nsR; in cpDiv_BNU()
Dpcpbnarithsub.c91 cpSize nsR = BN_ROOM(pR); variable
92 IPP_BADARG_RET(nsR < IPP_MAX(nsA, nsB), ippStsOutOfRangeErr);
114 if(nsR > nsA)
126 ZEXPAND_BNU(pDataR,0, nsR);
Dpcpgfpecdhc.c124 int nsR = MOD_LEN(montR); variable
134 cpGFpElementCopyPadd(F, nsR, BN_NUMBER(pPrivateA), BN_SIZE(pPrivateA));
137 cpMontMul_BNU_EX(F, F, nsR, pCofactor, cofactorLen, montR);
141 gfec_MulPoint(&T, pPublicB, F, nsR, /*ECP_ORDBITSIZE(pEC),*/ pEC, pScratchBuffer);
Dpcpbnarithminv.c98 cpSize nsR = cpModInv_BNU(BN_NUMBER(pInv), variable
102 if(nsR) {
104 BN_SIZE(pInv) = nsR;
Dpcpbnarithadd.c91 cpSize nsR = BN_ROOM(pR); variable
92 IPP_BADARG_RET(nsR < IPP_MAX(nsA, nsB), ippStsOutOfRangeErr);
114 if(nsR>nsA)
Dpcpgfpstuff.h130 __INLINE BNU_CHUNK_T* cpGFpElementCopyPadd(BNU_CHUNK_T* pR, int nsR, const BNU_CHUNK_T* pE, int nsE) in cpGFpElementCopyPadd() argument
134 for(; n<nsR; n++) pR[n] = 0; in cpGFpElementCopyPadd()
150 __INLINE BNU_CHUNK_T* cpGFpElementSetChunk(BNU_CHUNK_T* pR, int nsR, BNU_CHUNK_T x) in cpGFpElementSetChunk() argument
152 return cpGFpElementCopyPadd(pR, nsR, &x, 1); in cpGFpElementSetChunk()
Dpcpbnarithmac.c108 cpSize nsR = BN_SIZE(pR); variable
116 ZEXPAND_BNU(pDataR, nsR, room);