Home
last modified time | relevance | path

Searched refs:hashes (Results 1 – 25 of 130) sorted by relevance

123456

/external/chromium_org/third_party/smhasher/src/
DKeysetTest.h30 pfHash hash, std::vector<hashtype> & hashes ) in CombinationKeygenRecurse() argument
42 hashes.push_back(h); in CombinationKeygenRecurse()
47 CombinationKeygenRecurse(key,len+1,maxlen,blocks,blockcount,hash,hashes); in CombinationKeygenRecurse()
59 std::vector<hashtype> hashes; in CombinationKeyTest() local
63 CombinationKeygenRecurse<hashtype>(key,0,maxlen,blocks,blockcount,hash,hashes); in CombinationKeyTest()
67 printf("%d keys\n",(int)hashes.size()); in CombinationKeyTest()
73 result &= TestHashList<hashtype>(hashes,testColl,testDist,drawDiagram); in CombinationKeyTest()
85 …enRecurse ( pfHash hash, uint32_t * blocks, int blockcount, int k, std::vector<hashtype> & hashes ) in PermutationKeygenRecurse() argument
93 hashes.push_back(h); in PermutationKeygenRecurse()
102 PermutationKeygenRecurse(hash,blocks,blockcount,k+1,hashes); in PermutationKeygenRecurse()
[all …]
DStats.h42 int FindCollisions ( std::vector<hashtype> & hashes, in FindCollisions() argument
48 std::sort(hashes.begin(),hashes.end()); in FindCollisions()
50 for(size_t i = 1; i < hashes.size(); i++) in FindCollisions()
52 if(hashes[i] == hashes[i-1]) in FindCollisions()
58 collisions.insert(hashes[i]); in FindCollisions()
106 double TestDistribution ( std::vector<hashtype> & hashes, bool drawDiagram ) in TestDistribution() argument
119 while(double(hashes.size()) / double(1 << maxwidth) < 5.0) in TestDistribution()
138 for(size_t j = 0; j < hashes.size(); j++) in TestDistribution()
140 hashtype & hash = hashes[j]; in TestDistribution()
154 double n = calcScore(&bins[0],bincount,(int)hashes.size()); in TestDistribution()
[all …]
DKeysetTest.cpp18 uint8_t * hashes = new uint8_t[hashbytes * 256]; in VerificationTest() local
22 memset(hashes,0,hashbytes*256); in VerificationTest()
32 hash(key,i,256-i,&hashes[i*hashbytes]); in VerificationTest()
37 hash(hashes,hashbytes*256,0,final); in VerificationTest()
45 delete [] hashes; in VerificationTest()
303 std::vector<uint128_t> hashes; in ReportCollisions() local
305 HashCallback<uint128_t> c(hash,hashes); in ReportCollisions()
309 printf("%d hashes\n",(int)hashes.size()); in ReportCollisions()
315 FindCollisions(hashes,collisions,1000); in ReportCollisions()
DBitslice.cpp54 void Bitslice ( std::vector<hashtype> & hashes, slice_vec & slices ) in Bitslice() argument
58 const int slicelen = ((int)hashes.size() + 31) / 32; in Bitslice()
72 for(int i = 0; i < (int)hashes.size(); i++) in Bitslice()
74 int b = getbit(hashes[i],j); in Bitslice()
/external/chromium_org/third_party/WebKit/Source/devtools/scripts/
Ddevtools_file_hashes.py39 def save_hashes(hashes_file_path, hashes): argument
42 json.dump(hashes, hashes_file, indent=4, separators=(",", ": "))
51 hashes = json.load(hashes_file)
54 return hashes
65 hashes = load_hashes(hash_file_path)
69 if calculate_file_hash(file_path) != hashes.get(file_name, ""):
75 hashes = {}
78 hashes[file_name] = calculate_file_hash(file_path)
79 save_hashes(hash_file_path, hashes)
/external/chromium_org/net/http/
Dhttp_security_headers_unittest.cc135 HashValueVector hashes; in TestBogusPinsHeaders() local
148 &include_subdomains, &hashes)); in TestBogusPinsHeaders()
150 &include_subdomains, &hashes)); in TestBogusPinsHeaders()
152 &include_subdomains, &hashes)); in TestBogusPinsHeaders()
154 &include_subdomains, &hashes)); in TestBogusPinsHeaders()
156 &include_subdomains, &hashes)); in TestBogusPinsHeaders()
158 &include_subdomains, &hashes)); in TestBogusPinsHeaders()
160 &include_subdomains, &hashes)); in TestBogusPinsHeaders()
162 &include_subdomains, &hashes)); in TestBogusPinsHeaders()
164 &include_subdomains, &hashes)); in TestBogusPinsHeaders()
[all …]
Dtransport_security_persister_unittest.cc171 net::HashValueVector hashes; in TEST_F() local
173 EXPECT_FALSE(domain_state.CheckPublicKeyPins(hashes, &failure_log)); in TEST_F()
179 EXPECT_FALSE(domain_state.CheckPublicKeyPins(hashes, &failure_log)); in TEST_F()
181 hashes.push_back(sha1); in TEST_F()
182 EXPECT_TRUE(domain_state.CheckPublicKeyPins(hashes, &failure_log)); in TEST_F()
184 hashes[0].data()[0] = '2'; in TEST_F()
185 EXPECT_FALSE(domain_state.CheckPublicKeyPins(hashes, &failure_log)); in TEST_F()
Dtransport_security_state.cc47 std::string HashesToBase64String(const HashValueVector& hashes) { in HashesToBase64String() argument
49 for (size_t i = 0; i != hashes.size(); ++i) { in HashesToBase64String()
52 str += hashes[i].ToString(); in HashesToBase64String()
713 const HashValueVector& hashes) { in AddHPKP() argument
728 domain_state.pkp.spki_hashes = hashes; in AddHPKP()
771 const HashValueVector& hashes, in CheckPublicKeyPinsImpl() argument
775 return dynamic_state.CheckPublicKeyPins(hashes, failure_log); in CheckPublicKeyPinsImpl()
779 return static_state.CheckPublicKeyPins(hashes, failure_log); in CheckPublicKeyPinsImpl()
876 const HashValueVector& hashes, std::string* failure_log) const { in CheckPublicKeyPins() argument
880 if (hashes.empty()) { in CheckPublicKeyPins()
[all …]
Dhttp_security_headers.cc120 HashValueVector* hashes) { in ParseAndAppendPin() argument
135 hashes->push_back(hash); in ParseAndAppendPin()
280 HashValueVector* hashes) { in ParseHPKPHeader() argument
330 for (HashValueVector::const_iterator j = hashes->begin(); in ParseHPKPHeader()
331 j != hashes->end(); ++j) { in ParseHPKPHeader()
339 hashes->push_back(*i); in ParseHPKPHeader()
/external/jemalloc/test/unit/
Dhash.c67 VARIABLE_ARRAY(uint8_t, hashes, hashbytes * 256); in hash_variant_verify()
73 memset(hashes, 0, sizeof(hashes)); in hash_variant_verify()
86 memcpy(&hashes[i*hashbytes], &out, hashbytes); in hash_variant_verify()
91 memcpy(&hashes[i*hashbytes], out, hashbytes); in hash_variant_verify()
96 memcpy(&hashes[i*hashbytes], out, hashbytes); in hash_variant_verify()
105 uint32_t out = hash_x86_32(hashes, hashbytes*256, 0); in hash_variant_verify()
110 hash_x86_128(hashes, hashbytes*256, 0, out); in hash_variant_verify()
115 hash_x64_128(hashes, hashbytes*256, 0, out); in hash_variant_verify()
/external/chromium_org/extensions/browser/
Dcomputed_hashes.cc81 std::vector<std::string>* hashes = &(data_[relative_path].second); in InitFromFile() local
88 hashes->push_back(std::string()); in InitFromFile()
89 std::string* decoded = &hashes->back(); in InitFromFile()
91 hashes->clear(); in InitFromFile()
101 std::vector<std::string>* hashes) { in GetHashes() argument
123 *hashes = info.second; in GetHashes()
135 const std::vector<std::string>& hashes) { in AddHashes() argument
144 for (std::vector<std::string>::const_iterator i = hashes.begin(); in AddHashes()
145 i != hashes.end(); in AddHashes()
172 std::vector<std::string>* hashes) { in ComputeHashesForContent() argument
[all …]
Dcomputed_hashes.h35 std::vector<std::string>* hashes);
53 const std::vector<std::string>& hashes);
67 std::vector<std::string>* hashes);
/external/openssl/crypto/x509/
Dby_dir.c86 STACK_OF(BY_DIR_HASH) *hashes;
191 if (ent->hashes) in by_dir_entry_free()
192 sk_BY_DIR_HASH_pop_free(ent->hashes, by_dir_hash_free); in by_dir_entry_free()
252 ent->hashes = sk_BY_DIR_HASH_new(by_dir_hash_cmp); in add_cert_dir()
254 if (!ent->dir || !ent->hashes) in add_cert_dir()
336 if (type == X509_LU_CRL && ent->hashes) in get_cert_by_subject()
340 idx = sk_BY_DIR_HASH_find(ent->hashes, &htmp); in get_cert_by_subject()
343 hent = sk_BY_DIR_HASH_value(ent->hashes, idx); in get_cert_by_subject()
439 idx = sk_BY_DIR_HASH_find(ent->hashes, &htmp); in get_cert_by_subject()
442 sk_BY_DIR_HASH_value(ent->hashes, idx); in get_cert_by_subject()
[all …]
/external/oprofile/daemon/
Dopd_cookie.c100 static struct list_head hashes[HASH_SIZE]; variable
142 list_for_each(pos, &hashes[hash]) { in find_cookie()
150 list_add(&entry->list, &hashes[hash]); in find_cookie()
165 list_for_each(pos, &hashes[hash]) { in is_cookie_ignored()
172 list_add(&entry->list, &hashes[hash]); in is_cookie_ignored()
190 list_for_each(pos, &hashes[hash]) { in verbose_cookie()
208 list_init(&hashes[i]); in cookie_init()
Dopd_anon.c43 static struct list_head hashes[HASH_SIZE]; variable
88 list_for_each_safe(pos, pos2, &hashes[hash]) { in clear_anon_maps()
118 list_add_tail(&m->list, &hashes[hash]); in add_anon_mapping()
190 list_for_each(pos, &hashes[hash]) { in find_anon_mapping()
211 list_add(&entry->list, &hashes[hash]); in find_anon_mapping()
225 list_init(&hashes[i]); in anon_init()
/external/chromium_org/third_party/boringssl/src/crypto/x509/
Dby_dir.c78 STACK_OF(BY_DIR_HASH) *hashes;
183 if (ent->hashes) in by_dir_entry_free()
184 sk_BY_DIR_HASH_pop_free(ent->hashes, by_dir_hash_free); in by_dir_entry_free()
244 ent->hashes = sk_BY_DIR_HASH_new(by_dir_hash_cmp); in add_cert_dir()
246 if (!ent->dir || !ent->hashes) in add_cert_dir()
334 if (type == X509_LU_CRL && ent->hashes) in get_cert_by_subject()
338 if (sk_BY_DIR_HASH_find(ent->hashes, &idx, &htmp)) in get_cert_by_subject()
340 hent = sk_BY_DIR_HASH_value(ent->hashes, idx); in get_cert_by_subject()
437 if (sk_BY_DIR_HASH_find(ent->hashes, &idx, &htmp)) in get_cert_by_subject()
438 hent = sk_BY_DIR_HASH_value(ent->hashes, idx); in get_cert_by_subject()
[all …]
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/cms/
DCMSSignedData.java65 private Map hashes; field in CMSSignedData
98 Map hashes, in CMSSignedData() argument
102 this(hashes, CMSUtils.readContentInfo(sigBlock)); in CMSSignedData()
165 Map hashes, in CMSSignedData() argument
169 this.hashes = hashes; in CMSSignedData()
239 if (hashes == null) in getSignerInfos()
245 Object obj = hashes.keySet().iterator().next(); in getSignerInfos()
246 …h = (obj instanceof String) ? (byte[])hashes.get(info.getDigestAlgorithm().getAlgorithm().getId())… in getSignerInfos()
/external/jemalloc/src/
Dckh.c73 size_t hashes[2], bucket, cell; in ckh_isearch() local
77 ckh->hash(key, hashes); in ckh_isearch()
80 bucket = hashes[0] & ((ZU(1) << ckh->lg_curbuckets) - 1); in ckh_isearch()
86 bucket = hashes[1] & ((ZU(1) << ckh->lg_curbuckets) - 1); in ckh_isearch()
129 size_t hashes[2], bucket, tbucket; in ckh_evict_reloc_insert() local
158 ckh->hash(key, hashes); in ckh_evict_reloc_insert()
159 tbucket = hashes[1] & ((ZU(1) << ckh->lg_curbuckets) - 1); in ckh_evict_reloc_insert()
161 tbucket = hashes[0] & ((ZU(1) << ckh->lg_curbuckets) in ckh_evict_reloc_insert()
196 size_t hashes[2], bucket; in ckh_try_insert() local
200 ckh->hash(key, hashes); in ckh_try_insert()
[all …]
/external/chromium_org/mojo/tools/pylib/
Dtransitive_hash.py52 hashes = set()
57 if current_hash in hashes:
61 hashes.add(current_hash)
63 return sha256('|'.join(sorted(hashes))).hexdigest()
/external/chromium_org/chrome/browser/extensions/activity_log/
Dgenerate_ad_network_hashes.py75 hashes = ['"%s"' % sha256(line.strip()).hexdigest()[:16].upper()
79 hashes.sort()
80 ad_networks = ',\n '.join(hashes)
/external/skia/experimental/benchtools/
Drebase.py45 hashes = HA_RE_COMPILED.findall(
48 return hashes
206 hashes = get_git_hashes()
207 short_hashes = [h[:7] for h in hashes]
210 hashes = hashes[:short_hashes.index(rebase_hash) + 1]
221 for h in reversed(hashes):
/external/chromium_org/chrome/browser/safe_browsing/
Dchunk.proto34 // Stores all SHA256 add or sub prefixes or full-length hashes. The number
35 // of hashes can be inferred from the length of the hashes string and the
37 optional bytes hashes = 4; field
Dprefix_set_unittest.cc407 std::vector<SBFullHash> hashes; in TEST_F() local
408 hashes.push_back(SBFullHashForString("one")); in TEST_F()
409 hashes.push_back(SBFullHashForString("two")); in TEST_F()
410 hashes.push_back(SBFullHashForString("three")); in TEST_F()
415 for (size_t i = 0; i < hashes.size(); ++i) { in TEST_F()
417 std::lower_bound(prefixes.begin(), prefixes.end(), hashes[i].prefix); in TEST_F()
418 if (iter != prefixes.end() && *iter == hashes[i].prefix) in TEST_F()
423 ASSERT_TRUE(builder.GetPrefixSet(hashes)->WriteFile(filename)); in TEST_F()
429 EXPECT_TRUE(prefix_set->Exists(hashes[0])); in TEST_F()
430 EXPECT_TRUE(prefix_set->Exists(hashes[1])); in TEST_F()
[all …]
/external/chromium_org/third_party/skia/experimental/benchtools/
Drebase.py42 hashes = HA_RE_COMPILED.findall(
45 return hashes
274 hashes = get_git_hashes()
275 short_hashes = [h[:7] for h in hashes]
281 extra_hash = hashes[short_hashes.index(extra_hash)]
282 hashes = hashes[:short_hashes.index(rebase_hash) + 1]
296 for h in reversed(hashes):
/external/chromium_org/third_party/WebKit/Source/devtools/scripts/jsdoc-validator/
Dbuild_jsdoc_validator_jar.py64 hashes = {}
68 hashes[file_name] = hash
70 hashes[file_name] = '0'
71 hashes[src_dir] = get_src_dir_hash(src_dir)
72 return hashes

123456