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.
Harald Freudenberger (2):
dm-integrity: use internal variable for digestsize
dm-integrity: introduce ahash support for the internal hash
drivers/md/dm-integrity.c | 237 +++++++++++++++++++++++++++++---------
1 file changed, 180 insertions(+), 57 deletions(-)
base-commit: fac04efc5c793dccbd07e2d59af9f90b7fc0dca4
--
2.43.0