All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/1] dm-inlinecrypt: add support for hardware-wrapped keys
@ 2026-05-25 12:13 Linlin Zhang
  2026-05-25 12:13 ` [PATCH v3 1/1] " Linlin Zhang
  2026-06-15  5:39 ` [PATCH v3 0/1] " Linlin Zhang
  0 siblings, 2 replies; 5+ messages in thread
From: Linlin Zhang @ 2026-05-25 12:13 UTC (permalink / raw)
  To: Mikulas Patocka, Eric Biggers, Milan Broz
  Cc: Alasdair Kergon, Mike Snitzer, Benjamin Marzinski, Neeraj Soni,
	dm-devel, linux-kernel

dm-inlinecrypt currently assumes that all keys are raw software keys.
That does not work for platforms where inline encryption expects
hardware-wrapped key material managed by secure firmware/hardware.

This series adds support for hardware-wrapped keys in dm-inlinecrypt by
introducing an optional <key_type> target argument. The flag lets
dm-inlinecrypt select the proper blk-crypto key type at key
initialization time:

- 1: BLK_CRYPTO_KEY_TYPE_RAW
- 2: BLK_CRYPTO_KEY_TYPE_HW_WRAPPED

With this change, dm-inlinecrypt can support both raw and wrapped key
deployment models without hardcoding one key ownership model.
The series also:
- updates target argument parsing to include the new required flag
- propagates the wrapped/raw state in target status output
- updates dm-inlinecrypt documentation and examples accordingly
Linlin Zhang (1):
  dm-inlinecrypt: add support for hardware-wrapped keys

 .../device-mapper/dm-inlinecrypt.rst          | 20 +++---
 drivers/md/dm-inlinecrypt.c                   | 63 ++++++++++++-------
 2 files changed, 54 insertions(+), 29 deletions(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-06-20 21:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-25 12:13 [PATCH v3 0/1] dm-inlinecrypt: add support for hardware-wrapped keys Linlin Zhang
2026-05-25 12:13 ` [PATCH v3 1/1] " Linlin Zhang
2026-06-20 21:27   ` Eric Biggers
2026-06-15  5:39 ` [PATCH v3 0/1] " Linlin Zhang
2026-06-15  8:34   ` Mikulas Patocka

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.