mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/6] Add Additional algo mode for inline encryption
@ 2024-07-30 11:58 Md Sadre Alam
  2024-07-30 11:58 ` [PATCH 1/6] md: dm-crypt: Fix compilation issue Md Sadre Alam
                   ` (6 more replies)
  0 siblings, 7 replies; 12+ messages in thread
From: Md Sadre Alam @ 2024-07-30 11:58 UTC (permalink / raw)
  To: axboe, agk, snitzer, mpatocka, adrian.hunter, quic_asutoshd,
	ritesh.list, ulf.hansson, andersson, konrad.dybcio, linux-block,
	linux-kernel, dm-devel, linux-mmc, linux-arm-msm, quic_viswanat,
	quic_srichara, quic_varada
  Cc: quic_mdalam

This series of patches add additional modes for inline encryption

This series of patches depends on [1] Add inline encryption support for dm-crypt

[1]: https://lore.kernel.org/all/b45d3b40-2587-04dc-9601-a9251dacf806@opensource.wdc.com/T/#ma01f08a941107217c93680fa25e96e8d406df790

These patches tested on IPQ9574 with eMMC ICE for raw partition
encryption/decryption.

e.g:

dmsetup create test-crypt --table '0 251904 crypt aes128-xts-plain64 a7f67ad520bd83b9725df6ebd76c3eeea7f67ad520bd83b9725df6ebd76c3eee 0 /dev/mmcblk0p27 0 1 inline_crypt'

dd if=/dev/urandom of=/tmp/data bs=1M count=1

dd if=/tmp/data of=/dev/mapper/test-crypt bs=1M count=1

dd of=/tmp/data1 if=/dev/mapper/test-crypt bs=1M count=1

dd of=/tmp/data2 if=/dev/mmcblk0p27 bs=1M count=1

md5sum /tmp/data*
b45d728bfb499b6de9b12c98fbb652dd  /tmp/data
b45d728bfb499b6de9b12c98fbb652dd  /tmp/data1
bc4107e19cf6fc012c5b997bdd3f0de4  /tmp/data2

dmsetup remove /dev/mapper/test-crypt

Md Sadre Alam (6):
  md: dm-crypt: Fix compilation issue
  md: dm-crypt: Set cc->iv_size to 4 bytes
  blk-crypto: Add additional algo modes for Inline encryption
  md: dm-crypt: Add additional algo modes for inline encryption
  mmc: cqhci: Add additional algo mode for inline encryption
  mmc: sdhci-msm: Add additional algo mode for inline encryption

 block/blk-crypto.c              | 18 +++++++++
 drivers/md/dm-crypt.c           | 26 ++++++-------
 drivers/mmc/host/cqhci-crypto.c | 12 ++++++
 drivers/mmc/host/sdhci-msm.c    | 10 +----
 drivers/soc/qcom/ice.c          | 65 ++++++++++++++++++++++++++++-----
 include/linux/blk-crypto.h      |  3 ++
 6 files changed, 103 insertions(+), 31 deletions(-)

-- 
2.34.1


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

end of thread, other threads:[~2024-08-02  4:24 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-07-30 11:58 [PATCH 0/6] Add Additional algo mode for inline encryption Md Sadre Alam
2024-07-30 11:58 ` [PATCH 1/6] md: dm-crypt: Fix compilation issue Md Sadre Alam
2024-07-30 11:58 ` [PATCH 2/6] md: dm-crypt: Set cc->iv_size to 4 bytes Md Sadre Alam
2024-07-31 12:41   ` Milan Broz
2024-08-02  4:21     ` Md Sadre Alam
2024-07-30 11:58 ` [PATCH 3/6] blk-crypto: Add additional algo modes for Inline encryption Md Sadre Alam
2024-07-30 11:58 ` [PATCH 4/6] md: dm-crypt: Add additional algo modes for inline encryption Md Sadre Alam
2024-07-30 11:58 ` [PATCH 5/6] mmc: cqhci: Add additional algo mode " Md Sadre Alam
2024-07-30 11:58 ` [PATCH 6/6] mmc: sdhci-msm: " Md Sadre Alam
2024-07-31 12:48 ` [PATCH 0/6] Add Additional " Mikulas Patocka
2024-07-31 14:18   ` Kamal Dasu
2024-08-02  4:23   ` Md Sadre Alam

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®