fsverity: replace fsverity_hash_page() with fsverity_hash_block()
authorEric Biggers <ebiggers@google.com>
Fri, 23 Dec 2022 20:36:32 +0000 (12:36 -0800)
committerEric Biggers <ebiggers@google.com>
Tue, 10 Jan 2023 03:06:01 +0000 (19:06 -0800)
commitf45555bf23cfc6bf0f0239de321221b1b81817ab
tree8b3f08dfb3f0d25ab648268315840f75e1382675
parent55eed69cc8fd88272860b3409ac83e191330d370
fsverity: replace fsverity_hash_page() with fsverity_hash_block()

In preparation for allowing the Merkle tree block size to differ from
PAGE_SIZE, replace fsverity_hash_page() with fsverity_hash_block().  The
new function is similar to the old one, but it operates on the block at
the given offset in the page instead of on the full page.

(For now, all callers still pass a full page.)

Signed-off-by: Eric Biggers <ebiggers@google.com>
Reviewed-by: Andrey Albershteyn <aalbersh@redhat.com>
Tested-by: Ojaswin Mujoo <ojaswin@linux.ibm.com>
Link: https://lore.kernel.org/r/20221223203638.41293-6-ebiggers@kernel.org
fs/verity/enable.c
fs/verity/fsverity_private.h
fs/verity/hash_algs.c
fs/verity/verify.c