Home
last modified time | relevance | path

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

/system/update_engine/scripts/update_payload/
Dpayload.py34 def _ReadInt(file_obj, size, is_unsigned, hasher=None): argument
54 common.Read(file_obj, size, hasher=hasher))[0]
78 def ReadFromPayload(self, payload_file, hasher=None): argument
96 magic = common.Read(payload_file, len(self._MAGIC), hasher=hasher)
101 hasher=hasher)
103 hasher=hasher)
112 hasher=hasher)
158 hasher=self.manifest_hasher)
Dcommon.py124 def Read(file_obj, length, offset=None, hasher=None): argument
157 if hasher:
158 hasher.update(data)
Dapplier.py73 hasher = hashlib.sha256()
83 hasher.update(data)
90 actual_hash = hasher.digest()
Dchecker.py1277 offset=self.payload.data_offset, hasher=payload_hasher)
/system/core/libmemunreachable/
DLeak.h45 std::hash<T> hasher;
46 seed ^= hasher(v) + 0x9e3779b9 + (seed << 6) + (seed >> 2);
/system/core/fs_mgr/libfs_avb/
Dfs_avb.cpp54 Hasher hasher; in VerifyVbmetaDigest() local
56 hasher.update(vbmeta.data(), vbmeta.size()); in VerifyVbmetaDigest()
60 bool matched = (memcmp(hasher.finalize(), expected_digest, Hasher::DIGEST_SIZE) == 0); in VerifyVbmetaDigest()
70 Hasher hasher; in CalculateVbmetaDigest() local
72 hasher.update(vbmeta.data(), vbmeta.size()); in CalculateVbmetaDigest()
77 digest = BytesToHex(hasher.finalize(), Hasher::DIGEST_SIZE); in CalculateVbmetaDigest()
/system/extras/verity/include/verity/
Dbuild_verity_tree.h29 HashTreeBuilder* hasher,
/system/update_engine/payload_generator/
Ddelta_diff_utils.cc1042 HashCalculator hasher; in InitializePartitionInfo() local
1043 TEST_AND_RETURN_FALSE(hasher.UpdateFile(part.path, part.size) == in InitializePartitionInfo()
1045 TEST_AND_RETURN_FALSE(hasher.Finalize()); in InitializePartitionInfo()
1046 const brillo::Blob& hash = hasher.raw_hash(); in InitializePartitionInfo()