OSDN Git Service

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)
committerJaikumar Ganesh <jaikumar@google.com>
Mon, 11 Jul 2011 18:59:23 +0000 (11:59 -0700)
commit397d9aeced79c37913ae90485a4544c04e7fb518
treeadc97c81128daa2aa90d918857233d36e4595ea1
parentb19d5cea661d5695c683bc6ba0925ce4b96dd022
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