| Index: chrome/browser/chromeos/login/easy_unlock/easy_unlock_types.h
|
| diff --git a/chrome/browser/chromeos/login/easy_unlock/easy_unlock_types.h b/chrome/browser/chromeos/login/easy_unlock/easy_unlock_types.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..0f71b9c012544546b1b6ba06d870b4d2790a2c79
|
| --- /dev/null
|
| +++ b/chrome/browser/chromeos/login/easy_unlock/easy_unlock_types.h
|
| @@ -0,0 +1,39 @@
|
| +// Copyright 2014 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 CHROME_BROWSER_CHROMEOS_LOGIN_EASY_UNLOCK_EASY_UNLOCK_TYPES_H_
|
| +#define CHROME_BROWSER_CHROMEOS_LOGIN_EASY_UNLOCK_EASY_UNLOCK_TYPES_H_
|
| +
|
| +#include <string>
|
| +#include <vector>
|
| +
|
| +namespace chromeos {
|
| +
|
| +extern const char kEasyUnlockKeyMetaNameBluetoothAddress[];
|
| +extern const char kEasyUnlockKeyMetaNamePsk[];
|
| +extern const char kEasyUnlockKeyMetaNamePubKey[];
|
| +extern const char kEasyUnlockKeyMetaNameChallenge[];
|
| +extern const char kEasyUnlockKeyMetaNameWrappedSecret[];
|
| +
|
| +// Device data that is stored with cryptohome keys.
|
| +struct EasyUnlockDeviceKeyData {
|
| + EasyUnlockDeviceKeyData();
|
| + ~EasyUnlockDeviceKeyData();
|
| +
|
| + // Bluetooth address of the remote device.
|
| + std::string bluetooth_address;
|
| + // Public key of the remote device.
|
| + std::string public_key;
|
| + // Key to establish a secure channel with the remote device.
|
| + std::string psk;
|
| + // Challenge bytes to be sent to the phone.
|
| + std::string challenge;
|
| + // Wrapped secret to mount cryptohome home.
|
| + std::string wrapped_secret;
|
| +};
|
| +typedef std::vector<EasyUnlockDeviceKeyData> EasyUnlockDeviceKeyDataList;
|
| +
|
| +} // namespace chromeos
|
| +
|
| +#endif // CHROME_BROWSER_CHROMEOS_LOGIN_EASY_UNLOCK_EASY_UNLOCK_TYPES_H_
|
|
|