aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/bluetooth
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2014-01-16 01:37:39 -0500
committerJohan Hedberg <johan.hedberg@intel.com>2014-02-13 02:51:35 -0500
commit7b5a9241b780ea2f77e71647bc0d3c9708c18ef1 (patch)
tree6848c9d768079cc02d95f911ebb3ca4d666c62c6 /include/net/bluetooth
parenteb9a8f3fb6762a4e6ae0aa9e96532c9c544f400e (diff)
Bluetooth: Introduce requirements for security level 4
The security level 4 is a new strong security requirement that is based around 128-bit equivalent strength for link and encryption keys required using FIPS approved algorithms. Which means that E0, SAFER+ and P-192 are not allowed. Only connections created with P-256 resulting from using Secure Connections support are allowed. This security level needs to be enforced when Secure Connection Only mode is enabled for a controller or a service requires FIPS compliant strong security. Currently it is not possible to enable either of these two cases. This patch just puts in the foundation for being able to handle security level 4 in the future. It should be noted that devices or services with security level 4 requirement can only communicate using Bluetooth 4.1 controllers with support for Secure Connections. There is no backward compatibilty if used with older hardware. Signed-off-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'include/net/bluetooth')
-rw-r--r--include/net/bluetooth/bluetooth.h1
-rw-r--r--include/net/bluetooth/hci.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/include/net/bluetooth/bluetooth.h b/include/net/bluetooth/bluetooth.h
index f4f9ee466791..904777c1cd24 100644
--- a/include/net/bluetooth/bluetooth.h
+++ b/include/net/bluetooth/bluetooth.h
@@ -65,6 +65,7 @@ struct bt_security {
65#define BT_SECURITY_LOW 1 65#define BT_SECURITY_LOW 1
66#define BT_SECURITY_MEDIUM 2 66#define BT_SECURITY_MEDIUM 2
67#define BT_SECURITY_HIGH 3 67#define BT_SECURITY_HIGH 3
68#define BT_SECURITY_FIPS 4
68 69
69#define BT_DEFER_SETUP 7 70#define BT_DEFER_SETUP 7
70 71
diff --git a/include/net/bluetooth/hci.h b/include/net/bluetooth/hci.h
index 2bc19881e250..0064a9aa5df1 100644
--- a/include/net/bluetooth/hci.h
+++ b/include/net/bluetooth/hci.h
@@ -313,6 +313,7 @@ enum {
313#define HCI_LM_TRUSTED 0x0008 313#define HCI_LM_TRUSTED 0x0008
314#define HCI_LM_RELIABLE 0x0010 314#define HCI_LM_RELIABLE 0x0010
315#define HCI_LM_SECURE 0x0020 315#define HCI_LM_SECURE 0x0020
316#define HCI_LM_FIPS 0x0040
316 317
317/* Authentication types */ 318/* Authentication types */
318#define HCI_AT_NO_BONDING 0x00 319#define HCI_AT_NO_BONDING 0x00