blob: 1b45bb0b9d233938d9ee21a553e94821d0660127 [file] [log] [blame]
Torne (Richard Coles)58218062012-11-14 11:43:16 +00001// Copyright (c) 2012 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef DEVICE_BLUETOOTH_BLUETOOTH_OUT_OF_BAND_PAIRING_DATA_H_
6#define DEVICE_BLUETOOTH_BLUETOOTH_OUT_OF_BAND_PAIRING_DATA_H_
7
8#include "base/basictypes.h"
9
10namespace device {
11
12const size_t kBluetoothOutOfBandPairingDataSize = 16;
13
14// A simple structure representing the data required to perform Out Of Band
15// Pairing. See
16// http://mclean-linsky.net/joel/cv/Simple%20Pairing_WP_V10r00.pdf
17struct BluetoothOutOfBandPairingData {
18 // Simple Pairing Hash C.
19 uint8 hash[kBluetoothOutOfBandPairingDataSize];
20
21 // Simple Pairing Randomizer R.
22 uint8 randomizer[kBluetoothOutOfBandPairingDataSize];
23};
24
25} // namespace device
26
27#endif // DEVICE_BLUETOOTH_BLUETOOTH_OUT_OF_BAND_PAIRING_DATA_H_