/external/epid-sdk/ext/ipp/sources/ippcp/ |
D | pcpngmontexpstuff.h | 62 __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 …]
|
D | pcpmontgomery.h | 64 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 …]
|
D | pcpbnuarith.h | 56 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 …]
|
D | pcpngmontexpstuff_sse2.h | 72 __INLINE cpSize numofVariable_sse2(int modulusBits) in numofVariable_sse2() 74 … cpSize 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 …]
|
D | pcpngmontexpstuff_avx512.h | 71 __INLINE cpSize numofVariable_avx512(int modulusBits) in numofVariable_avx512() 73 …cpSize 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 …]
|
D | pcpngmontexpstuff_avx2.h | 72 __INLINE cpSize numofVariable_avx2(int modulusBits) in numofVariable_avx2() 74 … cpSize 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 …]
|
D | pcpmont_multiexp_fast.c | 55 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()
|
D | pcpbnumisc.h | 72 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 …]
|
D | pcpmont_exp_bufsize.h | 61 static cpSize cpMontExpScratchBufferSize(cpSize modulusBitSize, cpSize expBitSize, cpSize nExponent… in cpMontExpScratchBufferSize() 64 cpSize elmDataSize = BITS_BNU_CHUNK(modulusBitSize) * sizeof(BNU_CHUNK_T); in cpMontExpScratchBufferSize() 66 …cpSize 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()
|
D | pcpbnu32misc.h | 58 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);
|
D | pcpbnu_arith_minv.c | 69 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()
|
D | pcpbnu_getoctstr.c | 76 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()
|
D | pcpbnarithmac.c | 92 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);
|
D | pcpbnu_lsr.c | 70 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()
|
D | pcpmont_multiexpinitarray.c | 73 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()
|
D | pcpbnu32_arith_div.c | 80 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()
|
D | pcpprng_gen.c | 118 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()
|
D | pcpbnarithmul.c | 93 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);
|
D | pcpprng.h | 62 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,
|
D | pcpprimeg.h | 62 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,
|
D | pcpmont_expbinbnu.c | 81 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()
|
D | pcpmont_getsize.c | 72 IppStatus cpMontGetSize(cpSize maxLen32, int poolLength, cpSize* pCtxSize) in cpMontGetSize() 80 + (cpSize)size in cpMontGetSize()
|
D | pcpbn.h | 65 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()
|
D | pcpbnarithdiv.c | 103 cpSize nsA = BN_SIZE(pA); 105 cpSize nsB = BN_SIZE(pB); 107 cpSize nsQ; 109 cpSize nsR;
|
D | pcpbnu32_setoctstr.c | 71 cpSize cpFromOctStr_BNU32(Ipp32u* pBNU, const Ipp8u* pOctStr, cpSize strLen) in cpFromOctStr_BNU32() 73 cpSize bnuSize=0; in cpFromOctStr_BNU32()
|