]> git.karo-electronics.de Git - linux-beck.git/commit
Bluetooth: Fix encryption key size handling for LTKs
authorJohan Hedberg <johan.hedberg@intel.com>
Mon, 8 Jun 2015 15:14:39 +0000 (18:14 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 9 Jun 2015 07:09:06 +0000 (09:09 +0200)
commit8b76ce34c43a569f981623485c1b6c700594678e
tree3844c2f8bc50d978342a4a0fa5eb46b765a1aad5
parent2eeac871697ac24a77b6d7953bd711b490e83ac7
Bluetooth: Fix encryption key size handling for LTKs

The encryption key size for LTKs is supposed to be applied only at the
moment of encryption. When generating a Link Key (using LE SC) from
the LTK the full non-shortened value should be used. This patch
modifies the code to always keep the full value around and only apply
the key size when passing the value to HCI.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
include/net/bluetooth/hci_core.h
net/bluetooth/hci_conn.c
net/bluetooth/hci_event.c
net/bluetooth/smp.c