blob: 82730a39cde3141b2dda0594c6dada9d94577bc9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COMPONENTS_PROXIMITY_AUTH_CRYPT_AUTH_ENROLLMENT_UTILS_H
#define COMPONENTS_PROXIMITY_AUTH_CRYPT_AUTH_ENROLLMENT_UTILS_H
#include <stdint.h>
#include <string>
namespace proximity_auth {
// Calculates an id for the specified user on the specified device.
std::string CalculateDeviceUserId(const std::string& device_id,
const std::string& user_id);
// Hashes |string| to an int64 value. These int64 hashes are used to fill the
// GcmDeviceInfo proto to upload to CryptAuth.
int64_t HashStringToInt64(const std::string& string);
} // namespace proximity_auth
#endif // COMPONENTS_PROXIMITY_AUTH_CRYPT_AUTH_ENROLLMENT_UTILS_H
|