diff options
author | Eric Biggers <ebiggers@kernel.org> | 2024-07-02 16:40:41 +0200 |
---|---|---|
committer | Mikulas Patocka <mpatocka@redhat.com> | 2024-07-03 21:41:11 +0200 |
commit | e8f5e933013af36f4042fea955a00df40105643a (patch) | |
tree | f5ac6bab27ea5062356d4355f90c536928175a30 /drivers/md/dm-verity.h | |
parent | dm-verity: always "map" the data blocks (diff) | |
download | linux-e8f5e933013af36f4042fea955a00df40105643a.tar.xz linux-e8f5e933013af36f4042fea955a00df40105643a.zip |
dm-verity: make verity_hash() take dm_verity_io instead of ahash_request
In preparation for adding shash support to dm-verity, change
verity_hash() to take a pointer to a struct dm_verity_io instead of a
pointer to the ahash_request embedded inside it.
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>
Diffstat (limited to 'drivers/md/dm-verity.h')
-rw-r--r-- | drivers/md/dm-verity.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-verity.h b/drivers/md/dm-verity.h index bd461c28b710..0e1dd02a916f 100644 --- a/drivers/md/dm-verity.h +++ b/drivers/md/dm-verity.h @@ -116,7 +116,7 @@ static inline u8 *verity_io_want_digest(struct dm_verity *v, return io->want_digest; } -extern int verity_hash(struct dm_verity *v, struct ahash_request *req, +extern int verity_hash(struct dm_verity *v, struct dm_verity_io *io, const u8 *data, size_t len, u8 *digest, bool may_sleep); extern int verity_hash_for_block(struct dm_verity *v, struct dm_verity_io *io, |