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

Unified Diff: chromeos/dbus/bluetooth_out_of_band_pairing_data.h

Issue 10899037: Refactoring bluetooth API code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed ASSERT_TRUE checks. Created 8 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
« no previous file with comments | « chromeos/dbus/bluetooth_out_of_band_client.cc ('k') | chromeos/dbus/mock_bluetooth_out_of_band_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/dbus/bluetooth_out_of_band_pairing_data.h
diff --git a/chromeos/dbus/bluetooth_out_of_band_pairing_data.h b/chromeos/dbus/bluetooth_out_of_band_pairing_data.h
new file mode 100644
index 0000000000000000000000000000000000000000..0c8e2bc03350cb4a5a2fd010897ea31bf485b0a4
--- /dev/null
+++ b/chromeos/dbus/bluetooth_out_of_band_pairing_data.h
@@ -0,0 +1,27 @@
+// Copyright (c) 2012 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 CHROMEOS_DBUS_BLUETOOTH_OUT_OF_BAND_PAIRING_DATA_H_
+#define CHROMEOS_DBUS_BLUETOOTH_OUT_OF_BAND_PAIRING_DATA_H_
+
+#include "base/basictypes.h"
+
+namespace chromeos {
+
+const size_t kBluetoothOutOfBandPairingDataSize = 16;
+
+// A simple structure representing the data required to perform Out Of Band
+// Pairing. See
+// http://mclean-linsky.net/joel/cv/Simple%20Pairing_WP_V10r00.pdf
+struct BluetoothOutOfBandPairingData {
+ // Simple Pairing Hash C.
+ uint8_t hash[kBluetoothOutOfBandPairingDataSize];
+
+ // Simple Pairing Randomizer R.
+ uint8_t randomizer[kBluetoothOutOfBandPairingDataSize];
+};
+
+} // namespace chromeos
+
+#endif // CHROMEOS_DBUS_BLUETOOTH_OUT_OF_BAND_PAIRING_DATA_H_
« no previous file with comments | « chromeos/dbus/bluetooth_out_of_band_client.cc ('k') | chromeos/dbus/mock_bluetooth_out_of_band_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698