Bluetooth: Add key size checks for SMP
authorVinicius Costa Gomes <vinicius.gomes@openbossa.org>
Tue, 14 Jun 2011 16:37:42 +0000 (13:37 -0300)
committermgross <mark.gross@intel.com>
Wed, 9 Nov 2011 20:18:18 +0000 (12:18 -0800)
commitacb3bede8a4d7221522beadced61d51261a07134
tree96aa2f5024d66f5646ae5de310ee4b2fe4f7d28f
parent1d166779ebd37ad411896595eaf9a39e57e7bb3b
Bluetooth: Add key size checks for SMP

This patch implements a check in smp cmd pairing request and pairing
response to verify if encryption key maximum size is compatible in both
slave and master when SMP Pairing is requested. Keys are also masked to
the correct negotiated size.

Signed-off-by: Vinicius Costa Gomes <vinicius.gomes@openbossa.org>
Signed-off-by: Anderson Briglia <anderson.briglia@openbossa.org>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
include/net/bluetooth/l2cap.h
include/net/bluetooth/smp.h
net/bluetooth/smp.c