Bluetooth: Add dedicated AES instance for each SMP context
authorJohan Hedberg <johan.hedberg@intel.com>
Fri, 27 Jun 2014 11:23:03 +0000 (14:23 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 3 Jul 2014 15:42:47 +0000 (17:42 +0200)
commit6a7bd103c8a4286ef6f7134bfe6f104f32f2c4d4
tree27e16726a191933d391c3db58ab2fc6625463d44
parent31dd624e1cf937655a06fa4eeec06f4bafa34ab7
Bluetooth: Add dedicated AES instance for each SMP context

Many places have to be extra careful to not hold the hdev lock when
calling into the SMP code. This is because the SMP crypto functions use
the crypto handle that's part of the hci_dev struct. Giving the SMP
context its own handle helps simplifying the locking logic and removes
the risk for deadlocks.

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