Luiz Augusto von Dentz
6ad2e647d9
Bluetooth: Disconnect if E0 is used for Level 4
...
commit 8746f135bb01872ff412d408ea1aa9ebd328c1f5 upstream.
E0 is not allowed with Level 4:
BLUETOOTH CORE SPECIFICATION Version 5.2 | Vol 3, Part C page 1319:
'128-bit equivalent strength for link and encryption keys
required using FIPS approved algorithms (E0 not allowed,
SAFER+ not allowed, and P-192 not allowed; encryption key
not shortened'
SC enabled:
> HCI Event: Read Remote Extended Features (0x23) plen 13
Status: Success (0x00)
Handle: 256
Page: 1/2
Features: 0x0b 0x00 0x00 0x00 0x00 0x00 0x00 0x00
Secure Simple Pairing (Host Support)
LE Supported (Host)
Secure Connections (Host Support)
> HCI Event: Encryption Change (0x08) plen 4
Status: Success (0x00)
Handle: 256
Encryption: Enabled with AES-CCM (0x02)
SC disabled:
> HCI Event: Read Remote Extended Features (0x23) plen 13
Status: Success (0x00)
Handle: 256
Page: 1/2
Features: 0x03 0x00 0x00 0x00 0x00 0x00 0x00 0x00
Secure Simple Pairing (Host Support)
LE Supported (Host)
> HCI Event: Encryption Change (0x08) plen 4
Status: Success (0x00)
Handle: 256
Encryption: Enabled with E0 (0x01)
[May 8 20:23] Bluetooth: hci0: Invalid security: expect AES but E0 was used
< HCI Command: Disconnect (0x01|0x0006) plen 3
Handle: 256
Reason: Authentication Failure (0x05)
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Cc: Hans-Christian Noren Egtvedt <hegtvedt@cisco.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-10-17 10:11:22 +02:00
..
2019-07-06 12:50:01 +02:00
2020-08-11 15:33:36 +02:00
2019-06-19 17:09:55 +02:00
2020-01-12 12:21:50 +01:00
2020-08-11 15:33:40 +02:00
2020-10-01 13:17:58 +02:00
2020-07-31 18:39:31 +02:00
2020-10-01 13:18:19 +02:00
2020-10-17 10:11:22 +02:00
2019-07-25 18:00:41 -07:00
2020-04-21 09:04:53 +02:00
2020-09-26 18:03:12 +02:00
2019-10-28 13:33:41 -07:00
2020-09-03 11:26:58 +02:00
2020-07-22 09:33:17 +02:00
2020-10-14 10:33:06 +02:00
2020-09-26 18:03:12 +02:00
2020-06-17 16:40:32 +02:00
2020-01-04 19:18:58 +01:00
2020-04-23 10:36:45 +02:00
2020-09-23 12:40:33 +02:00
2020-01-09 10:20:06 +01:00
2020-04-21 09:04:44 +02:00
2020-03-18 07:17:44 +01:00
2019-09-26 08:56:17 +02:00
2020-10-14 10:33:06 +02:00
2020-10-01 13:17:25 +02:00
2019-07-29 10:26:14 -07:00
2019-09-27 10:27:14 +02:00
2020-09-26 18:03:10 +02:00
2020-07-22 09:32:47 +02:00
2019-06-23 13:24:17 -07:00
2020-10-01 13:17:15 +02:00
2020-10-07 08:01:27 +02:00
2020-10-01 13:18:17 +02:00
2019-12-18 16:08:42 +01:00
2019-09-19 18:04:40 -07:00
2020-10-07 08:01:31 +02:00
2020-09-12 14:18:55 +02:00
2020-07-22 09:32:46 +02:00
2020-04-29 16:33:08 +02:00
2020-08-19 08:16:22 +02:00
2019-06-19 17:09:55 +02:00
2020-10-14 10:33:02 +02:00
2020-09-09 19:12:29 +02:00
2019-10-28 13:33:41 -07:00
2019-12-04 22:30:54 +01:00
2020-09-26 18:03:15 +02:00
2020-08-05 09:59:44 +02:00
2020-01-12 12:21:33 +01:00
2019-10-24 14:53:48 -07:00
2020-10-14 10:33:05 +02:00
2020-10-14 10:33:06 +02:00
2020-10-14 10:33:01 +02:00
2020-09-03 11:26:40 +02:00
2019-06-22 08:59:24 -04:00
2020-10-01 13:18:01 +02:00
2020-10-01 13:18:00 +02:00
2020-10-14 10:33:06 +02:00
2020-10-01 13:17:31 +02:00
2020-10-07 08:01:24 +02:00
2019-08-10 15:25:47 -07:00
2020-10-14 10:32:57 +02:00
2020-08-05 09:59:44 +02:00
2020-06-24 17:50:44 +02:00
2020-10-14 10:33:03 +02:00
2020-08-21 13:05:25 +02:00
2020-04-01 11:02:18 +02:00
2020-08-19 08:16:22 +02:00