Lines Matching full:hash
3 * fs-verity hash algorithms
10 /* The hash algorithms supported by fs-verity */
27 * fsverity_get_hash_alg() - get a hash algorithm by number
29 * @num: the hash algorithm number
31 * Get the struct fsverity_hash_alg for the given hash algorithm number.
33 * Return: pointer to the hash alg if it's known, otherwise NULL.
40 fsverity_warn(inode, "Unknown hash algorithm number: %u", num); in fsverity_get_hash_alg()
47 * fsverity_prepare_hash_state() - precompute the initial hash state
48 * @alg: hash algorithm
52 * Return: the kmalloc()'ed initial hash state, or NULL if out of memory.
64 * Zero-pad the salt to the next multiple of the input size of the hash in fsverity_prepare_hash_state()
66 * bytes for SHA-512. This ensures that the hash algorithm won't have in fsverity_prepare_hash_state()
95 * fsverity_hash_block() - hash a single data or hash block
97 * @data: virtual address of a buffer containing the block to hash
100 * Hash a single data or hash block. The hash is salted if a salt is specified
131 * fsverity_hash_buffer() - hash some data
132 * @alg: the hash algorithm to use
133 * @data: the data to hash
134 * @size: size of data to hash, in bytes
157 * Sanity check the hash algorithms (could be a build-time check, but in fsverity_check_hash_algs()