Lines Matching refs:lsHashInfo
316 Lsc_HashInfo_t lsHashInfo; in performLSDownload_thread() local
343 if (lsHashInfo.lsRawScriptBuf == nullptr) { in performLSDownload_thread()
344 lsHashInfo.lsRawScriptBuf = (uint8_t*)phNxpEse_memalloc(lsBufSize + 1); in performLSDownload_thread()
346 memset(lsHashInfo.lsRawScriptBuf, 0x00, (lsBufSize + 1)); in performLSDownload_thread()
347 if (fread(lsHashInfo.lsRawScriptBuf, (size_t)lsBufSize, 1, fIn) != 1) in performLSDownload_thread()
353 lsHashInfo.lsScriptHash = in performLSDownload_thread()
354 getHASH(lsHashInfo.lsRawScriptBuf, (size_t)lsBufSize); in performLSDownload_thread()
355 phNxpEse_free(lsHashInfo.lsRawScriptBuf); in performLSDownload_thread()
356 lsHashInfo.lsRawScriptBuf = nullptr; in performLSDownload_thread()
357 if (lsHashInfo.lsScriptHash == nullptr) break; in performLSDownload_thread()
359 if (lsHashInfo.readBuffHash == nullptr) { in performLSDownload_thread()
360 lsHashInfo.readBuffHash = (uint8_t*)phNxpEse_memalloc(HASH_DATA_LENGTH); in performLSDownload_thread()
362 memset(lsHashInfo.readBuffHash, 0x00, HASH_DATA_LENGTH); in performLSDownload_thread()
366 LSC_ReadLsHash(lsHashInfo.readBuffHash, &lsHashInfo.readHashLen, index); in performLSDownload_thread()
371 (lsHashInfo.readHashLen == HASH_DATA_LENGTH) && in performLSDownload_thread()
372 (0 == memcmp(lsHashInfo.lsScriptHash, lsHashInfo.readBuffHash, in performLSDownload_thread()
374 (lsHashInfo.readBuffHash[HASH_STATUS_INDEX] == LS_DOWNLOAD_SUCCESS)) { in performLSDownload_thread()
398 lsHashInfo.lsScriptHash[HASH_STATUS_INDEX] = LS_DOWNLOAD_FAILED; in performLSDownload_thread()
402 LSC_UpdateLsHash(lsHashInfo.lsScriptHash, HASH_DATA_LENGTH, index); in performLSDownload_thread()
423 lsHashInfo.lsScriptHash[HASH_STATUS_INDEX] = LS_DOWNLOAD_SUCCESS; in performLSDownload_thread()
425 LSC_UpdateLsHash(lsHashInfo.lsScriptHash, HASH_DATA_LENGTH, index); in performLSDownload_thread()
432 phNxpEse_free(lsHashInfo.readBuffHash); in performLSDownload_thread()