Bluetooth: Add support for handling LE SC user response
authorJohan Hedberg <johan.hedberg@intel.com>
Fri, 6 Jun 2014 08:44:05 +0000 (11:44 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 3 Dec 2014 15:51:17 +0000 (16:51 +0100)
commit760b018b6cf08ee16fed37249a0a0d52d930c356
treebf232b8373160f05494d2a4484a9adb08fa37a75
parent191dc7fe2d3a8dde70b37a1fd086a32c1f4e1dcf
Bluetooth: Add support for handling LE SC user response

With LE SC, once the user has responded to the numeric comparison it's
time to send DHKey check values in both directions. The DHKey check
value is generated using new smp_f5 and smp_f6 cryptographic functions.
The smp_f5 function is responsible for generating the LTK and the MacKey
values whereas the smp_f6 function takes the MacKey as input and
generates the DHKey Check value.

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