Bluetooth: Add support for LE SC numeric comparison
authorJohan Hedberg <johan.hedberg@intel.com>
Fri, 6 Jun 2014 08:39:49 +0000 (11:39 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 3 Dec 2014 15:51:17 +0000 (16:51 +0100)
commit191dc7fe2d3a8dde70b37a1fd086a32c1f4e1dcf
tree0367a6a63ace680264967e92efc44d1d67c8573f
parentdcee2b32216ffa62195cac394d50fd801b51a41c
Bluetooth: Add support for LE SC numeric comparison

After the Pairing Confirm and Random PDUs have been exchanged in LE SC
it's time to generate a numeric comparison value using a new smp_g2
cryptographic function (which also builds on AES-CMAC). This patch adds
the smp_g2 implementation and updates the Pairing Random PDU handler to
proceed with the value genration and user confirmation.

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