Searched refs:cachedBlob (Results 1 – 1 of 1) sorted by relevance
/base/security/huks/services/huks_standard/huks_engine/main/core/src/ |
D | hks_core_service_three_stage.c | 294 static int32_t CopyNewCachedData(const struct HksBlob *cachedBlob, const struct HksBlob *inData, in CopyNewCachedData() argument 297 if (cachedBlob->size != 0) { in CopyNewCachedData() 298 if (memcpy_s(newData, newSize, cachedBlob->data, cachedBlob->size) != EOK) { in CopyNewCachedData() 304 …if (memcpy_s(newData + cachedBlob->size, newSize - cachedBlob->size, inData->data, inData->size) !… in CopyNewCachedData() 312 static int32_t GetNewCachedData(const struct HksBlob *cachedBlob, const struct HksBlob *inData, in GetNewCachedData() argument 315 if ((cachedBlob->size > MAX_BUF_SIZE) || (inData->size > (MAX_BUF_SIZE - cachedBlob->size))) { in GetNewCachedData() 320 uint32_t newSize = cachedBlob->size + inData->size; in GetNewCachedData() 324 int32_t ret = CopyNewCachedData(cachedBlob, inData, newData, newSize); in GetNewCachedData()
|