Searched refs:HAP_DIGEST_PRIFIX_LEN (Results 1 - 2 of 2) sorted by relevance
/base/security/appverify/interfaces/innerkits/appverify_lite/src/ |
H A D | app_verify_hap.c | 63 unsigned char chunkContentPrefix[HAP_DIGEST_PRIFIX_LEN] = {HAP_SECOND_LEVEL_CHUNK_PREFIX, 0, 0, 0, 0}; in ComputeBlockHash() 64 if (memcpy_s((chunkContentPrefix + 1), HAP_DIGEST_PRIFIX_LEN - 1, (&readLen), sizeof(int)) != EOK) { in ComputeBlockHash() 68 ret = mbedtls_md_update(mdCtx, chunkContentPrefix, HAP_DIGEST_PRIFIX_LEN); in ComputeBlockHash() 102 if (rootHashLen < 0 || (((INT_MAX - HAP_DIGEST_PRIFIX_LEN) / count) < rootHashLen)) { in GetChunkSumCount() 176 unsigned char chunkContentPrefix[HAP_DIGEST_PRIFIX_LEN] = {HAP_SECOND_LEVEL_CHUNK_PREFIX, 0, 0, 0, 0}; in HapUpdateDigistHead() 177 if (memcpy_s((chunkContentPrefix + 1), HAP_DIGEST_PRIFIX_LEN - 1, (&readLen), sizeof(int)) != EOK) { in HapUpdateDigistHead() 180 ret = mbedtls_md_update(mdCtx, chunkContentPrefix, HAP_DIGEST_PRIFIX_LEN); in HapUpdateDigistHead() 313 int32_t sumOfChunksLen = HAP_DIGEST_PRIFIX_LEN + sumCount * rootHashLen; in VerifyIntegrityChunk() 321 int32_t offset = HAP_DIGEST_PRIFIX_LEN; in VerifyIntegrityChunk()
|
/base/security/appverify/interfaces/innerkits/appverify_lite/include/ |
H A D | app_verify_hap.h | 42 #define HAP_DIGEST_PRIFIX_LEN 5 macro
|
Completed in 2 milliseconds