Skip to contentSkip to conversation

Bluetooth: Re-encrypt link after receiving an LTK

PATCH Marcel Holtmann 1 participant 1 message Feb 28, 2014 1 message not in the archive Bluetooth drivers

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Marcel Holtmann

author maintainer
#1 lore raw

Hi 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.

---
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