Lines Matching defs:vi
32 void fsverity_set_cert_type(struct fsverity_info *vi,
35 vi->cert_type = cert_type;
52 static inline int fsverity_verify_certchain(struct fsverity_info *vi,
58 raw_pkcs7, pkcs7_len, &vi->fcs_info, &ret);
60 fsverity_set_cert_type(vi, ret);
69 * @vi: the file's fsverity_info
78 int fsverity_verify_signature(struct fsverity_info *vi,
82 const struct inode *inode = vi->inode;
83 const struct fsverity_hash_alg *hash_alg = vi->tree_params.hash_alg;
124 memcpy(d->digest, vi->measurement, hash_alg->digest_size);
126 err = fsverity_verify_certchain(vi, desc->signature, sig_size);
155 hash_alg->name, hash_alg->digest_size, vi->measurement);