Home
last modified time | relevance | path

Searched refs:sha256Ctx (Results 1 - 2 of 2) sorted by relevance

/base/update/updater/services/diffpatch/
H A Ddiffpatch.cpp82 SHA256_CTX sha256Ctx; in PatchMapFile() local
83 SHA256_Init(&sha256Ctx); in PatchMapFile()
84 SHA256_Update(&sha256Ctx, buffer.buffer, buffer.length); in PatchMapFile()
86 SHA256_Final(digest.data(), &sha256Ctx); in PatchMapFile()
/base/update/updater/test/unittest/package/
H A Dpkg_manager_unittest.cpp388 SHA256_CTX sha256Ctx = {}; in CheckDataIntegrityLz4() local
389 SHA256_Init(&sha256Ctx); in CheckDataIntegrityLz4()
390 SHA256_Update(&sha256Ctx, static_cast<const uint8_t*>(mappedData), lz4Info.fileInfo.packedSize + 4); in CheckDataIntegrityLz4()
391 SHA256_Final(digest.data(), &sha256Ctx); in CheckDataIntegrityLz4()
500 SHA256_CTX sha256Ctx = {}; in CheckDataIntegrityGzip() local
501 SHA256_Init(&sha256Ctx); in CheckDataIntegrityGzip()
502 SHA256_Update(&sha256Ctx, reinterpret_cast<const uint8_t*>(mappedData) + offset, zipInfo.fileInfo.packedSize); in CheckDataIntegrityGzip()
503 SHA256_Final(digest.data(), &sha256Ctx); in CheckDataIntegrityGzip()
567 SHA256_CTX sha256Ctx = {}; in TestCompressBuffer() local
568 SHA256_Init(&sha256Ctx); in TestCompressBuffer()
[all...]

Completed in 2 milliseconds