Bluetooth: Make AES crypto context private to SMP
authorJohan Hedberg <johan.hedberg@intel.com>
Fri, 8 Aug 2014 06:37:17 +0000 (09:37 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 14 Aug 2014 06:49:19 +0000 (08:49 +0200)
commitdefce9e83666658d4420d65e45ab1ad190992f72
treeaf8d06908ba1f5c1e568c3408b490ee5c6a70396
parent70db83c4bcdc1447bbcb318389561c90d7056b18
Bluetooth: Make AES crypto context private to SMP

Now that we have per-adapter SMP data thanks to the root SMP L2CAP
channel we can take advantage of it and attach the AES crypto context
(only used for SMP) to it. This means that the smp_irk_matches() and
smp_generate_rpa() function can be converted to internally handle the
AES context.

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