Luiz Augusto von Dentz
c1ad9bb3b0
Bluetooth: Disconnect if E0 is used for Level 4
commit 8746f135bb 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:12:57 +02:00
..
2020-08-11 15:32:32 +02:00
2020-10-01 13:14:43 +02:00
2020-07-31 18:37:48 +02:00
2020-10-01 13:14:52 +02:00
2020-10-17 10:12:57 +02:00
2020-06-30 23:17:03 -04:00
2020-07-22 09:32:13 +02:00
2020-10-01 13:14:52 +02:00
2020-09-26 18:01:29 +02:00
2020-04-29 16:31:16 +02:00
2020-09-23 12:10:56 +02:00
2020-10-01 13:14:29 +02:00
2020-10-01 13:14:29 +02:00
2020-09-26 18:01:28 +02:00
2020-07-22 09:31:59 +02:00
2020-10-01 13:14:26 +02:00
2020-10-07 08:00:07 +02:00
2020-10-01 13:14:51 +02:00
2020-04-29 16:31:17 +02:00
2020-10-07 08:00:09 +02:00
2020-09-12 13:40:22 +02:00
2020-07-22 09:31:58 +02:00
2020-04-29 16:31:21 +02:00
2020-08-19 08:15:03 +02:00
2020-10-14 10:31:24 +02:00
2020-10-07 08:00:08 +02:00
2020-09-26 18:01:30 +02:00
2020-08-05 10:06:01 +02:00
2020-10-14 10:31:26 +02:00
2020-09-26 18:01:30 +02:00
2020-10-14 10:31:23 +02:00
2020-09-03 11:24:17 +02:00
2020-10-01 13:14:40 +02:00
2020-10-01 13:14:44 +02:00
2020-08-19 08:15:03 +02:00
2020-10-01 13:14:32 +02:00
2020-10-07 08:00:05 +02:00
2020-10-14 10:31:21 +02:00
2020-08-05 10:06:02 +02:00
2020-06-25 15:33:05 +02:00
2020-10-14 10:31:25 +02:00
2020-08-21 11:05:32 +02:00
2020-08-19 08:15:03 +02:00