Searched refs:hasher (Results 1 – 10 of 10) sorted by relevance
/system/bt/gd/hci/ |
D | address_with_type_test.cc | 38 struct std::hash<bluetooth::hci::AddressWithType> hasher; in TEST() local 39 EXPECT_EQ(hasher(address_with_type_1), hasher(address_with_type_2)); in TEST() 52 struct std::hash<AddressWithType> hasher; in TEST() local 53 …EXPECT_NE(hasher(address_with_type), hasher(AddressWithType(Address::kEmpty, AddressType::PUBLIC_I… in TEST() 63 struct std::hash<bluetooth::hci::AddressWithType> hasher; in TEST() local 64 EXPECT_NE(hasher(address_with_type_1), hasher(address_with_type_2)); in TEST()
|
D | address_unittest.cc | 210 struct std::hash<bluetooth::hci::Address> hasher; in TEST() local 211 ASSERT_EQ(hasher(addr1), hasher(addr2)); in TEST() 222 struct std::hash<Address> hasher; in TEST() local 223 ASSERT_NE(hasher(addr1), hasher(Address::kEmpty)); in TEST() 228 struct std::hash<Address> hasher; in TEST() local 229 ASSERT_NE(hasher(addr1), hasher(Address::kAny)); in TEST() 233 struct std::hash<Address> hasher; in TEST() local 234 ASSERT_NE(hasher(Address::kEmpty), hasher(Address::kAny)); in TEST()
|
/system/update_engine/scripts/update_payload/ |
D | payload.py | 38 def _ReadInt(file_obj, size, is_unsigned, hasher=None): argument 58 common.Read(file_obj, size, hasher=hasher))[0] 82 def ReadFromPayload(self, payload_file, hasher=None): argument 100 magic = common.Read(payload_file, len(self._MAGIC), hasher=hasher) 105 hasher=hasher) 107 hasher=hasher) 116 hasher=hasher) 169 hasher=self.manifest_hasher)
|
D | common.py | 120 def Read(file_obj, length, offset=None, hasher=None): argument 153 if hasher: 154 hasher.update(data)
|
D | applier.py | 71 hasher = hashlib.sha256() 81 hasher.update(data) 88 actual_hash = hasher.digest()
|
D | checker.py | 1147 offset=self.payload.data_offset, hasher=payload_hasher)
|
/system/memory/libmemunreachable/ |
D | Leak.h | 45 std::hash<T> hasher; 46 seed ^= hasher(v) + 0x9e3779b9 + (seed << 6) + (seed >> 2);
|
/system/extras/verity/include/verity/ |
D | build_verity_tree.h | 29 HashTreeBuilder* hasher,
|
/system/core/fs_mgr/libfs_avb/ |
D | fs_avb.cpp | 56 Hasher hasher; in VerifyVbmetaDigest() local 58 hasher.update(vbmeta.data(), vbmeta.size()); in VerifyVbmetaDigest() 62 bool matched = (memcmp(hasher.finalize(), expected_digest, Hasher::DIGEST_SIZE) == 0); in VerifyVbmetaDigest() 72 Hasher hasher; in CalculateVbmetaDigest() local 74 hasher.update(vbmeta.data(), vbmeta.size()); in CalculateVbmetaDigest() 79 digest = BytesToHex(hasher.finalize(), Hasher::DIGEST_SIZE); in CalculateVbmetaDigest()
|
/system/update_engine/payload_generator/ |
D | delta_diff_utils.cc | 884 HashCalculator hasher; in InitializePartitionInfo() local 885 TEST_AND_RETURN_FALSE(hasher.UpdateFile(part.path, part.size) == in InitializePartitionInfo() 887 TEST_AND_RETURN_FALSE(hasher.Finalize()); in InitializePartitionInfo() 888 const brillo::Blob& hash = hasher.raw_hash(); in InitializePartitionInfo()
|