Luiz Augusto von Dentz
1dd8db17ad
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 11:02:19 +02:00
..
2017-08-30 10:21:52 +02:00
2017-08-30 10:21:52 +02:00
2019-05-10 17:52:10 +02:00
2020-04-13 10:32:57 +02:00
2020-08-21 11:01:57 +02:00
2020-10-17 11:02:18 +02:00
2015-07-30 13:31:59 +02:00
2018-03-22 09:17:52 +01:00
2015-08-10 20:41:34 +02:00
2015-07-30 13:31:59 +02:00
2020-10-17 11:02:19 +02:00
2020-01-04 13:39:26 +01:00
2016-07-18 09:33:28 +03:00
2015-02-15 18:54:13 +02:00
2020-10-17 11:02:19 +02:00
2020-01-04 13:39:31 +01:00
2016-10-19 18:42:37 +02:00
2020-02-05 13:05:47 +00:00
2016-07-09 21:37:11 +03:00
2016-02-23 20:29:35 +01:00
2020-10-17 11:02:19 +02:00
2020-10-17 11:02:19 +02:00
2016-09-19 20:19:34 +02:00
2016-09-19 20:19:34 +02:00
2015-09-24 16:25:44 +02:00
2016-02-23 20:29:35 +01:00
2016-09-19 20:19:34 +02:00
2015-03-17 18:03:08 +01:00
2020-10-17 11:02:19 +02:00
2018-08-22 07:47:15 +02:00
2015-04-02 08:47:38 +03:00
2014-12-30 08:53:55 +02:00
2019-08-04 09:33:32 +02:00
2018-11-10 07:42:42 -08:00