Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / components / proximity_auth / cryptauth / cryptauth_enrollment_utils.h
blob82730a39cde3141b2dda0594c6dada9d94577bc9
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef COMPONENTS_PROXIMITY_AUTH_CRYPT_AUTH_ENROLLMENT_UTILS_H
6 #define COMPONENTS_PROXIMITY_AUTH_CRYPT_AUTH_ENROLLMENT_UTILS_H
8 #include <stdint.h>
9 #include <string>
11 namespace proximity_auth {
13 // Calculates an id for the specified user on the specified device.
14 std::string CalculateDeviceUserId(const std::string& device_id,
15 const std::string& user_id);
17 // Hashes |string| to an int64 value. These int64 hashes are used to fill the
18 // GcmDeviceInfo proto to upload to CryptAuth.
19 int64_t HashStringToInt64(const std::string& string);
21 } // namespace proximity_auth
23 #endif // COMPONENTS_PROXIMITY_AUTH_CRYPT_AUTH_ENROLLMENT_UTILS_H