Searched defs:full_hash (Results 1 - 12 of 12) sorted by relevance

/external/chromium/chrome/browser/safe_browsing/
H A Dsafe_browsing_util_unittest.cc285 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 Dsafe_browsing_store.h71 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 Dsafe_browsing_service.h79 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 Dsafe_browsing_util.h35 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 Dsafe_browsing_database_unittest.cc828 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 Dsafe_browsing_store_file.cc336 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 Dsafe_browsing_service.cc123 : 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 Dsafe_browsing_service_browsertest.cc262 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 Dsafe_browsing_util.cc151 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 Dsafe_browsing_database.cc92 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 Drolling_hash.h152 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 Dtdb.c175 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...]

Completed in 56 milliseconds