• Home
  • Raw
  • Download

Lines Matching full:hash

3  * fs/verity/hash_algs.c: fs-verity hash algorithms
10 #include <crypto/hash.h>
13 /* The hash algorithms supported by fs-verity */
32 * fsverity_get_hash_alg() - validate and prepare a hash algorithm
34 * @num: the hash algorithm number
36 * Get the struct fsverity_hash_alg for the given hash algorithm number, and
37 * ensure it has a hash transform ready to go. The hash transforms are
41 * Return: pointer to the hash alg on success, else an ERR_PTR()
52 fsverity_warn(inode, "Unknown hash algorithm number: %u", num); in fsverity_get_hash_alg()
74 "Missing crypto API support for hash algorithm \"%s\"", in fsverity_get_hash_alg()
80 "Error allocating hash algorithm \"%s\": %ld", in fsverity_get_hash_alg()
114 * fsverity_alloc_hash_request() - allocate a hash request object
115 * @alg: the hash algorithm for which to allocate the request
136 * fsverity_free_hash_request() - free a hash request object
137 * @alg: the hash algorithm
138 * @req: the hash request object to free
150 * fsverity_prepare_hash_state() - precompute the initial hash state
151 * @alg: hash algorithm
156 * initial hash state on success or an ERR_PTR() on failure.
180 * Zero-pad the salt to the next multiple of the input size of the hash in fsverity_prepare_hash_state()
182 * bytes for SHA-512. This ensures that the hash algorithm won't have in fsverity_prepare_hash_state()
223 * fsverity_hash_page() - hash a single data or hash page
226 * @req: preallocated hash request
227 * @page: the page to hash
230 * Hash a single data or hash block, assuming block_size == PAGE_SIZE.
231 * The hash is salted if a salt is specified in the Merkle tree parameters.
257 "Error %d importing hash state", err); in fsverity_hash_page()
267 fsverity_err(inode, "Error %d computing page hash", err); in fsverity_hash_page()
272 * fsverity_hash_buffer() - hash some data
273 * @alg: the hash algorithm to use
274 * @data: the data to hash
275 * @size: size of data to hash, in bytes
278 * Hash some data which is located in physically contiguous memory (i.e. memory
311 * Sanity check the hash algorithms (could be a build-time check, but in fsverity_check_hash_algs()