fs-verity: add Kconfig and the helper functions for hashing
authorEric Biggers <ebiggers@google.com>
Mon, 22 Jul 2019 16:26:21 +0000 (09:26 -0700)
committerEric Biggers <ebiggers@google.com>
Sun, 28 Jul 2019 23:59:16 +0000 (16:59 -0700)
commit671e67b47e9fffd12c8f69eda853a202cb5b3fc5
treef91a0c50797934610997014c30c5d3384444b24d
parentfe9918d3b228b3e8c726849d1486933f46b9069e
fs-verity: add Kconfig and the helper functions for hashing

Add the beginnings of the fs/verity/ support layer, including the
Kconfig option and various helper functions for hashing.  To start, only
SHA-256 is supported, but other hash algorithms can easily be added.

Reviewed-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Jaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: Eric Biggers <ebiggers@google.com>
fs/Kconfig
fs/Makefile
fs/verity/Kconfig [new file with mode: 0644]
fs/verity/Makefile [new file with mode: 0644]
fs/verity/fsverity_private.h [new file with mode: 0644]
fs/verity/hash_algs.c [new file with mode: 0644]
fs/verity/init.c [new file with mode: 0644]