Searched refs:hash_bin (Results 1 – 3 of 3) sorted by relevance
15 std::string hash_bin = base::SHA1HashString(str); in Hash32Bit() local16 DCHECK_EQ(20U, hash_bin.length()); in Hash32Bit()18 uint32 hash32 = ((hash_bin[0] & 0xFF) << 24) | in Hash32Bit()19 ((hash_bin[1] & 0xFF) << 16) | in Hash32Bit()20 ((hash_bin[2] & 0xFF) << 8) | in Hash32Bit()21 (hash_bin[3] & 0xFF); in Hash32Bit()
509 std::string hash_bin = base::SHA1HashString(str); in Hash64Bit() local510 DCHECK_EQ(20U, hash_bin.length()); in Hash64Bit()512 uint64 hash64 = (((static_cast<uint64>(hash_bin[0])) & 0xFF) << 56) | in Hash64Bit()513 (((static_cast<uint64>(hash_bin[1])) & 0xFF) << 48) | in Hash64Bit()514 (((static_cast<uint64>(hash_bin[2])) & 0xFF) << 40) | in Hash64Bit()515 (((static_cast<uint64>(hash_bin[3])) & 0xFF) << 32) | in Hash64Bit()516 (((static_cast<uint64>(hash_bin[4])) & 0xFF) << 24) | in Hash64Bit()517 (((static_cast<uint64>(hash_bin[5])) & 0xFF) << 16) | in Hash64Bit()518 (((static_cast<uint64>(hash_bin[6])) & 0xFF) << 8) | in Hash64Bit()519 ((static_cast<uint64>(hash_bin[7])) & 0xFF); in Hash64Bit()
92 std::string hash_bin = base::SHA1HashString(url_buffer); in GetUrlHash() local98 for (size_t i = 0; i < hash_bin.size(); ++i) { in GetUrlHash()101 unsigned char hash_byte = static_cast<unsigned char>(hash_bin[i]); in GetUrlHash()