Lines Matching defs:ivSize
513 * int ivSize - size (in bytes) of IV provided by user. If ivSize is
522 MV_STATUS mvCesaCryptoIvSet(MV_U8* pIV, int ivSize)
529 if(ivSize > MV_CESA_MAX_IV_LENGTH)
531 mvOsPrintf("mvCesaCryptoIvSet: ivSize (%d) is too large\n", ivSize);
532 ivSize = MV_CESA_MAX_IV_LENGTH;
536 memcpy(pSramIV, pIV, ivSize);
537 ivSize = MV_CESA_MAX_IV_LENGTH - ivSize;
538 pSramIV += ivSize;
541 while(ivSize > 0)
545 size = MV_MIN(ivSize, sizeof(mv_random));
549 ivSize -= size;