Home
last modified time | relevance | path

Searched refs:cpSize (Results 1 – 25 of 85) sorted by relevance

1234

/external/epid-sdk/ext/ipp/sources/ippcp/
Dpcpngmontexpstuff.h62 __INLINE cpSize gsMontExp_WinSize(cpSize bitsize) in gsMontExp_WinSize()
83 __INLINE cpSize gsMontEnc_BNU(BNU_CHUNK_T* pR, in gsMontEnc_BNU()
84 const BNU_CHUNK_T* pXreg, cpSize nsX, in gsMontEnc_BNU()
87 cpSize nsM = MOD_LEN( pMont ); in gsMontEnc_BNU()
93 __INLINE cpSize gsMontDec_BNU(BNU_CHUNK_T* pR, in gsMontDec_BNU()
97 cpSize nsM = MOD_LEN(pMont); in gsMontDec_BNU()
107 cpSize nsM = MOD_LEN(pMont); in gsMontEnc_BN()
120 cpSize gsMontExpBinBuffer(int modulusBits);
121 cpSize gsMontExpWinBuffer(int modulusBits);
124 typedef cpSize (*ngMontExp)(BNU_CHUNK_T* dataY,
[all …]
Dpcpmontgomery.h64 cpSize maxLen; /* Maximum length of modulus being stored */
109 __INLINE cpSize cpMontMul_BNU_EX(BNU_CHUNK_T* pR, in cpMontMul_BNU_EX()
110 const BNU_CHUNK_T* pA, cpSize nsA, in cpMontMul_BNU_EX()
111 const BNU_CHUNK_T* pB, cpSize nsB, in cpMontMul_BNU_EX()
115 cpSize nsM = MOD_LEN( pModEngine ); in cpMontMul_BNU_EX()
137 const BNU_CHUNK_T* pA, cpSize nsA, in cpMontSqr_BNU_EX()
140 cpSize nsM = MOD_LEN( pModEngine ); in cpMontSqr_BNU_EX()
149 __INLINE cpSize cpMontEnc_BNU(BNU_CHUNK_T* pR, in cpMontEnc_BNU()
153 cpSize nsM = MOD_LEN(pModEngine); in cpMontEnc_BNU()
161 __INLINE cpSize cpMontEnc_BNU_EX(BNU_CHUNK_T* pR, in cpMontEnc_BNU_EX()
[all …]
Dpcpbnuarith.h56 BNU_CHUNK_T cpAdd_BNU(BNU_CHUNK_T* pR, const BNU_CHUNK_T* pA, const BNU_CHUNK_T* pB, cpSize ns);
58 BNU_CHUNK_T cpSub_BNU(BNU_CHUNK_T* pR, const BNU_CHUNK_T* pA, const BNU_CHUNK_T* pB, cpSize ns);
60 BNU_CHUNK_T cpInc_BNU(BNU_CHUNK_T* pR, const BNU_CHUNK_T* pA, cpSize ns, BNU_CHUNK_T val);
62 BNU_CHUNK_T cpDec_BNU(BNU_CHUNK_T* pR, const BNU_CHUNK_T* pA, cpSize ns, BNU_CHUNK_T val);
65 BNU_CHUNK_T cpAddMulDgt_BNU(BNU_CHUNK_T* pR, const BNU_CHUNK_T* pA, cpSize ns, BNU_CHUNK_T val);
70 const BNU_CHUNK_T* pA, cpSize nsA,
71 const BNU_CHUNK_T* pB, cpSize nsB);
74 const BNU_CHUNK_T* pA, cpSize nsA,
75 const BNU_CHUNK_T* pB, cpSize nsB);
95 const BNU_CHUNK_T* pA, cpSize nsA, in cpMul_BNU_school()
[all …]
Dpcpngmontexpstuff_sse2.h72 __INLINE cpSize numofVariable_sse2(int modulusBits) in numofVariable_sse2()
74cpSize ammBitSize = 2 + cpDigitNum_sse2(modulusBits, BITSIZE(BNU_CHUNK_T)) * BITSIZE(BNU_CHUNK_T); in numofVariable_sse2()
75 cpSize redNum = cpDigitNum_sse2(ammBitSize, EXP_DIGIT_SIZE_SSE2); in numofVariable_sse2()
80 __INLINE cpSize numofVariableBuff_sse2(int numV) in numofVariableBuff_sse2()
88 cpSize gsMontExpBinBuffer_sse2(int modulusBits);
89 cpSize gsMontExpWinBuffer_sse2(int modulusBits);
93 cpSize gsMontExpBin_BNU_sse2(BNU_CHUNK_T* dataY,
94 const BNU_CHUNK_T* dataX, cpSize nsX,
95 const BNU_CHUNK_T* dataE, cpSize nsE,
100 cpSize gsMontExpBin_BNU_sscm_sse2(BNU_CHUNK_T* dataY,
[all …]
Dpcpngmontexpstuff_avx512.h71 __INLINE cpSize numofVariable_avx512(int modulusBits) in numofVariable_avx512()
73cpSize ammBitSize = 2 + cpDigitNum_avx512(modulusBits, BITSIZE(BNU_CHUNK_T)) * BITSIZE(BNU_CHUNK_T… in numofVariable_avx512()
74 cpSize redNum = cpDigitNum_avx512(ammBitSize, EXP_DIGIT_SIZE_AVX512); in numofVariable_avx512()
90 cpSize gsMontExpBinBuffer_avx512(int modulusBits);
91 cpSize gsMontExpWinBuffer_avx512(int modulusBits);
95 cpSize gsMontExpBin_BNU_avx512(BNU_CHUNK_T* dataY,
96 const BNU_CHUNK_T* dataX, cpSize nsX,
97 const BNU_CHUNK_T* dataE, cpSize nsE,
102 cpSize gsMontExpWin_BNU_avx512(BNU_CHUNK_T* dataY,
103 const BNU_CHUNK_T* dataX, cpSize nsX,
[all …]
Dpcpngmontexpstuff_avx2.h72 __INLINE cpSize numofVariable_avx2(int modulusBits) in numofVariable_avx2()
74cpSize ammBitSize = 2 + cpDigitNum_avx2(modulusBits, BITSIZE(BNU_CHUNK_T)) * BITSIZE(BNU_CHUNK_T); in numofVariable_avx2()
75 cpSize redNum = cpDigitNum_avx2(ammBitSize, EXP_DIGIT_SIZE_AVX2); in numofVariable_avx2()
80 __INLINE cpSize numofVariableBuff_avx2(int numV) in numofVariableBuff_avx2()
110 cpSize gsMontExpBinBuffer_avx2(int modulusBits);
111 cpSize gsMontExpWinBuffer_avx2(int modulusBits);
115 cpSize gsMontExpBin_BNU_avx2(BNU_CHUNK_T* dataY,
116 const BNU_CHUNK_T* dataX, cpSize nsX,
117 const BNU_CHUNK_T* dataE, cpSize nsE,
122 cpSize gsMontExpBin_BNU_sscm_avx2(BNU_CHUNK_T* dataY,
[all …]
Dpcpmont_multiexp_fast.c55 static cpSize GetIndex(const Ipp8u** ppE, cpSize numItems, cpSize nBit) in GetIndex()
57 cpSize shift = nBit%BYTESIZE; in GetIndex()
58 cpSize offset= nBit/BYTESIZE; in GetIndex()
59 cpSize index = 0; in GetIndex()
61 cpSize n; in GetIndex()
84 const Ipp8u** ppE, cpSize eItemBitSize, in cpFastMontMultiExp()
85 cpSize numItems, in cpFastMontMultiExp()
88 cpSize sizeM = MOD_LEN(pModEngine); in cpFastMontMultiExp()
91 cpSize eBitNumber; in cpFastMontMultiExp()
92 cpSize tblIdx; in cpFastMontMultiExp()
Dpcpbnumisc.h72 cpSize __idx; \
79 cpSize __idx; \
86 cpSize __idx; \
97 __INLINE void cpCpy_BNU(BNU_CHUNK_T* pDst, const BNU_CHUNK_T* pSrc, cpSize ns) in cpCpy_BNU()
100 __INLINE void cpSet_BNU(BNU_CHUNK_T* pDst, cpSize ns, BNU_CHUNK_T val) in cpSet_BNU()
143 __INLINE int cpCmp_BNU(const BNU_CHUNK_T* pA, cpSize nsA, const BNU_CHUNK_T* pB, cpSize nsB) in cpCmp_BNU()
173 __INLINE int cpEqu_BNU_CHUNK(const BNU_CHUNK_T* pA, cpSize nsA, BNU_CHUNK_T b) in cpEqu_BNU_CHUNK()
194 cpSize cpNLZ_BNU(BNU_CHUNK_T x);
197 cpSize cpNTZ_BNU(BNU_CHUNK_T x);
201 int cpLSR_BNU(BNU_CHUNK_T* pR, const BNU_CHUNK_T* pA, cpSize nsA, cpSize nBits);
[all …]
Dpcpmont_exp_bufsize.h61 static cpSize cpMontExpScratchBufferSize(cpSize modulusBitSize, cpSize expBitSize, cpSize nExponent… in cpMontExpScratchBufferSize()
64 cpSize elmDataSize = BITS_BNU_CHUNK(modulusBitSize) * sizeof(BNU_CHUNK_T); in cpMontExpScratchBufferSize()
66cpSize w = (nExponents == 1) ? cpMontExp_WinSize(expBitSize) : /* use optimal window size, if sing… in cpMontExpScratchBufferSize()
70 cpSize nPrecomputed = 1 << w; in cpMontExpScratchBufferSize()
72 cpSize bufferSize = elmDataSize*nPrecomputed + (CACHE_LINE_SIZE - 1); in cpMontExpScratchBufferSize()
Dpcpbnu32misc.h58 cpSize cpNLZ_BNU32(Ipp32u x);
61 __INLINE int cpMSBit_BNU32(const Ipp32u* pA, cpSize nsA) in cpMSBit_BNU32()
68 __INLINE int cpCmp_BNU32(const Ipp32u* pA, cpSize nsA, const Ipp32u* pB, cpSize nsB) in cpCmp_BNU32()
85 cpSize cpToOctStr_BNU32(Ipp8u* pStr, cpSize strLen, const Ipp32u* pBNU, cpSize bnuSize);
87 cpSize cpFromOctStr_BNU32(Ipp32u* pBNU, const Ipp8u* pOctStr, cpSize strLen);
Dpcpbnu_arith_minv.c69 static int cpMac_BNU(BNU_CHUNK_T* pR, cpSize nsR, in cpMac_BNU()
70 const BNU_CHUNK_T* pA, cpSize nsA, in cpMac_BNU()
71 const BNU_CHUNK_T* pB, cpSize nsB) in cpMac_BNU()
79 cpSize i; in cpMac_BNU()
115 const BNU_CHUNK_T* pA, cpSize nsA, in cpModInv_BNU()
116 const BNU_CHUNK_T* pM, cpSize nsM, in cpModInv_BNU()
129 cpSize moduloSize = nsM; in cpModInv_BNU()
134 cpSize nsX1 = 1; in cpModInv_BNU()
135 cpSize nsX2 = 1; in cpModInv_BNU()
136 cpSize nsQ; in cpModInv_BNU()
Dpcpbnu_getoctstr.c76 cpSize cpToOctStr_BNU(Ipp8u* pStr, cpSize strLen, const BNU_CHUNK_T* pA, cpSize nsA) in cpToOctStr_BNU()
80 cpSize bnuBitSize = BITSIZE_BNU(pA, nsA); in cpToOctStr_BNU()
90 cpSize nb; in cpToOctStr_BNU()
91 for(nb=cpNLZ_BNU(x)/BYTESIZE; nb<(cpSize)(sizeof(BNU_CHUNK_T)); cnvLen++, nb++) in cpToOctStr_BNU()
Dpcpbnarithmac.c92 cpSize nsA = BN_SIZE(pA);
93 cpSize nsB = BN_SIZE(pB);
95 cpSize bitSizeA = BITSIZE_BNU(pDataA, nsA);
96 cpSize bitSizeB = BITSIZE_BNU(pDataB, nsB);
98 cpSize nsP = BITS_BNU_CHUNK(bitSizeA+bitSizeB);
108 cpSize nsR = BN_SIZE(pR);
109 cpSize room = BN_ROOM(pR);
Dpcpbnu_lsr.c70 cpSize cpLSR_BNU(BNU_CHUNK_T* pR, const BNU_CHUNK_T* pA, cpSize nsA, cpSize nBits) in cpLSR_BNU()
72 cpSize nw = nBits/BNU_CHUNK_BITS; in cpLSR_BNU()
73 cpSize n; in cpLSR_BNU()
Dpcpmont_multiexpinitarray.c73 const BNU_CHUNK_T** ppX, cpSize xItemBitSize, in cpMontMultiExpInitArray()
74 cpSize numItems, in cpMontMultiExpInitArray()
77 cpSize sizeM = MOD_LEN(pModEngine); in cpMontMultiExpInitArray()
79 cpSize i, base; in cpMontMultiExpInitArray()
80 cpSize sizeX = BITS_BNU_CHUNK(xItemBitSize); in cpMontMultiExpInitArray()
Dpcpbnu32_arith_div.c80 int cpDiv_BNU32(Ipp32u* pQ, cpSize* sizeQ, in cpDiv_BNU32()
81 Ipp32u* pX, cpSize sizeX, in cpDiv_BNU32()
82 Ipp32u* pY, cpSize sizeY) in cpDiv_BNU32()
122 cpSize qs = sizeX-sizeY+1; in cpDiv_BNU32()
124 cpSize nlz = cpNLZ_BNU32(pY[sizeY-1]); in cpDiv_BNU32()
129 cpSize ni; in cpDiv_BNU32()
182 cpSize ni; in cpDiv_BNU32()
Dpcpprng_gen.c118 int cpPRNGen(Ipp32u* pRand, cpSize nBits, IppsPRNGState* pRnd) in cpPRNGen()
126 cpSize xKeyLen = BITS_BNU_CHUNK(RAND_SEEDBITS(pRnd)); in cpPRNGen()
128 cpSize xKeySize= BITS2WORD8_SIZE(RAND_SEEDBITS(pRnd)); in cpPRNGen()
133 cpSize genlen = BITS2WORD32_SIZE(nBits); in cpPRNGen()
139 cpSize len; in cpPRNGen()
150 cpSize sizeXj = BITS_BNU_CHUNK(160); in cpPRNGen()
Dpcpbnarithmul.c93 cpSize nsA = BN_SIZE(pA);
94 cpSize nsB = BN_SIZE(pB);
95 cpSize nsR = BN_ROOM(pR);
97 cpSize bitSizeA = BITSIZE_BNU(pDataA, nsA);
98 cpSize bitSizeB = BITSIZE_BNU(pDataB, nsB);
Dpcpprng.h62 cpSize seedBits; /* secret seed-key bitsize */
82 int cpPRNGen(Ipp32u* pBuffer, cpSize bitLen, IppsPRNGState* pCtx);
91 const BNU_CHUNK_T* pLo, cpSize loLen,
92 const BNU_CHUNK_T* pHi, cpSize hiLen,
Dpcpprimeg.h62 cpSize maxBitSize; /* max bit length */
103 int cpMimimalPrimeTest(const Ipp32u* pPrime, cpSize ns);
107 int cpPrimeTest(const BNU_CHUNK_T* pPrime, cpSize primeLen,
108 cpSize nTrials,
Dpcpmont_expbinbnu.c81 cpSize cpMontExpBin_BNU(BNU_CHUNK_T* dataY, in cpMontExpBin_BNU()
82 const BNU_CHUNK_T* dataX, cpSize nsX, in cpMontExpBin_BNU()
83 const BNU_CHUNK_T* dataE, cpSize nsE, in cpMontExpBin_BNU()
86 cpSize nsM = MOD_LEN( pModEngine ); in cpMontExpBin_BNU()
Dpcpmont_getsize.c72 IppStatus cpMontGetSize(cpSize maxLen32, int poolLength, cpSize* pCtxSize) in cpMontGetSize()
80 + (cpSize)size in cpMontGetSize()
Dpcpbn.h65 cpSize size; /* BigNum size (BNU_CHUNK_T) */
66 cpSize room; /* BigNum max size (BNU_CHUNK_T) */
115 cpSize len = BN_SIZE(pBN); in cpBN_fix()
132 cpSize size = BITS_BNU_CHUNK(power+1); in cpBN_power2()
191 __INLINE IppsBigNumState* BN_Set(const BNU_CHUNK_T* pData, cpSize len, IppsBigNumState* pBN) in BN_Set()
198 __INLINE IppsBigNumState* BN_Make(BNU_CHUNK_T* pData, BNU_CHUNK_T* pBuffer, cpSize len, IppsBigNumS… in BN_Make()
Dpcpbnarithdiv.c103 cpSize nsA = BN_SIZE(pA);
105 cpSize nsB = BN_SIZE(pB);
107 cpSize nsQ;
109 cpSize nsR;
Dpcpbnu32_setoctstr.c71 cpSize cpFromOctStr_BNU32(Ipp32u* pBNU, const Ipp8u* pOctStr, cpSize strLen) in cpFromOctStr_BNU32()
73 cpSize bnuSize=0; in cpFromOctStr_BNU32()

1234