Lines Matching refs:macOffset
125 int macOffset, int digestOffset, int macLength, int macTotalLen,
153 int cryptoOffset, int macOffset,
1601 int fixOffset, cryptoOffset, macOffset;
1627 macOffset = pCmd->macOffset;
1637 mvCesaFragSizeFind(pSA, pReq, cryptoOffset, macOffset,
1736 macOffset = 0;
1804 mvCesaFragSizeFind(pSA, pReq, cryptoOffset, macOffset,
1816 cryptoDataSize, macOffset + fixOffset,
1914 pCmd->macOffset + fixOffset, pCmd->digestOffset + fixOffset,
1954 * int macOffset - Offset from the beginning of SRAM buffer where
1969 int macOffset, int digestOffset, int macLength,
1999 pCesaDesc->macSrcOffset = MV_16BIT_LE(sramBufOffset + macOffset);
2690 /* digestOffset, macOffset and macLength are don't care */
2860 if( MV_IS_NOT_ALIGN(pCmd->macOffset, 4) )
2862 mvOsPrintf("mvCesaAction: macOffset %d must be 4 byte aligned\n",
2863 pCmd->macOffset);
2876 fixOffset = (pCmd->macOffset % 8);
2880 if( (pCmd->macOffset % 8) != fixOffset)
2882 mvOsPrintf("mvCesaAction: macOffset %d mod 8 must be equal %d\n",
2883 pCmd->macOffset, fixOffset);
2935 pCmd->ivOffset, pCmd->macOffset, pCmd->macLength);
2978 /* macOffset must be less that SRAM buffer size */
2979 if(pCmd->macOffset > (sizeof(cesaSramVirtPtr->buf) - MV_CESA_AUTH_BLOCK_SIZE))
2981 mvOsPrintf("mvCesaFragParamCheck: macOffset is too large (%d)\n",
2982 pCmd->macOffset);
2985 /* macOffset+macSize must be more than mbufSize - SRAM buffer size */
2986 if( ((pCmd->macOffset + pCmd->macLength) > pCmd->pSrc->mbufSize) ||
2987 ((pCmd->pSrc->mbufSize - (pCmd->macOffset + pCmd->macLength)) >=
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",
3073 * int cryptoOffset, int macOffset,
3083 int cryptoOffset, int macOffset,
3108 macDataSize = MV_MIN( (copySize - macOffset),
3115 copySize = macOffset + macDataSize;