Home
last modified time | relevance | path

Searched refs:kSHA1Length (Results 1 – 22 of 22) sorted by relevance

/external/chromium_org/base/
Dsha1_win.cc22 return std::string(kSHA1Length, '\0'); in SHA1HashString()
29 return std::string(kSHA1Length, '\0'); in SHA1HashString()
35 return std::string(kSHA1Length, '\0'); in SHA1HashString()
44 return std::string(kSHA1Length, '\0'); in SHA1HashString()
54 return std::string(kSHA1Length, '\0'); in SHA1HashString()
57 if (hash_len != kSHA1Length) { in SHA1HashString()
59 << " should be " << kSHA1Length; in SHA1HashString()
60 return std::string(kSHA1Length, '\0'); in SHA1HashString()
Dsha1_unittest.cc23 for (size_t i = 0; i < base::kSHA1Length; i++) in TEST()
39 for (size_t i = 0; i < base::kSHA1Length; i++) in TEST()
54 for (size_t i = 0; i < base::kSHA1Length; i++) in TEST()
61 unsigned char output[base::kSHA1Length]; in TEST()
71 for (size_t i = 0; i < base::kSHA1Length; i++) in TEST()
79 unsigned char output[base::kSHA1Length]; in TEST()
89 for (size_t i = 0; i < base::kSHA1Length; i++) in TEST()
96 unsigned char output[base::kSHA1Length]; in TEST()
106 for (size_t i = 0; i < base::kSHA1Length; i++) in TEST()
Dsha1.h16 static const size_t kSHA1Length = 20; // Length in bytes of a SHA-1 hash. variable
/external/chromium_org/net/base/
Dhash_value.cc20 return memcmp(a, b, base::kSHA1Length); in CompareSHA1Hashes()
117 DCHECK_EQ(0u, array_byte_len % base::kSHA1Length); in IsSHA1HashInSortedArray()
118 const size_t arraylen = array_byte_len / base::kSHA1Length; in IsSHA1HashInSortedArray()
119 return NULL != bsearch(hash.data, array, arraylen, base::kSHA1Length, in IsSHA1HashInSortedArray()
/external/chromium_org/rlz/lib/
Dmachine_id.cc46 static const int kSizeWithoutChecksum = base::kSHA1Length + sizeof(int); in GetMachineIdImpl()
61 VERIFY(digest.size() == base::kSHA1Length); in GetMachineIdImpl()
68 id_binary[base::kSHA1Length + i] = static_cast<unsigned char>( in GetMachineIdImpl()
/external/chromium_org/net/quic/
Dport_suggester.cc15 unsigned char hash_bytes[base::kSHA1Length]; in PortSuggester()
29 unsigned char hash_bytes[base::kSHA1Length]; in SuggestPort()
/external/chromium_org/net/cert/
Dcert_verify_proc.cc355 static const uint8 kHashes[kNumHashes][base::kSHA1Length] = { in IsPublicKeyBlacklisted()
409 memcmp(j->data(), kHashes[i], base::kSHA1Length) == 0) { in IsPublicKeyBlacklisted()
468 uint8 public_key[base::kSHA1Length];
521 memcmp(j->data(), kLimits[i].public_key, base::kSHA1Length) == 0) { in HasNameConstraintsViolation()
Dcert_verify_proc_unittest.cc660 EXPECT_EQ(HexEncode(kSatvedaSPKIs[i], base::kSHA1Length), in TEST_F()
661 HexEncode(sha1_hashes[i].data(), base::kSHA1Length)); in TEST_F()
Dx509_certificate_unittest.cc431 uint8 hash[base::kSHA1Length]; in TEST()
/external/chromium_org/components/variations/
Dmetrics_util.cc15 unsigned char sha1_hash[base::kSHA1Length]; in HashName()
Dentropy_provider.cc77 unsigned char sha1_hash[base::kSHA1Length]; in GetEntropyForTrial()
/external/chromium_org/gpu/command_buffer/service/
Dprogram_cache.h26 static const size_t kHashLength = base::kSHA1Length;
/external/chromium_org/chrome/common/
Dpepper_permission_util.cc27 DCHECK_EQ(id_hash.length(), base::kSHA1Length); in HashHost()
/external/chromium_org/net/tools/quic/test_tools/
Dquic_test_utils.cc59 unsigned char hash[base::kSHA1Length]; in RandUint64()
/external/chromium_org/net/disk_cache/simple/
Dsimple_util.cc72 unsigned char sha_hash[base::kSHA1Length]; in GetEntryHashKey()
/external/chromium_org/chrome/app/
Dclient_util.cc84 unsigned char sha1_hash[base::kSHA1Length]; in GetPreReadPopulationAndGroup()
/external/chromium_org/chrome/browser/chromeos/policy/
Dconfiguration_policy_handler_chromeos.cc106 hash.size() != base::kSHA1Length) { in CheckPolicySettings()
/external/chromium_org/google_apis/cup/
Dclient_update_protocol.cc30 return base::kSHA1Length; in HashDigestSize()
/external/chromium_org/chrome/common/extensions/features/
Dsimple_feature.cc232 DCHECK(id_hash.length() == base::kSHA1Length); in HashExtensionId()
/external/chromium_org/chrome/browser/media/
Dmedia_capture_devices_dispatcher.cc97 DCHECK_EQ(origin_hash.length(), base::kSHA1Length); in IsOriginWhitelistedForScreenCapture()
/external/chromium_org/chrome/browser/safe_browsing/
Dsafe_browsing_database.cc1755 std::string hashed_ip_prefix(full_hash, base::kSHA1Length); in LoadIpBlacklist()
1756 size_t prefix_size = static_cast<uint8>(full_hash[base::kSHA1Length]); in LoadIpBlacklist()
Dsafe_browsing_database_unittest.cc49 hash[base::kSHA1Length] = static_cast<char>(prefix_size); in HashedIpPrefix()