Home
last modified time | relevance | path

Searched refs:MNT_ENGINE (Results 1 – 9 of 9) sorted by relevance

/external/epid-sdk/ext/ipp/sources/ippcp/
Dpcpmontmul.c98 …G_RET(cpCmp_BNU(BN_NUMBER(pA), BN_SIZE(pA), MOD_MODULUS( MNT_ENGINE(pCtx) ), MOD_LEN( MNT_ENGINE(p…
99 …G_RET(cpCmp_BNU(BN_NUMBER(pB), BN_SIZE(pB), MOD_MODULUS( MNT_ENGINE(pCtx) ), MOD_LEN( MNT_ENGINE(p…
100 IPP_BADARG_RET(BN_ROOM(pR) < MOD_LEN( MNT_ENGINE(pCtx) ), ippStsOutOfRangeErr);
104 cpSize nsM = MOD_LEN( MNT_ENGINE(pCtx) );
106 BNU_CHUNK_T* pDataA = gsModPoolAlloc(MNT_ENGINE(pCtx), usedPoolLen);
113 MOD_METHOD( MNT_ENGINE(pCtx) )->mul(pDataR, pDataA, pDataB, MNT_ENGINE(pCtx));
115 gsModPoolFree(MNT_ENGINE(pCtx), usedPoolLen);
Dpcpmontform.c91 …G_RET(cpCmp_BNU(BN_NUMBER(pA), BN_SIZE(pA), MOD_MODULUS( MNT_ENGINE(pCtx) ), MOD_LEN( MNT_ENGINE(p…
92 IPP_BADARG_RET(BN_ROOM(pR) < MOD_LEN( MNT_ENGINE(pCtx) ), ippStsOutOfRangeErr);
96 cpSize nsM = MOD_LEN( MNT_ENGINE(pCtx) );
97 BNU_CHUNK_T* pDataA = gsModPoolAlloc(MNT_ENGINE(pCtx), usedPoolLen);
102 MOD_METHOD( MNT_ENGINE(pCtx) )->encode(BN_NUMBER(pR), pDataA, MNT_ENGINE(pCtx));
108 gsModPoolFree(MNT_ENGINE(pCtx), usedPoolLen);
Dpcpmontexp.c100 IPP_BADARG_RET(BN_ROOM(pR) < MOD_LEN( MNT_ENGINE(pCtx) ), ippStsOutOfRangeErr);
103 …G_RET(cpCmp_BNU(BN_NUMBER(pA), BN_SIZE(pA), MOD_MODULUS( MNT_ENGINE(pCtx) ), MOD_LEN( MNT_ENGINE(p…
107 cpMontExpBin_BN(pR, pA, pE, MNT_ENGINE( pCtx) );
Dpcpmont_init.c79 MNT_ENGINE ( pMont ) = (gsModEngine*)((Ipp8u*)pMont + sizeof(IppsMontState)); in cpMontInit()
83 gsModEngineInit(MNT_ENGINE(pMont), NULL, maxBitSize, poolLength, gsModArithMont()); in cpMontInit()
Dpcpmontget.c81 cpSize len32 = MOD_LEN(MNT_ENGINE(pMont))*sizeof(BNU_CHUNK_T)/sizeof(Ipp32u);
82 Ipp32u* bnData = (Ipp32u*) MOD_MODULUS( MNT_ENGINE(pMont) );
Dpcpmont_set.c92 const int poolLen = MOD_MAXPOOL(MNT_ENGINE(pMont)); in cpMontSet()
95 gsModEngineInit(MNT_ENGINE(pMont), pModulus, modulusBitSize, poolLen, gsModArithMont()); in cpMontSet()
Dpcpmont_unpackctx.c76 gsUnpackModEngineCtx(pBuffer, MNT_ENGINE(pCtx)); in cpUnpackMontCtx()
Dpcpmont_packctx.c76 gsPackModEngineCtx(MNT_ENGINE(pCtx), pBuffer); in cpPackMontCtx()
Dpcpmontgomery.h71 #define MNT_ENGINE(eng) ((eng)->pEngine) macro