Bluetooth: LE Secure Connections support
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest49 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/49 | Bluetooth: Add basic SMP defines for LE Secure Connectionsnet/ | +24 | 0 replies | |
| 2/49 | Bluetooth: Make auth_req mask dependent on SC enabled or notnet/ | +10 | 0 replies | |
| 3/49 | Bluetooth: Add SMP flag for SC and set it when necessary.net/ | +7 | 0 replies | |
| 4/49 | Bluetooth: Update SMP security level to/from auth_req for SCnet/ | +14 | 0 replies | |
| 5/49 | Bluetooth: Add mgmt support for LE Secure Connections LTK typesinclude/ net/ net/ | +42 | 0 replies | |
| 6/49 | Bluetooth: Set the correct security level for SC LTKsnet/ | +6 | 0 replies | |
| 7/49 | Bluetooth: Use custom macro for testing BR/EDR SC enabledinclude/ net/ net/ +1 more | +7 | 0 replies | |
| 8/49 | Bluetooth: Add mgmt_set_secure_conn support for any LE adapternet/ | +8 | 0 replies | |
| 9/49 | Bluetooth: Update LTK lookup to correctly deal with SC LTKsnet/ net/ | +36 | 0 replies | |
| 10/49 | Bluetooth: Remove unused hci_find_ltk functioninclude/ net/ | +0 | 0 replies | |
| 11/49 | Bluetooth: Rename hci_find_ltk_by_addr to hci_find_ltkinclude/ net/ net/ +1 more | +8 | 0 replies | |
| 12/49 | Bluetooth: Set link key generation bit if necessary for LE SCnet/ | +10 | 0 replies | |
| 13/49 | Bluetooth: Add basic support for AES-CMACnet/ net/ | +11 | 0 replies | |
| 14/49 | Bluetooth: Add ECC library for LE Secure Connectionsnet/ net/ net/ | +871 | 0 replies | |
| 15/49 | Bluetooth: Add basic support for sending our LE SC public keynet/ | +44 | 0 replies | |
| 16/49 | Bluetooth: Add handler function for receiving LE SC public keynet/ | +44 | 0 replies | |
| 17/49 | Bluetooth: Add support for sending LE SC Confirm valuenet/ | +96 | 0 replies | |
| 18/49 | Bluetooth: Add LE SC support for responding to Pairing Confirm PDUnet/ | +22 | 0 replies | |
| 19/49 | Bluetooth: Add support for LE SC numeric comparisonnet/ | +70 | 0 replies | |
| 20/49 | Bluetooth: Add support for handling LE SC user responsenet/ | +154 | 0 replies | |
| 21/49 | Bluetooth: Add support for LE SC DHKey check PDUnet/ | +56 | 0 replies | |
| 22/49 | Bluetooth: Add support for LE SC key generationnet/ | +57 | 0 replies | |
| 23/49 | Bluetooth: Track authentication method in SMP contextnet/ | +17 | 0 replies | |
| 24/49 | Bluetooth: Add selection of the SC authentication methodnet/ | +69 | 0 replies | |
| 25/49 | Bluetooth: Detect SMP SC debug keysnet/ | +27 | 0 replies | |
| 26/49 | Bluetooth: Add check for accidentally generating a debug keynet/ | +11 | 0 replies | |
| 27/49 | Bluetooth: Set correct LTK type and authentication for SCnet/ | +12 | 0 replies | |
| 28/49 | Bluetooth: Add support for SC just-works pairingnet/ | +27 | 0 replies | |
| 29/49 | Bluetooth: Fix BR/EDR Link Key type when derived through LE SCnet/ net/ | +28 | 0 replies | |
| 30/49 | Bluetooth: Add passkey entry support for LE SCnet/ | +180 | 0 replies | |
| 31/49 | Bluetooth: Fix DHKey Check sending order for slave rolenet/ | +43 | 0 replies | |
| 32/49 | Bluetooth: Add dummy handler for LE SC keypress notificationnet/ | +14 | 0 replies | |
| 33/49 | Bluetooth: Use debug keys for SMP when HCI_USE_DEBUG_KEYS is setnet/ | +18 | 0 replies | |
| 34/49 | Bluetooth: Add hci_conn flag for new link key generationinclude/ net/ | +4 | 0 replies | |
| 35/49 | Bluetooth: Add debugfs switch for forcing SMP over BR/EDRinclude/ net/ | +48 | 0 replies | |
| 36/49 | Bluetooth: Add skeleton for BR/EDR SMP channelinclude/ include/ net/ | +74 | 0 replies | |
| 37/49 | Bluetooth: Add full SMP BR/EDR supportnet/ net/ | +212 | 0 replies | |
| 38/49 | Bluetooth: Add SC-only mode support for SMPnet/ | +9 | 0 replies | |
| 39/49 | Bluetooth: Unify remote OOB data functionsinclude/ net/ net/ | +22 | 0 replies | |
| 40/49 | Bluetooth: Store address type with OOB datainclude/ net/ net/ +1 more | +29 | 0 replies | |
| 41/49 | Bluetooth: Add support for adding remote OOB data for LEnet/ | +11 | 0 replies | |
| 42/49 | Bluetooth: Set SMP OOB flag if OOB data is availablenet/ | +25 | 0 replies | |
| 43/49 | Bluetooth: Add basic LE SC OOB support for remote OOB datanet/ | +36 | 0 replies | |
| 44/49 | Bluetooth: Introduce SMP_DBG macro for low-level debugingnet/ | +40 | 0 replies | |
| 45/49 | Bluetooth: Fix missing const declarations in SMP functionsnet/ net/ | +13 | 0 replies | |
| 46/49 | Bluetooth: Organize SMP crypto functions to logical sectionsnet/ | +71 | 0 replies | |
| 47/49 | Bluetooth: Fix SMP debug key handlingnet/ net/ | +14 | 0 replies | |
| 48/49 | Bluetooth: Fix minor coding style issue in smp.cnet/ | +1 | 0 replies | |
| 49/49 | Bluetooth: Fix false-positive "uninitialized" compiler warningnet/ | +12 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 00/49] Bluetooth: LE Secure Connections support
Hi,
First of all, appologies to all for this huge patch set. It's work from the past 6 months or so that wasn't releasable until the 4.2 specification goes public. That happened just some moments ago:
http://www.bluetooth.com/SiteCollectionDocuments/4-2/bluetooth4-2.aspx
I'm sending the patches to the mailing list mainly for reference since Marcel will probably directly merge them from my tree. Any issues/fixes etc should be done on top of them.
Johan
----------------------------------------------------------------
Johan Hedberg (49):
Bluetooth: Add basic SMP defines for LE Secure Connections
Bluetooth: Make auth_req mask dependent on SC enabled or not
Bluetooth: Add SMP flag for SC and set it when necessary.
Bluetooth: Update SMP security level to/from auth_req for SC
Bluetooth: Add mgmt support for LE Secure Connections LTK types
Bluetooth: Set the correct security level for SC LTKs
Bluetooth: Use custom macro for testing BR/EDR SC enabled
Bluetooth: Add mgmt_set_secure_conn support for any LE adapter
Bluetooth: Update LTK lookup to correctly deal with SC LTKs
Bluetooth: Remove unused hci_find_ltk function
Bluetooth: Rename hci_find_ltk_by_addr to hci_find_ltk
Bluetooth: Set link key generation bit if necessary for LE SC
Bluetooth: Add basic support for AES-CMAC
Bluetooth: Add ECC library for LE Secure Connections
Bluetooth: Add basic support for sending our LE SC public key
Bluetooth: Add handler function for receiving LE SC public key
Bluetooth: Add support for sending LE SC Confirm value
Bluetooth: Add LE SC support for responding to Pairing Confirm PDU
Bluetooth: Add support for LE SC numeric comparison
Bluetooth: Add support for handling LE SC user response
Bluetooth: Add support for LE SC DHKey check PDU
Bluetooth: Add support for LE SC key generation
Bluetooth: Track authentication method in SMP context
Bluetooth: Add selection of the SC authentication method
Bluetooth: Detect SMP SC debug keys
Bluetooth: Add check for accidentally generating a debug key
Bluetooth: Set correct LTK type and authentication for SC
Bluetooth: Add support for SC just-works pairing
Bluetooth: Fix BR/EDR Link Key type when derived through LE SC
Bluetooth: Add passkey entry support for LE SC
Bluetooth: Fix DHKey Check sending order for slave role
Bluetooth: Add dummy handler for LE SC keypress notification
Bluetooth: Use debug keys for SMP when HCI_USE_DEBUG_KEYS is set
Bluetooth: Add hci_conn flag for new link key generation
Bluetooth: Add debugfs switch for forcing SMP over BR/EDR
Bluetooth: Add skeleton for BR/EDR SMP channel
Bluetooth: Add full SMP BR/EDR support
Bluetooth: Add SC-only mode support for SMP
Bluetooth: Unify remote OOB data functions
Bluetooth: Store address type with OOB data
Bluetooth: Add support for adding remote OOB data for LE
Bluetooth: Set SMP OOB flag if OOB data is available
Bluetooth: Add basic LE SC OOB support for remote OOB data
Bluetooth: Introduce SMP_DBG macro for low-level debuging
Bluetooth: Fix missing const declarations in SMP functions
Bluetooth: Organize SMP crypto functions to logical sections
Bluetooth: Fix SMP debug key handling
Bluetooth: Fix minor coding style issue in smp.c
Bluetooth: Fix false-positive "uninitialized" compiler warning
include/net/bluetooth/hci.h | 1 + include/net/bluetooth/hci_core.h | 23 +- include/net/bluetooth/l2cap.h | 2 + include/net/bluetooth/mgmt.h | 3 + net/bluetooth/Kconfig | 1 + net/bluetooth/Makefile | 2 +- net/bluetooth/ecc.c | 816 ++++++++++++++++++++ net/bluetooth/ecc.h | 54 ++ net/bluetooth/hci_core.c | 155 ++-- net/bluetooth/hci_event.c | 23 +- net/bluetooth/l2cap_core.c | 4 + net/bluetooth/mgmt.c | 75 +- net/bluetooth/smp.c | 1543 +++++++++++++++++++++++++++++++++---- net/bluetooth/smp.h | 51 +- 14 files changed, 2509 insertions(+), 244 deletions(-)