diff options
author | Eric Biggers <ebiggers@google.com> | 2019-07-22 09:26:23 -0700 |
---|---|---|
committer | Eric Biggers <ebiggers@google.com> | 2019-08-12 19:33:50 -0700 |
commit | add890c9f9d2d1d79184ded72f23b37b164fc673 (patch) | |
tree | cb982f8ac59675b4435c74b10571bc75a0ceb965 /include/uapi | |
parent | 4dd893d832cf4da5409e1fecea9c4f6452a93f2b (diff) | |
download | linux-stable-add890c9f9d2d1d79184ded72f23b37b164fc673.tar.gz linux-stable-add890c9f9d2d1d79184ded72f23b37b164fc673.tar.bz2 linux-stable-add890c9f9d2d1d79184ded72f23b37b164fc673.zip |
fs-verity: add SHA-512 support
Add SHA-512 support to fs-verity. This is primarily a demonstration of
the trivial changes needed to support a new hash algorithm in fs-verity;
most users will still use SHA-256, due to the smaller space required to
store the hashes. But some users may prefer SHA-512.
Reviewed-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Jaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: Eric Biggers <ebiggers@google.com>
Diffstat (limited to 'include/uapi')
-rw-r--r-- | include/uapi/linux/fsverity.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/fsverity.h b/include/uapi/linux/fsverity.h index 57d1d7fc0c34..da0daf6c193b 100644 --- a/include/uapi/linux/fsverity.h +++ b/include/uapi/linux/fsverity.h @@ -14,6 +14,7 @@ #include <linux/types.h> #define FS_VERITY_HASH_ALG_SHA256 1 +#define FS_VERITY_HASH_ALG_SHA512 2 struct fsverity_enable_arg { __u32 version; |