Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(97)

Unified Diff: chrome/browser/chromeos/login/easy_unlock/easy_unlock_types.h

Issue 554043003: cros: Create cryptohome keys for Easy sign-in. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update histograms.xml Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698