Bluetooth: Re-encrypt link after receiving an LTK
A message that is not in the archive (sent off-list or not yet received): [email protected]
Marcel Holtmann
maintainerHi Johan,
Quoted 9 lines
It's not strictly speaking required to re-encrypt a link once we receive an LTK since the connection is already encrypted with the STK. However, re-encrypting with the LTK allows us to verify that we've received an LTK that actually works.
This patch updates the SMP code to request encrypting with the LTK in case we're in master role and waits until the key refresh complete event before notifying user space of the distributed keys.
Quoted 8 lines
A new flag is also added for the SMP context to ensure that we re-encryption only once in case of multiple calls to
smp_distribute_keys.Signed-off-by Johan Hedberg <[email protected]>---
net/bluetooth/smp.c| 32 +++++++++++++++++++++++++++-----net/bluetooth/smp.h| 3 ++-2 files changed, 29 insertions(+), 6 deletions(-)
patch has been applied to bluetooth-next tree.
Regards
Marcel