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>
This commit is contained in:

committed by
Gustavo F. Padovan

parent
5d3de7df18
commit
3158c50c33
@@ -400,6 +400,7 @@ struct l2cap_conn {
|
||||
__u8 prnd[16]; /* SMP Pairing Random */
|
||||
__u8 pcnf[16]; /* SMP Pairing Confirm */
|
||||
__u8 tk[16]; /* SMP Temporary Key */
|
||||
__u8 smp_key_size;
|
||||
|
||||
struct timer_list security_timer;
|
||||
|
||||
|
Reference in New Issue
Block a user