Home
last modified time | relevance | path

Searched refs:pMont (Results 1 – 11 of 11) sorted by relevance

/external/epid-sdk/ext/ipp/sources/ippcp/
Dpcpmont_expsafebinary.c76 IppsMontState* pMont) in cpSafeMontExp_Binary() argument
82 int len = IPP_MULTIPLE_OF(pMont->n->size, BNUBASE_TYPE_SIZE); in cpSafeMontExp_Binary()
83 cpMemset32u(pMont->wb->number, 0, len); in cpSafeMontExp_Binary()
84 pMont->wb->number[len] = 1; in cpSafeMontExp_Binary()
86 cpMod_BNU(pMont->wb->number, len + 1, pMont->n->number, pMont->n->size, &pY->size); in cpSafeMontExp_Binary()
88 cpMemcpy32u(pY->number, pMont->wb->number, pY->size); in cpSafeMontExp_Binary()
110 pMont->n->number, pMont->n->size, in cpSafeMontExp_Binary()
111 r_number,&r_size, pMont->n0, pMont->wb->number); in cpSafeMontExp_Binary()
114 pMont->n->number, pMont->n->size, in cpSafeMontExp_Binary()
115 r_number,&r_size, pMont->n0, pMont->wb->number, pMont->pBuffer); in cpSafeMontExp_Binary()
[all …]
Dpcpngmontexpstuff.h85 const gsModEngine* pMont) in gsMontEnc_BNU() argument
87 cpSize nsM = MOD_LEN( pMont ); in gsMontEnc_BNU()
89 MOD_METHOD( pMont )->encode(pR, pR, (gsModEngine*)pMont); in gsMontEnc_BNU()
95 gsModEngine* pMont) in gsMontDec_BNU() argument
97 cpSize nsM = MOD_LEN(pMont); in gsMontDec_BNU()
98 MOD_METHOD( pMont )->decode(pR, pXmont, (gsModEngine*)pMont); in gsMontDec_BNU()
104 gsModEngine* pMont) in gsMontEnc_BN() argument
107 cpSize nsM = MOD_LEN(pMont); in gsMontEnc_BN()
109 gsMontEnc_BNU(pR, BN_NUMBER(pXbn), BN_SIZE(pXbn), pMont); in gsMontEnc_BN()
127 gsModEngine* pMont,
[all …]
Dpcpmont_init.c72 IppStatus cpMontInit(int maxLen32, int poolLength, IppsMontState* pMont) in cpMontInit() argument
74 pMont = (IppsMontState*)( IPP_ALIGNED_PTR(pMont, MONT_ALIGNMENT) ); in cpMontInit()
78 MNT_ROOM( pMont ) = INTERNAL_BNU_LENGTH(maxLen32); in cpMontInit()
79 MNT_ENGINE ( pMont ) = (gsModEngine*)((Ipp8u*)pMont + sizeof(IppsMontState)); in cpMontInit()
81 MNT_ID(pMont) = idCtxMontgomery; in cpMontInit()
83 gsModEngineInit(MNT_ENGINE(pMont), NULL, maxBitSize, poolLength, gsModArithMont()); in cpMontInit()
Dpcpmontget.c73 IPPFUN(IppStatus, ippsMontGet,(Ipp32u* pModulus, int* pSize, const IppsMontState* pMont))
75 IPP_BAD_PTR3_RET(pMont, pModulus, pSize);
77 pMont = (IppsMontState*)(IPP_ALIGNED_PTR((pMont), MONT_ALIGNMENT));
78 IPP_BADARG_RET(!MNT_VALID_ID(pMont), ippStsContextMatchErr);
81 cpSize len32 = MOD_LEN(MNT_ENGINE(pMont))*sizeof(BNU_CHUNK_T)/sizeof(Ipp32u);
82 Ipp32u* bnData = (Ipp32u*) MOD_MODULUS( MNT_ENGINE(pMont) );
Dpcpprime_isprob.h62 gsModEngine* pMont, in cpMillerRabinTest() argument
65 cpSize nsP = MOD_LEN(pMont); in cpMillerRabinTest()
69 MOD_METHOD(pMont)->encode(pW, pW, pMont); in cpMillerRabinTest()
72 gsMontExpWin_BNU_sscm(pW, pW, nsP, pE, bitsizeE, pMont, pBuffer); in cpMillerRabinTest()
75 if ((0 == cpCmp_BNU(pW, nsP, MOD_MNT_R(pMont), nsP)) in cpMillerRabinTest()
80 MOD_METHOD(pMont)->sqr(pW, pW, pMont); in cpMillerRabinTest()
82 if (0 == cpCmp_BNU(pW, nsP, MOD_MNT_R(pMont), nsP)) in cpMillerRabinTest()
Dpcpmontgomery.h246 gsModEngine* pMont) in cpMontExpBin_BN_sscm() argument
253 cpSize nsY = cpMontExpBin_BNU_sscm(pY, pX,nsX, pE,nsE, pMont); in cpMontExpBin_BN_sscm()
286 gsModEngine* pMont,
292 gsModEngine* pMont,
303 gsModEngine* pMont);
310 gsModEngine* pMont);
315 BNU_CHUNK_T* cpMontInv_BNU(BNU_CHUNK_T* pR, const BNU_CHUNK_T* pA, IppsMontState* pMont);
317 BNU_CHUNK_T* cpRegInv_BNU(BNU_CHUNK_T* pR, const BNU_CHUNK_T* pA, IppsMontState* pMont);
327 IppStatus cpMontInit(int maxLen32, int poolLength, IppsMontState* pMont);
330 IppStatus cpMontSet(const Ipp32u* pModulus, cpSize len32, IppsMontState* pMont);
Dpcpmont_set.c83 IppStatus cpMontSet(const Ipp32u* pModulus, cpSize len32, IppsMontState* pMont) in cpMontSet() argument
89 IPP_BADARG_RET(MNT_ROOM(pMont)<(int)(INTERNAL_BNU_LENGTH(len32)), ippStsOutOfRangeErr); in cpMontSet()
92 const int poolLen = MOD_MAXPOOL(MNT_ENGINE(pMont)); in cpMontSet()
95 gsModEngineInit(MNT_ENGINE(pMont), pModulus, modulusBitSize, poolLen, gsModArithMont()); in cpMontSet()
Dpcpngmontexpstuff_avx512.h98 gsModEngine* pMont,
105 gsModEngine* pMont,
112 gsModEngine* pMont,
119 gsModEngine* pMont,
Dpcpngmontexpstuff_sse2.h96 gsModEngine* pMont,
103 gsModEngine* pMont,
110 gsModEngine* pMont,
117 gsModEngine* pMont,
Dpcpngmontexpstuff_avx2.h118 gsModEngine* pMont,
125 gsModEngine* pMont,
132 gsModEngine* pMont,
139 gsModEngine* pMont,
Dpcpprimeg.h67 gsModEngine* pMont; /* montgomery engine */ member
80 #define PRIME_MONT(ctx) ((ctx)->pMont)