Lines Matching refs:pCmd
1360 MV_STATUS testCmd(int sid, int iter, MV_CESA_COMMAND* pCmd,
1849 MV_STATUS testCmd(int sid, int iter, MV_CESA_COMMAND* pCmd,
1860 if(pCmd == NULL)
1862 mvOsPrintf("testCmd failed: pCmd=NULL\n");
1865 pCmd->sessionId = sid;
1879 pCmd->pSrc = (MV_CESA_MBUF*)(cesaCmdRing[i].pSrc);
1883 cesaSetMbuf(pCmd->pSrc, ivZeroHex, 0, pCmd->cryptoOffset);
1884 cesaSetMbuf(pCmd->pSrc, cesaInputHexStr, pCmd->cryptoOffset,
1885 (cesaReqSize - pCmd->cryptoOffset));
1889 cesaSetMbuf(pCmd->pSrc, cesaInputHexStr, 0, cesaReqSize);
1891 pCmd->pDst = (MV_CESA_MBUF*)(cesaCmdRing[i].pDst);
1892 cesaSetMbuf(pCmd->pDst, cesaNullPlainHexText, 0, cesaReqSize);
1894 memcpy(&cesaCmdRing[i], pCmd, sizeof(*pCmd));
1903 mvMD5(pCmd->pSrc->pFrags[0].bufVirtPtr, pCmd->macLength, pDigest);
1905 cesaReqSize, pCmd->macLength);
1911 mvSHA1(pCmd->pSrc->pFrags[0].bufVirtPtr, pCmd->macLength, pDigest);
1913 cesaReqSize, pCmd->macLength);
1932 mvMD5(pCmd->pSrc->pFrags[0].bufVirtPtr, pCmd->macLength, (unsigned char*)pDigest);
1936 mvSHA1(pCmd->pSrc->pFrags[0].bufVirtPtr, pCmd->macLength, (MV_U8 *)pDigest);
1957 pCmd = &cesaCmdRing[cmdReqId];
1958 pCmd->pReqPrv = (void*)cmdReqId;
1962 rc = mvCesaAction(pCmd);
1983 rc = mvCesaAction(pCmd);