From: Mikulas Patocka
Introduce ahash support for the "internal hash" algorithm.
Rework the dm-integrity code to be able to run the "internal hash"
either with a synchronous ("shash") or asynchronous ("ahash") hash
algorithm implementation.
The get_mac() function now tries to decide which of th
Support for ahashes in dm-integrity.
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
From: Mikulas Patocka
Instead of calling digestsize() each time the digestsize for
the internal hash is needed, store the digestsize in a new
field internal_hash_digestsize within struct dm_integrity_c
once and use this value when needed.
Signed-off-by: Mikulas Patocka
Signed-off-by: Harald Fre
在 2025/7/22 1:15, Yu Kuai 写道:
From: Yu Kuai
Changes from v3:
- fix redundant setting mddev->bitmap_id in patch 6;
- add explanation of bitmap attributes in Documentation;
- add llbitmap/barrier_idle in patch 11;
- add some comments in patch 11;
[...]
Patches 01–10 look good:
Revi