Lines Matching refs:cryptoOffset
124 int cryptoOffset, int ivOffset, int cryptoLength,
153 int cryptoOffset, int macOffset,
1601 int fixOffset, cryptoOffset, macOffset;
1626 cryptoOffset = pCmd->cryptoOffset;
1637 mvCesaFragSizeFind(pSA, pReq, cryptoOffset, macOffset,
1735 cryptoOffset = 0;
1804 mvCesaFragSizeFind(pSA, pReq, cryptoOffset, macOffset,
1815 cryptoOffset + fixOffset, cryptoIvOffset + fixOffset,
1912 mvCesaSramDescrBuild(pSA->config, 0, pCmd->cryptoOffset + fixOffset,
1948 * int cryptoOffset - Offset from the beginning of SRAM buffer where
1968 int cryptoOffset, int ivOffset, int cryptoLength,
1982 pCesaDesc->cryptoSrcOffset = MV_16BIT_LE(sramBufOffset + cryptoOffset);
1983 pCesaDesc->cryptoDstOffset = MV_16BIT_LE(sramBufOffset + cryptoOffset);
2687 pCtrModeCmd->cryptoOffset = 0;
2742 (pOrgCmd->cryptoOffset > 0) )
2747 pOrgCmd->pSrc, 0, pOrgCmd->cryptoOffset);
2750 0, pOrgCmd->cryptoOffset);
2752 0, pOrgCmd->cryptoOffset);
2756 srcFrag = mvCesaMbufOffset(pOrgCmd->pSrc, pOrgCmd->cryptoOffset, &srcOffset);
2760 dstFrag = mvCesaMbufOffset(pOrgCmd->pDst, pOrgCmd->cryptoOffset, &dstOffset);
2793 srcOffset = pOrgCmd->cryptoOffset + pOrgCmd->cryptoLength;
2899 if( MV_IS_NOT_ALIGN(pCmd->cryptoOffset, 4) )
2901 mvOsPrintf("CesaAction: cryptoOffset=%d must be 4 byte aligned\n",
2902 pCmd->cryptoOffset);
2914 fixOffset = (pCmd->cryptoOffset % 8);
2919 if( (pCmd->cryptoOffset % 8) != fixOffset)
2921 mvOsPrintf("mvCesaAction: cryptoOffset %d mod 8 must be equal %d \n",
2922 pCmd->cryptoOffset, fixOffset);
2931 if( ((pCmd->ivOffset + pSA->cryptoIvSize) > pCmd->cryptoOffset) &&
2932 (pCmd->ivOffset < (pCmd->cryptoOffset + pCmd->cryptoLength)) )
2999 /* cryptoOffset must be less that SRAM buffer size */
3001 if( (pCmd->cryptoOffset + 4) > (sizeof(cesaSramVirtPtr->buf) - pSA->cryptoBlockSize))
3003 mvOsPrintf("mvCesaFragParamCheck: cryptoOffset is too large (%d)\n",
3004 pCmd->cryptoOffset);
3008 /* cryptoOffset+cryptoSize must be more than mbufSize - SRAM buffer size */
3009 if( ((pCmd->cryptoOffset + pCmd->cryptoLength) > pCmd->pSrc->mbufSize) ||
3010 ((pCmd->pSrc->mbufSize - (pCmd->cryptoOffset + pCmd->cryptoLength)) >=
3033 /* abs(cryptoOffset-macOffset) must be aligned cryptoBlockSize */
3034 if(pCmd->cryptoOffset > pCmd->macOffset)
3036 offset = pCmd->cryptoOffset - pCmd->macOffset;
3040 offset = pCmd->macOffset - pCmd->cryptoOffset;
3046 mvOsPrintf("mvCesaFragParamCheck: (cryptoOffset - macOffset) must be %d byte aligned\n",
3052 if( ((pCmd->digestOffset + pSA->digestSize) > pCmd->cryptoOffset) &&
3053 (pCmd->digestOffset < (pCmd->cryptoOffset + pCmd->cryptoLength)) )
3057 pCmd->digestOffset, pCmd->cryptoOffset, pCmd->cryptoLength);
3073 * int cryptoOffset, int macOffset,
3083 int cryptoOffset, int macOffset,
3095 cryptoDataSize = MV_MIN( (copySize - cryptoOffset),
3102 copySize = cryptoOffset + cryptoDataSize;
3117 cryptoDataSize = copySize - cryptoOffset;