Lines Matching full:digest
3 * Ioctl to get a verity file's digest
13 * fsverity_ioctl_measure() - get a verity file's digest
14 * @filp: file to get digest of
17 * Retrieve the file digest that the kernel is enforcing for reads from a verity
38 * return the digest if it fits in the available space. We write back in fsverity_ioctl_measure()
54 if (copy_to_user(uarg->digest, vi->file_digest, hash_alg->digest_size)) in fsverity_ioctl_measure()
62 * fsverity_get_digest() - get a verity file's digest
63 * @inode: inode to get digest of
64 * @raw_digest: (out) the raw file digest
65 * @alg: (out) the digest's algorithm, as a FS_VERITY_HASH_ALG_* value
66 * @halg: (out) the digest's algorithm, as a HASH_ALGO_* value
68 * Retrieves the fsverity digest of the given file. The file must have been
72 * The file's fsverity digest consists of @raw_digest in combination with either
78 * they use the digest size (since algorithms can share the same digest size).
80 * Return: The size of the raw digest in bytes, or 0 if the file doesn't have