Eric Biggers a7ddb3d49d dm-verity: make real_digest and want_digest fixed-length
Change the digest fields in struct dm_verity_io from variable-length to
fixed-length, since their maximum length is fixed at
HASH_MAX_DIGESTSIZE, i.e. 64 bytes, which is not too big.  This is
simpler and makes the fields a bit faster to access.

(HASH_MAX_DIGESTSIZE did not exist when this code was written, which may
explain why it wasn't used.)

This makes the verity_io_real_digest() and verity_io_want_digest()
functions trivial, but this patch leaves them in place temporarily since
most of their callers will go away in a later patch anyway.

Reviewed-by: Sami Tolvanen <samitolvanen@google.com>
Acked-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
2024-07-03 21:33:17 +02:00
..
2024-05-21 09:51:42 -07:00
2024-04-01 11:53:37 -06:00
2024-06-26 11:32:39 -04:00
2024-05-09 09:10:58 -04:00
2024-04-01 11:53:37 -06:00
2023-02-14 14:23:07 -05:00
2023-02-14 14:23:07 -05:00
2024-02-20 14:22:51 -05:00
2024-06-26 11:32:39 -04:00
2024-04-01 11:53:37 -06:00
2024-02-20 14:22:51 -05:00
2023-02-14 14:23:07 -05:00
2024-06-26 11:32:39 -04:00
2024-06-26 11:32:39 -04:00
2023-02-14 14:23:06 -05:00
2024-06-26 11:32:39 -04:00
2024-03-21 14:41:00 -07:00
2024-03-06 08:59:53 -08:00