Lines Matching refs:vi
52 static inline int cmp_hashes(const struct fsverity_info *vi, in cmp_hashes() argument
56 const unsigned int hsize = vi->tree_params.digest_size; in cmp_hashes()
61 fsverity_err(vi->inode, in cmp_hashes()
64 vi->tree_params.hash_alg->name, hsize, want_hash, in cmp_hashes()
65 vi->tree_params.hash_alg->name, hsize, real_hash); in cmp_hashes()
86 static bool verify_page(struct inode *inode, const struct fsverity_info *vi, in verify_page() argument
89 const struct merkle_tree_params *params = &vi->tree_params; in verify_page()
144 want_hash = vi->root_hash; in verify_page()
156 err = cmp_hashes(vi, want_hash, real_hash, index, level - 1); in verify_page()
171 err = cmp_hashes(vi, want_hash, real_hash, index, -1); in verify_page()
190 const struct fsverity_info *vi = inode->i_verity_info; in fsverity_verify_page() local
194 req = ahash_request_alloc(vi->tree_params.hash_alg->tfm, GFP_NOFS); in fsverity_verify_page()
198 valid = verify_page(inode, vi, req, page); in fsverity_verify_page()
224 const struct fsverity_info *vi = inode->i_verity_info; in fsverity_verify_bio() local
229 req = ahash_request_alloc(vi->tree_params.hash_alg->tfm, GFP_NOFS); in fsverity_verify_bio()
239 if (!PageError(page) && !verify_page(inode, vi, req, page)) in fsverity_verify_bio()