All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/2] dm-integrity: Implement asynch digest support
@ 2025-01-31 10:03 Harald Freudenberger
  2025-01-31 10:03 ` [PATCH v3 1/2] dm-integrity: use internal variable for digestsize Harald Freudenberger
  2025-01-31 10:03 ` [PATCH v3 2/2] dm-integrity: introduce ahash support for the internal hash Harald Freudenberger
  0 siblings, 2 replies; 7+ messages in thread
From: Harald Freudenberger @ 2025-01-31 10:03 UTC (permalink / raw)
  To: dengler, ifranzki, agk, snitzer, mpatocka; +Cc: linux-s390, dm-devel, herbert

Support for ahashes in dm-integrity.

Please note this code is elementary tested but needs some more
test coverage before integration. I can't do that as I only have
a s390 platform but I assume someone from dmcrypt/dmintegrity will
run a more sophisticated test suite on this.

Changelog:

v1: First implementation. Tested with crc32, sha256, hmac-sha256 and
    the s390 specific implementations for hmac-sha256 and protected
    key phmac-sha256. Also ran with some instrumented code (in the digest
    implementation) to verify that in fact now the code runs asynchronous.
v2: Support shash and ahash. Based on Mikulas' idea about implementing
    ahash support similar to dm-verity this version now adds support
    for ahash but does not replace the shash support. For more details
    see the text of the patch header.
v3: The line to store the digestsize into the new internal variable
    did not make it into the patch set which was sent out. So now
    this important code piece is also there. Also rebuilded, sparse
    checked and tested to make sure the patches are ok.

Harald Freudenberger (2):
  dm-integrity: use internal variable for digestsize
  dm-integrity: introduce ahash support for the internal hash

 drivers/md/dm-integrity.c | 241 +++++++++++++++++++++++++++++---------
 1 file changed, 184 insertions(+), 57 deletions(-)


base-commit: fac04efc5c793dccbd07e2d59af9f90b7fc0dca4
--
2.43.0


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

end of thread, other threads:[~2025-02-05 20:20 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-31 10:03 [PATCH v3 0/2] dm-integrity: Implement asynch digest support Harald Freudenberger
2025-01-31 10:03 ` [PATCH v3 1/2] dm-integrity: use internal variable for digestsize Harald Freudenberger
2025-01-31 10:03 ` [PATCH v3 2/2] dm-integrity: introduce ahash support for the internal hash Harald Freudenberger
2025-02-03 20:17   ` Mikulas Patocka
2025-02-03 20:47     ` Mikulas Patocka
2025-02-04 11:49     ` Harald Freudenberger
2025-02-05 20:20       ` 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.