blob: 375eee3b3d84686b55d00fa640ec4317d67ae4ae [file] [log] [blame]
// 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_CRYPTAUTH_CRYPTAUTH_ENROLLMENT_UTILS_H
#define COMPONENTS_CRYPTAUTH_CRYPTAUTH_ENROLLMENT_UTILS_H
#include <stdint.h>
#include <string>
namespace cryptauth {
// 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_t value. These int64_t hashes are used to fill
// the GcmDeviceInfo proto to upload to CryptAuth.
int64_t HashStringToInt64(const std::string& string);
} // namespace cryptauth
#endif // COMPONENTS_CRYPTAUTH_CRYPTAUTH_ENROLLMENT_UTILS_H