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>
Showing
- include/net/bluetooth/hci_core.h 1 addition, 1 deletioninclude/net/bluetooth/hci_core.h
- net/bluetooth/hci_conn.c 2 additions, 2 deletionsnet/bluetooth/hci_conn.c
- net/bluetooth/hci_event.c 2 additions, 1 deletionnet/bluetooth/hci_event.c
- net/bluetooth/smp.c 3 additions, 12 deletionsnet/bluetooth/smp.c
Loading
Please register or sign in to comment