Home
last modified time | relevance | path

Searched refs:orderLen (Results 1 – 15 of 15) sorted by relevance

/external/epid-sdk/ext/ipp/sources/ippcp/
Dpcpeccpverifydsaca.c124 int orderLen = MOD_LEN(pModEngine); variable
127 …IPP_BADARG_RET(0<=cpCmp_BNU(BN_NUMBER(pMsgDigest), BN_SIZE(pMsgDigest), pOrder, orderLen), ippStsM…
132 0>cpCmp_BNU(BN_NUMBER(pSignX), BN_SIZE(pSignX), pOrder, orderLen) &&
133 0>cpCmp_BNU(BN_NUMBER(pSignY), BN_SIZE(pSignY), pOrder, orderLen)) {
150 BN_Make(buffer, buffer+orderLen+1, orderLen, &Y);
151 BN_Make(buffer+(orderLen+1)*2, buffer+(orderLen+1)*3, orderLen, &R);
153 BN_Set(pOrder, orderLen, &R);
156 cpGFpElementCopyPadd(h1, orderLen, BN_NUMBER(&Y), BN_SIZE(&Y));
157 cpMontEnc_BNU_EX(h1, h1, orderLen, pModEngine);
166 h1,orderLen, BN_NUMBER(pSignX), BN_SIZE(pSignX),
[all …]
Dpcpeccpverifysm2ca.c137 int orderLen = MOD_LEN(pMontR); variable
143 IPP_BADARG_RET(0<=cpCmp_BNU(pMsgData, msgLen, pOrder, orderLen), ippStsMessageErr);
148 0>cpCmp_BNU(BN_NUMBER(pSignR), BN_SIZE(pSignR), pOrder, orderLen) &&
149 0>cpCmp_BNU(BN_NUMBER(pSignS), BN_SIZE(pSignS), pOrder, orderLen)) {
155 BNU_CHUNK_T* s = r+orderLen;
156 BNU_CHUNK_T* t = s+orderLen;
157 BNU_CHUNK_T* f = t+orderLen;
160 cpGFpElementCopyPadd(r, orderLen, BN_NUMBER(pSignR), BN_SIZE(pSignR));
161 cpGFpElementCopyPadd(s, orderLen, BN_NUMBER(pSignS), BN_SIZE(pSignS));
164 cpModAdd_BNU(t, r, s, pOrder, orderLen, f);
[all …]
Dpcpeccpverifynrca.c100 int orderLen; variable
112 orderLen = MOD_LEN(pModEngine);
122 IPP_BADARG_RET(0<=cpCmp_BNU(pMsgData, msgLen, pOrder, orderLen), ippStsMessageErr);
152 0>cpCmp_BNU(BN_NUMBER(pSignX),BN_SIZE(pSignX), pOrder,orderLen) &&
153 0>cpCmp_BNU(BN_NUMBER(pSignY),BN_SIZE(pSignY), pOrder,orderLen)) {
162 cpGFpElementCopyPadd(pH1, orderLen, BN_NUMBER(pSignY), BN_SIZE(pSignY));
163 cpGFpElementCopyPadd(pH2, orderLen, BN_NUMBER(pSignX), BN_SIZE(pSignX));
167 pH1, orderLen, &Public, pH2, orderLen,
174 elmLen = cpMod_BNU(pH1, elmLen, pOrder, orderLen);
175 cpGFpElementPadd(pH1+elmLen, orderLen-elmLen, 0);
[all …]
Dpcpgfpecverifynr.c142 int orderLen = MOD_LEN(pMontR); variable
145 …IPP_BADARG_RET((0<=cpCmp_BNU(BN_NUMBER(pMsgDigest), BN_SIZE(pMsgDigest), pOrder, orderLen)), ippSt…
150 0>cpCmp_BNU(BN_NUMBER(pSignR), BN_SIZE(pSignR), pOrder, orderLen) &&
151 0>cpCmp_BNU(BN_NUMBER(pSignS), BN_SIZE(pSignS), pOrder, orderLen)) {
164 ZEXPAND_COPY_BNU(h1, orderLen, BN_NUMBER(pSignS),BN_SIZE(pSignS));
165 ZEXPAND_COPY_BNU(h2, orderLen, BN_NUMBER(pSignR),BN_SIZE(pSignR));
167 h1, orderLen, pRegPublic, h2, orderLen,
174 elmLen = cpMod_BNU(h1, elmLen, pOrder, orderLen);
175 cpGFpElementPadd(h1+elmLen, orderLen-elmLen, 0);
178 ZEXPAND_COPY_BNU(f, orderLen, BN_NUMBER(pMsgDigest),BN_SIZE(pMsgDigest));
[all …]
Dpcpgfpecverifydsa.c142 int orderLen = MOD_LEN(pMontR); variable
145 …IPP_BADARG_RET((0<=cpCmp_BNU(BN_NUMBER(pMsgDigest), BN_SIZE(pMsgDigest), pOrder, orderLen)), ippSt…
150 0>cpCmp_BNU(BN_NUMBER(pSignR), BN_SIZE(pSignR), pOrder, orderLen) &&
151 0>cpCmp_BNU(BN_NUMBER(pSignS), BN_SIZE(pSignS), pOrder, orderLen)) {
166 ZEXPAND_COPY_BNU(h1, orderLen, BN_NUMBER(pMsgDigest), BN_SIZE(pMsgDigest));
169 ZEXPAND_COPY_BNU(h, orderLen, BN_NUMBER(pSignS),BN_SIZE(pSignS));
173 ZEXPAND_COPY_BNU(h2, orderLen, BN_NUMBER(pSignR),BN_SIZE(pSignR));
178 h1, orderLen, pRegPublic, h2, orderLen,
185 elmLen = cpMod_BNU(h1, elmLen, pOrder, orderLen);
186 cpGFpElementPadd(h1+elmLen, orderLen-elmLen, 0);
[all …]
Dpcpgfpecgetsubgroup.c119 int orderLen = BITS_BNU_CHUNK(orderBitSize); variable
120 FIX_BNU(pOrderData, orderLen);
124 IPP_BADARG_RET(BN_ROOM(pOrder) < orderLen, ippStsLengthErr);
126 ZEXPAND_COPY_BNU(BN_NUMBER(pOrder), BN_ROOM(pOrder), pOrderData, orderLen);
127 BN_SIZE(pOrder) = orderLen;
Dpcpgfpec_baseprod.c69 int orderLen = MOD_LEN(pGForder); in gfec_BasePointProduct() local
71 BNU_CHUNK_T* tmpScalarP = tmpScalarG+orderLen+1; in gfec_BasePointProduct()
73 cpGFpElementCopyPadd(tmpScalarG, orderLen+1, pScalarG,scalarGlen); in gfec_BasePointProduct()
74 cpGFpElementCopyPadd(tmpScalarP, orderLen+1, pScalarP,scalarPlen); in gfec_BasePointProduct()
Dpcpgfpec_mul1.c68 int orderLen = MOD_LEN(pGForder); in gfec_MulPoint() local
69 cpGFpElementCopyPadd(pTmpScalar,orderLen+1, pScalar,scalarLen); in gfec_MulPoint()
Dpcpgfpec_mulbase1.c67 int orderLen = MOD_LEN(pGForder); in gfec_MulBasePoint() local
68 cpGFpElementCopyPadd(pTmpScalar,orderLen+1, pScalar,scalarLen); in gfec_MulBasePoint()
Dpcpgfpecpublickey.c108 int orderLen = BITS_BNU_CHUNK(ECP_ORDBITSIZE(pEC)); variable
111 || 0<=cpCmp_BNU(pS, nsS, pOrder, orderLen), ippStsIvalidPrivateKey);
Dpcpgfpecprivatekey.c97 int orderLen = BITS_BNU_CHUNK(orderBitLen); variable
110 (0 <= cpCmp_BNU(pX, nsX, pOrder, orderLen)) );
Dpcpgfpeckeys.c108 int orderLen = BITS_BNU_CHUNK(ECP_ORDBITSIZE(pEC)); variable
111 if(cpEqu_BNU_CHUNK(pS, nsS, 0) || 0<=cpCmp_BNU(pS, nsS, pOrder, orderLen)) {
Dpcpeccpgenkeyca.c106 int orderLen = BITS_BNU_CHUNK(orderBitLen); variable
119 (0 <= cpCmp_BNU(pX, nsX, pOrder, orderLen)) );
Dpcpgfpecsetsubgroup.c126 int orderLen= BN_SIZE(pOrder); variable
127 int orderBitSize = BITSIZE_BNU(pOrderData, orderLen);
Dpcpgfpecverify.c158 int orderLen = MOD_LEN(pR); variable
160 … *pResult = (primeLen==orderLen && GFP_EQ(pPrime, pOrder, primeLen))? ippECIsWeakSSSA : ippECValid;