Skip to contentSkip to conversation

dm-crypt: add Kconfig switch to enable authenticated mode.

PATCH In review Milan Broz 2 participants 2 messages May 4, 2017

Subsystems (2)
lore
Share & tools
lore

Milan Broz

author
#0 lore raw

PATCH 1/1 dm-crypt: add Kconfig switch to enable authenticated mode.

The switch just enables dm-integrity module but it makes configuration more logic and user friendly.

---
 drivers/md/Kconfig | 11 +++++++++++
 1 file changed, 11 insertions(+)
drivers/md/Kconfig +11 -0
index 3e96fccbbdb2..134f885c6be1 100644
@@ -285,6 +285,17 @@ config DM_CRYPT
 
 	  If unsure, say N.
 
+config DM_CRYPT_AEAD
+	tristate "Crypt target support for authenticated disk encrytion modes"
+	depends on DM_CRYPT
+	select DM_INTEGRITY
+	---help---
+	  This option enables dm-integrity target that is required in dm-crypt
+	  for support of authenticated encryption modes (it enables additional
+	  per-sector metadata for authentication tags).
+
+	  If unsure, say N.
+
 config DM_SNAPSHOT
        tristate "Snapshot target"
        depends on BLK_DEV_DM
Signature · 1 line
2.11.0
#1 lore raw
Quoted 32 lines · Milan Broz

The switch just enables dm-integrity module but it makes configuration more logic and user friendly.

---
 drivers/md/Kconfig | 11 +++++++++++
 1 file changed, 11 insertions(+)
drivers/md/Kconfig +11 -0
index 3e96fccbbdb2..134f885c6be1 100644
@@ -285,6 +285,17 @@ config DM_CRYPT
 
 	  If unsure, say N.
 
+config DM_CRYPT_AEAD
+	tristate "Crypt target support for authenticated disk encrytion modes"
+	depends on DM_CRYPT
+	select DM_INTEGRITY
+	---help---
+	  This option enables dm-integrity target that is required in dm-crypt
+	  for support of authenticated encryption modes (it enables additional
+	  per-sector metadata for authentication tags).
+
+	  If unsure, say N.
+
 config DM_SNAPSHOT
        tristate "Snapshot target"
        depends on BLK_DEV_DM
Signature · 1 line
2.11.0

For the benefit of dm-devl: we've decided to _not_ make this change.