/external/chromium/chrome/browser/safe_browsing/ |
H A D | safe_browsing_util_unittest.cc | 285 SBFullHashResult full_hash; local 287 &full_hash.hash, 290 full_hashes.push_back(full_hash); 339 // 31 chars plus the last \0 as full_hash. 344 EXPECT_EQ(0, memcmp(hash_in.data(), hash_out.full_hash, sizeof(SBFullHash)));
|
H A D | safe_browsing_store.h | 71 SBFullHash full_hash; member in struct:SBAddFullHash 76 full_hash(h) { 82 : chunk_id(id), received(r), full_hash(h) {} 84 SBAddFullHash() : chunk_id(), received(), full_hash() {} 87 SBPrefix GetAddPrefix() const { return full_hash.prefix; } 93 SBFullHash full_hash; member in struct:SBSubFullHash 96 : chunk_id(id), add_chunk_id(add_id), full_hash(h) {} 97 SBSubFullHash() : chunk_id(), add_chunk_id(), full_hash() {} 100 SBPrefix GetAddPrefix() const { return full_hash.prefix; } 123 return memcmp(a.full_hash [all...] |
H A D | safe_browsing_service.h | 79 scoped_ptr<SBFullHash> full_hash; member in struct:SafeBrowsingService::SafeBrowsingCheck 162 // Check if the prefix for |full_hash| is in safebrowsing binhash add lists. 164 virtual bool CheckDownloadHash(const std::string& full_hash, Client* client);
|
H A D | safe_browsing_util.h | 35 char full_hash[32]; member in union:SBFullHash 40 return memcmp(lhash.full_hash, rhash.full_hash, sizeof(SBFullHash)) == 0; 44 return memcmp(lhash.full_hash, rhash.full_hash, sizeof(SBFullHash)) < 0; 199 void SetFullHashAt(int index, const SBFullHash& full_hash);
|
H A D | safe_browsing_database_unittest.cc | 828 SBFullHashResult full_hash; local 829 full_hash.hash = Sha256Hash("www.evil.com/phishing.html"); 830 full_hash.list_name = safe_browsing_util::kMalwareList; 831 full_hash.add_chunk_id = 1; 834 results.push_back(full_hash); 836 full_hash.hash = Sha256Hash("www.evil.com/malware.html"); 837 results.push_back(full_hash); 932 if (iter->full_hash.prefix == key) {
|
H A D | safe_browsing_store_file.cc | 336 const SBFullHash& full_hash) { 337 add_hashes_.push_back(SBAddFullHash(chunk_id, receive_time, full_hash)); 349 const SBFullHash& full_hash) { 350 sub_hashes_.push_back(SBSubFullHash(chunk_id, add_chunk_id, full_hash)); 334 WriteAddHash(int32 chunk_id, base::Time receive_time, const SBFullHash& full_hash) argument 348 WriteSubHash(int32 chunk_id, int32 add_chunk_id, const SBFullHash& full_hash) argument
|
H A D | safe_browsing_service.cc | 123 : full_hash(NULL), 137 DCHECK(!check.full_hash.get()); 144 } else if (check.full_hash.get()) { 146 safe_browsing_util::SBFullHashToString(*check.full_hash), 226 bool SafeBrowsingService::CheckDownloadHash(const std::string& full_hash, argument 229 DCHECK(!full_hash.empty()); 230 if (!enabled_ || !enable_download_protection_ || full_hash.empty()) 236 check->full_hash.reset(new SBFullHash); 237 safe_browsing_util::StringToSBFullHash(full_hash, check->full_hash [all...] |
H A D | safe_browsing_service_browsertest.cc | 262 SBFullHashResult* full_hash) { 266 crypto::SHA256HashString(host + path, &full_hash->hash, 268 full_hash->list_name = list_name; 269 full_hash->add_chunk_id = add_chunk_id; 275 SBFullHashResult* full_hash) { 276 safe_browsing_util::StringToSBFullHash(full_digest, &full_hash->hash); 277 full_hash->list_name = list_name; 278 full_hash->add_chunk_id = add_chunk_id; 310 // to response with |full_hash| for get full hash request. 311 void SetupResponseForUrl(const GURL& url, const SBFullHashResult& full_hash) { argument 259 GenUrlFullhashResult(const GURL& url, const std::string& list_name, int add_chunk_id, SBFullHashResult* full_hash) argument 272 GenDigestFullhashResult(const std::string& full_digest, const std::string& list_name, int add_chunk_id, SBFullHashResult* full_hash) argument 330 SBFullHash full_hash; local 457 CheckDownloadHash(const std::string& full_hash) argument 471 CheckDownloadHashOnIOThread(const std::string& full_hash) argument 555 const std::string full_hash = "12345678902234567890323456789012"; local 610 const std::string full_hash = "12345678902234567890323456789012"; local [all...] |
H A D | safe_browsing_util.cc | 151 void SBEntry::SetFullHashAt(int index, const SBFullHash& full_hash) { argument 155 add_full_hashes_[index] = full_hash; 157 sub_full_hashes_[index].prefix = full_hash; 440 key.full_hash, 524 memcpy(hash_out->full_hash, hash_in.data(), crypto::SHA256_LENGTH); 528 DCHECK_EQ(static_cast<size_t>(crypto::SHA256_LENGTH), sizeof(hash.full_hash)); 529 return std::string(hash.full_hash, sizeof(hash.full_hash));
|
H A D | safe_browsing_database.cc | 92 SBFullHash full_hash; local 93 crypto::SHA256HashString(hosts[i] + path, &full_hash, 94 sizeof(full_hash)); 95 full_hashes->push_back(full_hash); 104 &full_hash, sizeof(full_hash)); 105 full_hashes->push_back(full_hash); 141 if (*piter < hiter->full_hash.prefix) { 143 } else if (hiter->full_hash.prefix < *piter) { 155 result.hash = hiter->full_hash; 756 const SBFullHash full_hash = entry->FullHashAt(i); local 829 const SBFullHash full_hash = entry->FullHashAt(i); local [all...] |
/external/chromium/sdch/open-vcdiff/src/ |
H A D | rolling_hash.h | 152 static uint32_t RemoveFirstByteFromHash(uint32_t full_hash, argument 154 return RollingHashUtil::ModBase(full_hash + remove_table_[first_byte]);
|
/external/e2fsprogs/lib/ext2fs/ |
H A D | tdb.c | 175 u32 full_hash; /* the full 32 bit hash of the key */ member in struct:list_struct 2924 tdb->travlocks.hash = BUCKET(rec.full_hash); 2963 "key_len=%d data_len=%d full_hash=0x%x magic=0x%x\n", 2965 rec.full_hash, rec.magic); 3122 if (!TDB_DEAD(r) && hash==r->full_hash 3201 tdb_unlock(tdb, BUCKET(rec.full_hash), F_RDLCK); 3241 tdb_unlock(tdb, BUCKET(rec.full_hash), F_RDLCK); 3258 tdb_unlock(tdb, BUCKET(rec.full_hash), F_RDLCK); 3285 if (tdb_ofs_read(tdb, TDB_HASH_TOP(rec->full_hash), &i) == -1) 3293 last_ptr = TDB_HASH_TOP(rec->full_hash); [all...] |