Searched refs:rootHashLen (Results 1 – 2 of 2) sorted by relevance
/ohos5.0/base/security/appverify/interfaces/innerkits/appverify_lite/src/ |
H A D | app_verify_hap.c | 102 if (rootHashLen < 0 || (((INT_MAX - HAP_DIGEST_PRIFIX_LEN) / count) < rootHashLen)) { in GetChunkSumCount() 103 LOG_ERROR("overflow count: %d, chunkDigestLen: %d", count, rootHashLen); in GetChunkSumCount() 116 int32_t rootHashLen = GetHashUnitLen(digestAlgorithm); in ComputeDigestsWithOptionalBlock() local 117 LOG_INFO("rootHashLen %d", rootHashLen); in ComputeDigestsWithOptionalBlock() 118 if (rootHashLen <= 0 || rootHashLen > MAX_HASH_SIZE) { in ComputeDigestsWithOptionalBlock() 144 outbuf = (unsigned char *)APPV_MALLOC(rootHashLen); in ComputeDigestsWithOptionalBlock() 148 HapPutData(fianlDigest, 0, outbuf, rootHashLen); in ComputeDigestsWithOptionalBlock() 149 (void)memset_s(outbuf, rootHashLen, 0, rootHashLen); in ComputeDigestsWithOptionalBlock() 302 int32_t rootHashLen = GetHashUnitLen(digestAlgorithm); in VerifyIntegrityChunk() local 303 if (rootHashLen < 0) { in VerifyIntegrityChunk() [all …]
|
H A D | app_verify.c | 346 int32_t rootHashLen = GetHashUnitLen(content->algId); in VerifyRawHash() local 347 if (!CreateHapBuffer(&actualDigest, rootHashLen)) { in VerifyRawHash()
|