HomeSort by relevance Sort by last modified time
    Searched defs:full_hash (Results 1 - 16 of 16) sorted by null

  /external/chromium/chrome/browser/safe_browsing/
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.full_hash, b.full_hash.full_hash
    [all...]
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)));
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);
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);
    [all...]
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);
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) {
330 SBFullHash full_hash; local
555 const std::string full_hash = "12345678902234567890323456789012"; local
610 const std::string full_hash = "12345678902234567890323456789012"; local
    [all...]
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_org/chrome/browser/safe_browsing/
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.
343 EXPECT_EQ(0, memcmp(hash_in.data(), hash_out.full_hash, sizeof(SBFullHash)));
safe_browsing_store.h 75 SBFullHash full_hash; member in struct:SBAddFullHash
80 full_hash(h) {
86 : chunk_id(id), received(r), full_hash(h) {}
88 SBAddFullHash() : chunk_id(), received(), full_hash() {}
91 SBPrefix GetAddPrefix() const { return full_hash.prefix; }
97 SBFullHash full_hash; member in struct:SBSubFullHash
100 : chunk_id(id), add_chunk_id(add_id), full_hash(h) {}
101 SBSubFullHash() : chunk_id(), add_chunk_id(), full_hash() {}
104 SBPrefix GetAddPrefix() const { return full_hash.prefix; }
127 return memcmp(a.full_hash.full_hash, b.full_hash.full_hash
    [all...]
safe_browsing_database_unittest.cc 836 SBFullHashResult full_hash; local
837 full_hash.hash = Sha256Hash("www.evil.com/phishing.html");
838 full_hash.list_name = safe_browsing_util::kMalwareList;
839 full_hash.add_chunk_id = 1;
842 results.push_back(full_hash);
844 full_hash.hash = Sha256Hash("www.evil.com/malware.html");
845 results.push_back(full_hash);
    [all...]
database_manager.cc 220 const std::string& full_hash,
223 DCHECK(!full_hash.empty());
224 if (!enabled_ || !enable_download_protection_ || full_hash.empty())
230 1, safe_browsing_util::StringToSBFullHash(full_hash));
937 SBFullHash full_hash = check->full_hashes[0]; local
    [all...]
safe_browsing_util.h 34 char full_hash[32]; member in union:SBFullHash
39 return memcmp(lhash.full_hash, rhash.full_hash, sizeof(SBFullHash)) == 0;
43 return memcmp(lhash.full_hash, rhash.full_hash, sizeof(SBFullHash)) < 0;
222 void SetFullHashAt(int index, const SBFullHash& full_hash);
safe_browsing_database.cc 123 SBFullHash full_hash; local
124 crypto::SHA256HashString(hosts[i] + path, &full_hash,
125 sizeof(full_hash));
126 full_hashes->push_back(full_hash);
135 &full_hash, sizeof(full_hash));
136 full_hashes->push_back(full_hash);
200 if (*piter < hiter->full_hash.prefix) {
202 } else if (hiter->full_hash.prefix < *piter) {
216 result.hash = hiter->full_hash;
744 SBFullHash full_hash; local
818 const SBFullHash full_hash = entry->FullHashAt(i); local
892 const SBFullHash full_hash = entry->FullHashAt(i); local
    [all...]
safe_browsing_service_browsertest.cc 333 SBFullHashResult* full_hash) {
337 crypto::SHA256HashString(host + path, &full_hash->hash,
339 full_hash->list_name = list_name;
340 full_hash->add_chunk_id = add_chunk_id;
346 SBFullHashResult* full_hash) {
347 full_hash->hash = safe_browsing_util::StringToSBFullHash(full_digest);
348 full_hash->list_name = list_name;
349 full_hash->add_chunk_id = add_chunk_id;
381 // to response with |full_hash| for get full hash request.
382 void SetupResponseForUrl(const GURL& url, const SBFullHashResult& full_hash) {
666 const std::string full_hash = "12345678902234567890323456789012"; local
719 const std::string full_hash = "12345678902234567890323456789012"; local
    [all...]
  /external/chromium_org/media/base/
audio_hash_unittest.cc 125 AudioHash full_hash; local
126 full_hash.Update(bus_one_.get(), bus_one_->frames());
140 EXPECT_EQ(full_hash.ToString(), half_hash.ToString());
  /external/e2fsprogs/lib/ext2fs/
tdb.c 175 u32 full_hash; /* the full 32 bit hash of the key */ member in struct:list_struct
    [all...]

Completed in 2844 milliseconds