Home
last modified time | relevance | path

Searched refs:partDataLength (Results 1 – 1 of 1) sorted by relevance

/base/security/huks/frameworks/huks_standard/main/common/src/
Dhks_common_check.c162 uint32_t partDataLength = 0; in HksCheckWrappedDataFormatValidity() local
170 partDataLength = 0; in HksCheckWrappedDataFormatValidity()
171 … (void)memcpy_s((uint8_t *)&partDataLength, sizeof(uint32_t), data + offset, sizeof(uint32_t)); in HksCheckWrappedDataFormatValidity()
174 if ((partDataLength == 0) || (partDataLength > dataSize - offset)) { in HksCheckWrappedDataFormatValidity()
178 offset += partDataLength; in HksCheckWrappedDataFormatValidity()
180 if ((validBlobLengths != NULL) && (*(validBlobLengths + blobIndex) != partDataLength)) { in HksCheckWrappedDataFormatValidity()
204 uint32_t partDataLength = 0; in HksGetBlobFromWrappedData() local
207 partDataLength = 0; in HksGetBlobFromWrappedData()
208 … (void)memcpy_s((uint8_t *)&partDataLength, sizeof(uint32_t), data + offset, sizeof(uint32_t)); in HksGetBlobFromWrappedData()
211 if ((partDataLength == 0) || (partDataLength > HKS_WRAPPED_FORMAT_MAX_SIZE) || in HksGetBlobFromWrappedData()
[all …]