diff options
author | Eric Biggers <ebiggers@google.com> | 2020-11-14 00:19:16 +0300 |
---|---|---|
committer | Eric Biggers <ebiggers@google.com> | 2020-11-16 22:40:11 +0300 |
commit | 9e90f30e78572ecfc1c74c735a034c955d822ba6 (patch) | |
tree | 8c0ae5ac827947af989bd3fc195011430c38d259 /fs/verity/signature.c | |
parent | 7bf765dd8442d2b482803f50613b9c2543491f4a (diff) | |
download | linux-9e90f30e78572ecfc1c74c735a034c955d822ba6.tar.xz |
fs-verity: rename fsverity_signed_digest to fsverity_formatted_digest
The name "struct fsverity_signed_digest" is causing confusion because it
isn't actually a signed digest, but rather it's the way that the digest
is formatted in order to be signed. Rename it to
"struct fsverity_formatted_digest" to prevent this confusion.
Also update the struct's comment to clarify that it's specific to the
built-in signature verification support and isn't a requirement for all
fs-verity users.
I'll be renaming this struct in fsverity-utils too.
Acked-by: Luca Boccassi <luca.boccassi@microsoft.com>
Link: https://lore.kernel.org/r/20201113211918.71883-3-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@google.com>
Diffstat (limited to 'fs/verity/signature.c')
-rw-r--r-- | fs/verity/signature.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/verity/signature.c b/fs/verity/signature.c index 12794a4dd158..74ae10f04d21 100644 --- a/fs/verity/signature.c +++ b/fs/verity/signature.c @@ -44,7 +44,7 @@ int fsverity_verify_signature(const struct fsverity_info *vi, const struct inode *inode = vi->inode; const struct fsverity_hash_alg *hash_alg = vi->tree_params.hash_alg; const u32 sig_size = le32_to_cpu(desc->sig_size); - struct fsverity_signed_digest *d; + struct fsverity_formatted_digest *d; int err; if (sig_size == 0) { |