Home
last modified time | relevance | path

Searched refs:BNU_CHUNK_T (Results 1 – 25 of 235) sorted by relevance

12345678910

/external/epid-sdk/ext/ipp/sources/ippcp/
Dpcpeccp.h56 …BigNumState* cpConstructBN(IppsBigNumState* pBN, cpSize len, BNU_CHUNK_T* pData, BNU_CHUNK_T* pBuf… in cpConstructBN()
70 int pLen, const BNU_CHUNK_T* pP,
71 int aLen, const BNU_CHUNK_T* pA,
72 int bLen, const BNU_CHUNK_T* pB,
73 int xLen, const BNU_CHUNK_T* pX,
74 int yLen, const BNU_CHUNK_T* pY,
75 int rLen, const BNU_CHUNK_T* pR,
76 BNU_CHUNK_T h,
82 extern const BNU_CHUNK_T secp112r1_p[]; // (2^128 -3)/76439
83 extern const BNU_CHUNK_T secp112r1_a[];
[all …]
Dpcpeccpstdca.c72 const BNU_CHUNK_T secp112r1_p[] = { // (2^128 -3)/76439
74 const BNU_CHUNK_T secp112r1_a[] = {
76 const BNU_CHUNK_T secp112r1_b[] = {
78 const BNU_CHUNK_T secp112r1_gx[] = {
80 const BNU_CHUNK_T secp112r1_gy[] = {
82 const BNU_CHUNK_T secp112r1_r[] = {
84 BNU_CHUNK_T secp112r1_h = 1;
89 const BNU_CHUNK_T secp112r2_p[] = { // (2^128 -3)/76439
91 const BNU_CHUNK_T secp112r2_a[] = {
93 const BNU_CHUNK_T secp112r2_b[] = {
[all …]
Dpcpgfpmethod_192r1.c61 BNU_CHUNK_T* p192r1_add(BNU_CHUNK_T* res, const BNU_CHUNK_T* a, const BNU_CHUNK_T* b, gsEngine* pGF…
64 BNU_CHUNK_T* p192r1_sub(BNU_CHUNK_T* res, const BNU_CHUNK_T* a, const BNU_CHUNK_T* b, gsEngine* pGF…
67 BNU_CHUNK_T* p192r1_neg(BNU_CHUNK_T* res, const BNU_CHUNK_T* a, gsEngine* pGFE);
70 BNU_CHUNK_T* p192r1_div_by_2 (BNU_CHUNK_T* res, const BNU_CHUNK_T* a, gsEngine* pGFE);
73 BNU_CHUNK_T* p192r1_mul_by_2 (BNU_CHUNK_T* res, const BNU_CHUNK_T* a, gsEngine* pGFE);
76 BNU_CHUNK_T* p192r1_mul_by_3 (BNU_CHUNK_T* res, const BNU_CHUNK_T* a, gsEngine* pGFE);
80 BNU_CHUNK_T* p192r1_mul_montl(BNU_CHUNK_T* res, const BNU_CHUNK_T* a, const BNU_CHUNK_T* b, gsEngin…
83 BNU_CHUNK_T* p192r1_mul_montx(BNU_CHUNK_T* res, const BNU_CHUNK_T* a, const BNU_CHUNK_T* b, gsEngin…
86 BNU_CHUNK_T* p192r1_sqr_montl(BNU_CHUNK_T* res, const BNU_CHUNK_T* a, gsEngine* pGFE);
89 BNU_CHUNK_T* p192r1_sqr_montx(BNU_CHUNK_T* res, const BNU_CHUNK_T* a, gsEngine* pGFE);
[all …]
Dpcpgfpmethod_224r1.c68 BNU_CHUNK_T* p224r1_add (BNU_CHUNK_T* res, const BNU_CHUNK_T* a, const BNU_CHUNK_T* b, gsEngine* pG…
69 BNU_CHUNK_T* p224r1_sub (BNU_CHUNK_T* res, const BNU_CHUNK_T* a, const BNU_CHUNK_T* b, gsEngine* pG…
70 BNU_CHUNK_T* p224r1_neg (BNU_CHUNK_T* res, const BNU_CHUNK_T* a, gsEngine* pGFE);
71 BNU_CHUNK_T* p224r1_div_by_2 (BNU_CHUNK_T* res, const BNU_CHUNK_T* a, gsEngine* pGFE);
72 BNU_CHUNK_T* p224r1_mul_by_2 (BNU_CHUNK_T* res, const BNU_CHUNK_T* a, gsEngine* pGFE);
73 BNU_CHUNK_T* p224r1_mul_by_3 (BNU_CHUNK_T* res, const BNU_CHUNK_T* a, gsEngine* pGFE);
84 BNU_CHUNK_T* p224r1_mul_montl(BNU_CHUNK_T* res, const BNU_CHUNK_T* a, const BNU_CHUNK_T* b, gsEngin…
85 BNU_CHUNK_T* p224r1_mul_montx(BNU_CHUNK_T* res, const BNU_CHUNK_T* a, const BNU_CHUNK_T* b, gsEngin…
86 BNU_CHUNK_T* p224r1_sqr_montl(BNU_CHUNK_T* res, const BNU_CHUNK_T* a, gsEngine* pGFE);
87 BNU_CHUNK_T* p224r1_sqr_montx(BNU_CHUNK_T* res, const BNU_CHUNK_T* a, gsEngine* pGFE);
[all …]
Dpcpgfpmethod_256r1.c67 BNU_CHUNK_T* p256r1_add(BNU_CHUNK_T* res, const BNU_CHUNK_T* a, const BNU_CHUNK_T* b, gsEngine* pGF…
68 BNU_CHUNK_T* p256r1_sub(BNU_CHUNK_T* res, const BNU_CHUNK_T* a, const BNU_CHUNK_T* b, gsEngine* pGF…
69 BNU_CHUNK_T* p256r1_neg(BNU_CHUNK_T* res, const BNU_CHUNK_T* a, gsEngine* pGFE);
70 BNU_CHUNK_T* p256r1_div_by_2 (BNU_CHUNK_T* res, const BNU_CHUNK_T* a, gsEngine* pGFE);
71 BNU_CHUNK_T* p256r1_mul_by_2 (BNU_CHUNK_T* res, const BNU_CHUNK_T* a, gsEngine* pGFE);
72 BNU_CHUNK_T* p256r1_mul_by_3 (BNU_CHUNK_T* res, const BNU_CHUNK_T* a, gsEngine* pGFE);
83 BNU_CHUNK_T* p256r1_mul_montl(BNU_CHUNK_T* res, const BNU_CHUNK_T* a, const BNU_CHUNK_T* b, gsEngin…
84 BNU_CHUNK_T* p256r1_mul_montx(BNU_CHUNK_T* res, const BNU_CHUNK_T* a, const BNU_CHUNK_T* b, gsEngin…
85 BNU_CHUNK_T* p256r1_sqr_montl(BNU_CHUNK_T* res, const BNU_CHUNK_T* a, gsEngine* pGFE);
86 BNU_CHUNK_T* p256r1_sqr_montx(BNU_CHUNK_T* res, const BNU_CHUNK_T* a, gsEngine* pGFE);
[all …]
Dpcpgfpmethod_256.h67 BNU_CHUNK_T* gf256_add(BNU_CHUNK_T* pR, const BNU_CHUNK_T* pA, const BNU_CHUNK_T* pB, const BNU_CHU…
68 BNU_CHUNK_T* gf256_sub(BNU_CHUNK_T* pR, const BNU_CHUNK_T* pA, const BNU_CHUNK_T* pB, const BNU_CHU…
69 BNU_CHUNK_T* gf256_neg(BNU_CHUNK_T* pR, const BNU_CHUNK_T* pA, const BNU_CHUNK_T* pModulus);
70 BNU_CHUNK_T* gf256_mulm(BNU_CHUNK_T* pR,const BNU_CHUNK_T* pA, const BNU_CHUNK_T* pB, const BNU_CHU…
71 BNU_CHUNK_T* gf256_sqrm(BNU_CHUNK_T* pR,const BNU_CHUNK_T* pA, const BNU_CHUNK_T* pModulus, BNU_CHU…
72 BNU_CHUNK_T* gf256_div2(BNU_CHUNK_T* pR,const BNU_CHUNK_T* pA, const BNU_CHUNK_T* pModulus);
77 static BNU_CHUNK_T* p256_add(BNU_CHUNK_T* pR, const BNU_CHUNK_T* pA, const BNU_CHUNK_T* pB, gsEngin… in p256_add()
82 static BNU_CHUNK_T* p256_sub(BNU_CHUNK_T* pR, const BNU_CHUNK_T* pA, const BNU_CHUNK_T* pB, gsEngin… in p256_sub()
87 static BNU_CHUNK_T* p256_neg(BNU_CHUNK_T* pR, const BNU_CHUNK_T* pA, gsEngine* pGFE) in p256_neg()
92 static BNU_CHUNK_T* p256_div_by_2(BNU_CHUNK_T* pR, const BNU_CHUNK_T* pA, gsEngine* pGFE) in p256_div_by_2()
[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);
69 BNU_CHUNK_T cpMulAdc_BNU_school(BNU_CHUNK_T* pR,
70 const BNU_CHUNK_T* pA, cpSize nsA,
71 const BNU_CHUNK_T* pB, cpSize nsB);
73 BNU_CHUNK_T cpMulAdx_BNU_school(BNU_CHUNK_T* pR,
74 const BNU_CHUNK_T* pA, cpSize nsA,
[all …]
Dgsmodmethod.h53 typedef BNU_CHUNK_T* (*mod_encode)(BNU_CHUNK_T* pR, const BNU_CHUNK_T* pA, gsEngine* pMA);
54 typedef BNU_CHUNK_T* (*mod_decode)(BNU_CHUNK_T* pR, const BNU_CHUNK_T* pA, gsEngine* pMA);
55 typedef BNU_CHUNK_T* (*mod_red) (BNU_CHUNK_T* pR, BNU_CHUNK_T* pA, gsEngine* pMA);
56 typedef BNU_CHUNK_T* (*mod_sqr) (BNU_CHUNK_T* pR, const BNU_CHUNK_T* pA, gsEngine* pMA);
57 typedef BNU_CHUNK_T* (*mod_mul) (BNU_CHUNK_T* pR, const BNU_CHUNK_T* pA, const BNU_CHUNK_T* pB, g…
58 typedef BNU_CHUNK_T* (*mod_add) (BNU_CHUNK_T* pR, const BNU_CHUNK_T* pA, const BNU_CHUNK_T* pB, g…
59 typedef BNU_CHUNK_T* (*mod_sub) (BNU_CHUNK_T* pR, const BNU_CHUNK_T* pA, const BNU_CHUNK_T* pB, g…
60 typedef BNU_CHUNK_T* (*mod_neg) (BNU_CHUNK_T* pR, const BNU_CHUNK_T* pA, gsEngine* pMA);
61 typedef BNU_CHUNK_T* (*mod_div2) (BNU_CHUNK_T* pR, const BNU_CHUNK_T* pA, gsEngine* pMA);
62 typedef BNU_CHUNK_T* (*mod_mul2) (BNU_CHUNK_T* pR, const BNU_CHUNK_T* pA, gsEngine* pMA);
[all …]
Dpcpgfpmethod_521r1.c68 BNU_CHUNK_T* p521r1_add(BNU_CHUNK_T* res, const BNU_CHUNK_T* a, const BNU_CHUNK_T* b, gsEngine* pGF…
69 BNU_CHUNK_T* p521r1_sub(BNU_CHUNK_T* res, const BNU_CHUNK_T* a, const BNU_CHUNK_T* b, gsEngine* pGF…
70 BNU_CHUNK_T* p521r1_neg(BNU_CHUNK_T* res, const BNU_CHUNK_T* a, gsEngine* pGFE);
71 BNU_CHUNK_T* p521r1_div_by_2 (BNU_CHUNK_T* res, const BNU_CHUNK_T* a, gsEngine* pGFE);
72 BNU_CHUNK_T* p521r1_mul_by_2 (BNU_CHUNK_T* res, const BNU_CHUNK_T* a, gsEngine* pGFE);
73 BNU_CHUNK_T* p521r1_mul_by_3 (BNU_CHUNK_T* res, const BNU_CHUNK_T* a, gsEngine* pGFE);
86 BNU_CHUNK_T* p521r1_mred(BNU_CHUNK_T* res, BNU_CHUNK_T* product);
92 BNU_CHUNK_T* p521r1_mul_mont_slm(BNU_CHUNK_T* res, const BNU_CHUNK_T* a, const BNU_CHUNK_T* b, gsEn…
93 BNU_CHUNK_T* p521r1_sqr_mont_slm(BNU_CHUNK_T* res, const BNU_CHUNK_T* a, gsEngine* pGFE);
103 static BNU_CHUNK_T* p521r1_mul_montl(BNU_CHUNK_T* pR, const BNU_CHUNK_T* pA, const BNU_CHUNK_T* pB,… in p521r1_mul_montl()
[all …]
Dpcpgfpmethod_384r1.c68 BNU_CHUNK_T* p384r1_add(BNU_CHUNK_T* res, const BNU_CHUNK_T* a, const BNU_CHUNK_T* b, gsEngine* pGF…
69 BNU_CHUNK_T* p384r1_sub(BNU_CHUNK_T* res, const BNU_CHUNK_T* a, const BNU_CHUNK_T* b, gsEngine* pGF…
70 BNU_CHUNK_T* p384r1_neg(BNU_CHUNK_T* res, const BNU_CHUNK_T* a, gsEngine* pGFE);
71 BNU_CHUNK_T* p384r1_div_by_2 (BNU_CHUNK_T* res, const BNU_CHUNK_T* a, gsEngine* pGFE);
72 BNU_CHUNK_T* p384r1_mul_by_2 (BNU_CHUNK_T* res, const BNU_CHUNK_T* a, gsEngine* pGFE);
73 BNU_CHUNK_T* p384r1_mul_by_3 (BNU_CHUNK_T* res, const BNU_CHUNK_T* a, gsEngine* pGFE);
84 BNU_CHUNK_T* p384r1_mred(BNU_CHUNK_T* res, BNU_CHUNK_T* product);
91 BNU_CHUNK_T* p384r1_mul_mont_slm(BNU_CHUNK_T* res, const BNU_CHUNK_T* a, const BNU_CHUNK_T* b, gsEn…
92 BNU_CHUNK_T* p384r1_sqr_mont_slm(BNU_CHUNK_T* res, const BNU_CHUNK_T* a, gsEngine* pGFE);
102 static BNU_CHUNK_T* p384r1_mul_montl(BNU_CHUNK_T* pR, const BNU_CHUNK_T* pA, const BNU_CHUNK_T* pB,… in p384r1_mul_montl()
[all …]
Dgsmodmethodstuff.h63 static BNU_CHUNK_T* gs_mont_add(BNU_CHUNK_T* pr, const BNU_CHUNK_T* pa, const BNU_CHUNK_T* pb, gsMo… in gs_mont_add()
65 const BNU_CHUNK_T* pm = MOD_MODULUS(pME); in gs_mont_add()
69 BNU_CHUNK_T* pBuffer = gsModPoolAlloc(pME, polLength); in gs_mont_add()
72 BNU_CHUNK_T extension = cpAdd_BNU(pr, pa, pb, mLen); in gs_mont_add()
88 static BNU_CHUNK_T* gs_mont_sub(BNU_CHUNK_T* pr, const BNU_CHUNK_T* pa, const BNU_CHUNK_T* pb, gsMo… in gs_mont_sub()
90 const BNU_CHUNK_T* pm = MOD_MODULUS(pME); in gs_mont_sub()
94 BNU_CHUNK_T* pBuffer = gsModPoolAlloc(pME, polLength); in gs_mont_sub()
97 BNU_CHUNK_T extension = cpSub_BNU(pr, pa, pb, mLen); in gs_mont_sub()
112 static BNU_CHUNK_T* gs_mont_neg(BNU_CHUNK_T* pr, const BNU_CHUNK_T* pa, gsModEngine* pME) in gs_mont_neg()
114 const BNU_CHUNK_T* pm = MOD_MODULUS(pME); in gs_mont_neg()
[all …]
Dpcpgfpxstuff.h62 __INLINE int degree(const BNU_CHUNK_T* pE, const gsModEngine* pGFEx) in degree()
92 __INLINE int cpGFpxCopyToChunk(BNU_CHUNK_T* pElm, const Ipp32u* pA, int nsA, const gsModEngine* pGF… in cpGFpxCopyToChunk()
101 … ZEXPAND_COPY_BNU((Ipp32u*)pElm, basicElmLen*(int)(sizeof(BNU_CHUNK_T)/sizeof(Ipp32u)), pA,srcLen); in cpGFpxCopyToChunk()
111 __INLINE int cpGFpxCopyFromChunk(Ipp32u* pA, const BNU_CHUNK_T* pElm, const gsModEngine* pGFEx) in cpGFpxCopyFromChunk()
128 BNU_CHUNK_T* cpGFpxRand(BNU_CHUNK_T* pR, gsModEngine* pGFEx, IppBitSupplier rndFunc, void* pRndPara…
131 BNU_CHUNK_T* cpGFpxSet (BNU_CHUNK_T* pR, const BNU_CHUNK_T* pDataA, int nsA, gsModEngine* pGFEx);
134 BNU_CHUNK_T* cpGFpxGet (BNU_CHUNK_T* pDataA, int nsA, const BNU_CHUNK_T* pR, gsModEngine* pGFEx);
137 BNU_CHUNK_T* cpGFpxSetPolyTerm (BNU_CHUNK_T* pR, int deg, const BNU_CHUNK_T* pDataA, int nsA, gsMod…
140 BNU_CHUNK_T* cpGFpxGetPolyTerm (BNU_CHUNK_T* pDataA, int nsA, const BNU_CHUNK_T* pR, int deg, gsMod…
143 BNU_CHUNK_T* cpGFpxAdd (BNU_CHUNK_T* pR, const BNU_CHUNK_T* pA, const BNU_CHUNK_T* pB, gsModEng…
[all …]
Dpcpgfpxmethod_com.h53 BNU_CHUNK_T* cpGFpxAdd_com(BNU_CHUNK_T* pR, const BNU_CHUNK_T* pA, const BNU_CHUNK_T* pB, gsEngine*…
55 BNU_CHUNK_T* cpGFpxSub_com(BNU_CHUNK_T* pR, const BNU_CHUNK_T* pA, const BNU_CHUNK_T* pB, gsEngine*…
57 BNU_CHUNK_T* cpGFpxNeg_com(BNU_CHUNK_T* pR, const BNU_CHUNK_T* pA, gsEngine* pGFEx);
60 BNU_CHUNK_T* cpGFpxMul_com(BNU_CHUNK_T* pR, const BNU_CHUNK_T* pA, const BNU_CHUNK_T* pB, gsEngine*…
62 BNU_CHUNK_T* cpGFpxSqr_com(BNU_CHUNK_T* pR, const BNU_CHUNK_T* pA, gsEngine* pGFEx);
65 BNU_CHUNK_T* cpGFpxDiv2_com(BNU_CHUNK_T* pR, const BNU_CHUNK_T* pA, gsEngine* pGFEx);
67 BNU_CHUNK_T* cpGFpxMul2_com(BNU_CHUNK_T* pR, const BNU_CHUNK_T* pA, gsEngine* pGFEx);
69 BNU_CHUNK_T* cpGFpxMul3_com(BNU_CHUNK_T* pR, const BNU_CHUNK_T* pA, gsEngine* pGFEx);
72 BNU_CHUNK_T* cpGFpxEncode_com(BNU_CHUNK_T* pR, const BNU_CHUNK_T* pA, gsEngine* pGFEx);
74 BNU_CHUNK_T* cpGFpxDecode_com(BNU_CHUNK_T* pR, const BNU_CHUNK_T* pA, gsEngine* pGFEx);
Dpcpngmontexpstuff.h83 __INLINE cpSize gsMontEnc_BNU(BNU_CHUNK_T* pR, in gsMontEnc_BNU()
84 const BNU_CHUNK_T* pXreg, cpSize nsX, in gsMontEnc_BNU()
93 __INLINE cpSize gsMontDec_BNU(BNU_CHUNK_T* pR, in gsMontDec_BNU()
94 const BNU_CHUNK_T* pXmont, in gsMontDec_BNU()
106 BNU_CHUNK_T* pR = BN_NUMBER(pRbn); in gsMontEnc_BN()
124 typedef cpSize (*ngMontExp)(BNU_CHUNK_T* dataY,
125 const BNU_CHUNK_T* dataX, cpSize nsX,
126 const BNU_CHUNK_T* dataE, cpSize nbitsE,
128 BNU_CHUNK_T* pBuffer);
135 cpSize gsMontExpBin_BNU(BNU_CHUNK_T* dataY,
[all …]
Dpcpgfpstuff.h60 BNU_CHUNK_T* pData;
113 __INLINE int cpGFpElementLen(const BNU_CHUNK_T* pE, int nsE) in cpGFpElementLen()
118 __INLINE BNU_CHUNK_T* cpGFpElementCopy(BNU_CHUNK_T* pR, const BNU_CHUNK_T* pE, int nsE) in cpGFpElementCopy()
124 __INLINE BNU_CHUNK_T* cpGFpElementPadd(BNU_CHUNK_T* pE, int nsE, BNU_CHUNK_T filler) in cpGFpElementPadd()
130 __INLINE BNU_CHUNK_T* cpGFpElementCopyPadd(BNU_CHUNK_T* pR, int nsR, const BNU_CHUNK_T* pE, int nsE) in cpGFpElementCopyPadd()
137 __INLINE int cpGFpElementCmp(const BNU_CHUNK_T* pE, const BNU_CHUNK_T* pX, int nsE) in cpGFpElementCmp()
144 __INLINE int cpGFpElementIsEquChunk(const BNU_CHUNK_T* pE, int nsE, BNU_CHUNK_T x) in cpGFpElementIsEquChunk()
150 __INLINE BNU_CHUNK_T* cpGFpElementSetChunk(BNU_CHUNK_T* pR, int nsR, BNU_CHUNK_T x) in cpGFpElementSetChunk()
155 __INLINE BNU_CHUNK_T* cpGFpAdd(BNU_CHUNK_T* pR, const BNU_CHUNK_T* pA, const BNU_CHUNK_T* pB, gsMod… in cpGFpAdd()
160 __INLINE BNU_CHUNK_T* cpGFpSub(BNU_CHUNK_T* pR, const BNU_CHUNK_T* pA, const BNU_CHUNK_T* pB, gsMod… in cpGFpSub()
[all …]
Dpcpmask_ct.h76 __INLINE BNU_CHUNK_T cpIsMsb_ct(BNU_CHUNK_T a) in cpIsMsb_ct()
78 return (BNU_CHUNK_T)0 - (a >> (sizeof(a) * 8 - 1)); in cpIsMsb_ct()
82 __INLINE BNU_CHUNK_T cpIsLsb_ct(BNU_CHUNK_T a) in cpIsLsb_ct()
84 return (BNU_CHUNK_T)0 - (a & 1); in cpIsLsb_ct()
88 __INLINE BNU_CHUNK_T cpIsOdd_ct(BNU_CHUNK_T a) in cpIsOdd_ct()
94 __INLINE BNU_CHUNK_T cpIsEven_ct(BNU_CHUNK_T a) in cpIsEven_ct()
100 __INLINE BNU_CHUNK_T cpIsZero_ct(BNU_CHUNK_T a) in cpIsZero_ct()
106 __INLINE BNU_CHUNK_T cpIsEqu_ct(BNU_CHUNK_T a, BNU_CHUNK_T b) in cpIsEqu_ct()
112 __INLINE void cpMaskedReplace_ct(BNU_CHUNK_T* dst, const BNU_CHUNK_T* src, int len, BNU_CHUNK_T rep… in cpMaskedReplace_ct()
114 BNU_CHUNK_T dstMask = ~replaceMask; in cpMaskedReplace_ct()
[all …]
Dpcpbnuimpl.h61 typedef Ipp64u BNU_CHUNK_T; typedef
67 typedef Ipp32u BNU_CHUNK_T; typedef
73 #define BNU_CHUNK_MASK (~(BNU_CHUNK_T)(0))
94 …((apiLen) + sizeof(BNU_CHUNK_T)/sizeof(API_BNU_CHUNK_T) -1)/(sizeof(BNU_CHUNK_T)/sizeof(API_BNU_CH…
97 #define BNU_CHUNK_2H ((BNU_CHUNK_T)1 << (BNU_CHUNK_BITS/2))
98 #define LO_CHUNK(c) ((BNU_CHUNK_T)(c) & (BNU_CHUNK_2H - 1))
99 #define HI_CHUNK(c) ((BNU_CHUNK_T)(c) >> (BNU_CHUNK_BITS/2))
104 BNU_CHUNK_T __s = (A) + (B); \
112 BNU_CHUNK_T __s = (A) + (B); \
113 BNU_CHUNK_T __t1= __s < (A); \
[all …]
Dpcpgfpecstuff.h66 BNU_CHUNK_T* pData; /* coordinatex X, Y, Z */
113 typedef void (*selectAP) (BNU_CHUNK_T* pAP, const BNU_CHUNK_T* pAPtbl, int index);
118 const BNU_CHUNK_T* pTbl; /* pre-computed table */
131 BNU_CHUNK_T* pA; /* EC parameter A */
132 BNU_CHUNK_T* pB; /* B */
133 BNU_CHUNK_T* pG; /* base_point */
134 BNU_CHUNK_T* cofactor; /* cofactor = #E/base_point order */
140 BNU_CHUNK_T* pPool; /* pool of points */
142 BNU_CHUNK_T* pPublic; /* regular public key */
143 BNU_CHUNK_T* pPublicE; /* ephemeral public key */
[all …]
Dpcpmontgomery.h94 __INLINE void cpMontRed_BNU(BNU_CHUNK_T* pR, in cpMontRed_BNU()
95 BNU_CHUNK_T* pProduct, in cpMontRed_BNU()
101 __INLINE void cpMontMul_BNU(BNU_CHUNK_T* pR, in cpMontMul_BNU()
102 const BNU_CHUNK_T* pA, in cpMontMul_BNU()
103 const BNU_CHUNK_T* pB, in cpMontMul_BNU()
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()
116 BNU_CHUNK_T* pDataR = pR; in cpMontMul_BNU_EX()
117 BNU_CHUNK_T* pDataA = gsModPoolAlloc(pModEngine, usedPoolLen); in cpMontMul_BNU_EX()
[all …]
Dpcpgfpxmethod_binom_epid2.c84 __INLINE BNU_CHUNK_T* cpFq6Mul_vi(BNU_CHUNK_T* pR, const BNU_CHUNK_T* pA, gsEngine* pGFEx) in cpFq6Mul_vi()
89 const BNU_CHUNK_T* pA0 = pA; in cpFq6Mul_vi()
90 const BNU_CHUNK_T* pA1 = pA+termLen; in cpFq6Mul_vi()
91 const BNU_CHUNK_T* pA2 = pA+termLen*2; in cpFq6Mul_vi()
92 BNU_CHUNK_T* pR0 = pR; in cpFq6Mul_vi()
93 BNU_CHUNK_T* pR1 = pR+termLen; in cpFq6Mul_vi()
94 BNU_CHUNK_T* pR2 = pR+termLen*2; in cpFq6Mul_vi()
96 BNU_CHUNK_T* t = cpGFpGetPool(1, pGroundGFE); in cpFq6Mul_vi()
121 static BNU_CHUNK_T* cpGFpxMul_p2_binom_epid2(BNU_CHUNK_T* pR, const BNU_CHUNK_T* pA, const BNU_CHUN… in cpGFpxMul_p2_binom_epid2()
130 const BNU_CHUNK_T* pA0 = pA; in cpGFpxMul_p2_binom_epid2()
[all …]
Dpcpgfpxmethod_binom3.c56 static BNU_CHUNK_T* cpGFpxMul_p3_binom(BNU_CHUNK_T* pR, const BNU_CHUNK_T* pA, const BNU_CHUNK_T* p… in cpGFpxMul_p3_binom()
65 const BNU_CHUNK_T* pA0 = pA; in cpGFpxMul_p3_binom()
66 const BNU_CHUNK_T* pA1 = pA+groundElemLen; in cpGFpxMul_p3_binom()
67 const BNU_CHUNK_T* pA2 = pA+groundElemLen*2; in cpGFpxMul_p3_binom()
69 const BNU_CHUNK_T* pB0 = pB; in cpGFpxMul_p3_binom()
70 const BNU_CHUNK_T* pB1 = pB+groundElemLen; in cpGFpxMul_p3_binom()
71 const BNU_CHUNK_T* pB2 = pB+groundElemLen*2; in cpGFpxMul_p3_binom()
73 BNU_CHUNK_T* pR0 = pR; in cpGFpxMul_p3_binom()
74 BNU_CHUNK_T* pR1 = pR+groundElemLen; in cpGFpxMul_p3_binom()
75 BNU_CHUNK_T* pR2 = pR+groundElemLen*2; in cpGFpxMul_p3_binom()
[all …]
Dpcpgfpxmethod_binom2.c56 static BNU_CHUNK_T* cpGFpxMul_p2_binom(BNU_CHUNK_T* pR, const BNU_CHUNK_T* pA, const BNU_CHUNK_T* p… in cpGFpxMul_p2_binom()
65 const BNU_CHUNK_T* pA0 = pA; in cpGFpxMul_p2_binom()
66 const BNU_CHUNK_T* pA1 = pA+groundElemLen; in cpGFpxMul_p2_binom()
68 const BNU_CHUNK_T* pB0 = pB; in cpGFpxMul_p2_binom()
69 const BNU_CHUNK_T* pB1 = pB+groundElemLen; in cpGFpxMul_p2_binom()
71 BNU_CHUNK_T* pR0 = pR; in cpGFpxMul_p2_binom()
72 BNU_CHUNK_T* pR1 = pR+groundElemLen; in cpGFpxMul_p2_binom()
74 BNU_CHUNK_T* t0 = cpGFpGetPool(4, pGroundGFE); in cpGFpxMul_p2_binom()
75 BNU_CHUNK_T* t1 = t0+groundElemLen; in cpGFpxMul_p2_binom()
76 BNU_CHUNK_T* t2 = t1+groundElemLen; in cpGFpxMul_p2_binom()
[all …]
Dpcpgfpxmethod_binom3_epid2.c83 static BNU_CHUNK_T* cpGFpxMul_p3_binom_epid2(BNU_CHUNK_T* pR, const BNU_CHUNK_T* pA, const BNU_CHUN… in cpGFpxMul_p3_binom_epid2()
92 const BNU_CHUNK_T* pA0 = pA; in cpGFpxMul_p3_binom_epid2()
93 const BNU_CHUNK_T* pA1 = pA+groundElemLen; in cpGFpxMul_p3_binom_epid2()
94 const BNU_CHUNK_T* pA2 = pA+groundElemLen*2; in cpGFpxMul_p3_binom_epid2()
96 const BNU_CHUNK_T* pB0 = pB; in cpGFpxMul_p3_binom_epid2()
97 const BNU_CHUNK_T* pB1 = pB+groundElemLen; in cpGFpxMul_p3_binom_epid2()
98 const BNU_CHUNK_T* pB2 = pB+groundElemLen*2; in cpGFpxMul_p3_binom_epid2()
100 BNU_CHUNK_T* pR0 = pR; in cpGFpxMul_p3_binom_epid2()
101 BNU_CHUNK_T* pR1 = pR+groundElemLen; in cpGFpxMul_p3_binom_epid2()
102 BNU_CHUNK_T* pR2 = pR+groundElemLen*2; in cpGFpxMul_p3_binom_epid2()
[all …]
Dgsmodstuff.h64 BNU_CHUNK_T* pModulus; /* modulus */
65 BNU_CHUNK_T k0; /* low word of (1/modulus) mod R */
66 BNU_CHUNK_T* pMontR; /* mont_enc(1) */
67 BNU_CHUNK_T* pMontR2; /* mont_enc(1)^2 */
68 BNU_CHUNK_T* pHalfModulus; /* modulus/2 */
69 BNU_CHUNK_T* pQnr; /* quadratic non-residue */
72 BNU_CHUNK_T* pBuffer; /* buffer of modLen*nBuffers length */
107 BNU_CHUNK_T gsMontFactor(BNU_CHUNK_T m0);
128 __INLINE BNU_CHUNK_T* gsModPoolAlloc(gsModEngine* pME, int poolReq) in gsModPoolAlloc()
130 BNU_CHUNK_T* pPool = MOD_BUFFER(pME, pME->poolLenUsed); in gsModPoolAlloc()
[all …]
Dpcpngmontexpstuff_avx512.h73 …pSize ammBitSize = 2 + cpDigitNum_avx512(modulusBits, BITSIZE(BNU_CHUNK_T)) * BITSIZE(BNU_CHUNK_T); in numofVariable_avx512()
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,
99 BNU_CHUNK_T* pBuffer);
102 cpSize gsMontExpWin_BNU_avx512(BNU_CHUNK_T* dataY,
103 const BNU_CHUNK_T* dataX, cpSize nsX,
104 const BNU_CHUNK_T* dataE, cpSize nsE,
106 BNU_CHUNK_T* pBuffer);
109 cpSize gsMontExpBin_BNU_sscm_avx512(BNU_CHUNK_T* dataY,
[all …]

12345678910