summaryrefslogtreecommitdiffstats
path: root/device/bluetooth/bluetooth_out_of_band_pairing_data.h
blob: 1b45bb0b9d233938d9ee21a553e94821d0660127 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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 DEVICE_BLUETOOTH_BLUETOOTH_OUT_OF_BAND_PAIRING_DATA_H_
#define DEVICE_BLUETOOTH_BLUETOOTH_OUT_OF_BAND_PAIRING_DATA_H_

#include "base/basictypes.h"

namespace device {

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 hash[kBluetoothOutOfBandPairingDataSize];

  // Simple Pairing Randomizer R.
  uint8 randomizer[kBluetoothOutOfBandPairingDataSize];
};

}  // namespace device

#endif  // DEVICE_BLUETOOTH_BLUETOOTH_OUT_OF_BAND_PAIRING_DATA_H_