Searched refs:hash_alg (Results 1 – 8 of 8) sorted by relevance
/fs/verity/ |
D | signature.c | 45 const struct fsverity_hash_alg *hash_alg = vi->tree_params.hash_alg; in fsverity_verify_signature() local 80 d = kzalloc(sizeof(*d) + hash_alg->digest_size, GFP_KERNEL); in fsverity_verify_signature() 84 d->digest_algorithm = cpu_to_le16(hash_alg - fsverity_hash_algs); in fsverity_verify_signature() 85 d->digest_size = cpu_to_le16(hash_alg->digest_size); in fsverity_verify_signature() 86 memcpy(d->digest, vi->measurement, hash_alg->digest_size); in fsverity_verify_signature() 88 err = verify_pkcs7_signature(d, sizeof(*d) + hash_alg->digest_size, in fsverity_verify_signature() 110 hash_alg->name, hash_alg->digest_size, vi->measurement); in fsverity_verify_signature()
|
D | measure.c | 28 const struct fsverity_hash_alg *hash_alg; in fsverity_ioctl_measure() local 34 hash_alg = vi->tree_params.hash_alg; in fsverity_ioctl_measure() 44 if (arg.digest_size < hash_alg->digest_size) in fsverity_ioctl_measure() 48 arg.digest_algorithm = hash_alg - fsverity_hash_algs; in fsverity_ioctl_measure() 49 arg.digest_size = hash_alg->digest_size; in fsverity_ioctl_measure() 54 if (copy_to_user(uarg->digest, vi->measurement, hash_alg->digest_size)) in fsverity_ioctl_measure()
|
D | open.c | 34 struct fsverity_hash_alg *hash_alg; in fsverity_init_merkle_tree_params() local 42 hash_alg = fsverity_get_hash_alg(inode, hash_algorithm); in fsverity_init_merkle_tree_params() 43 if (IS_ERR(hash_alg)) in fsverity_init_merkle_tree_params() 44 return PTR_ERR(hash_alg); in fsverity_init_merkle_tree_params() 45 params->hash_alg = hash_alg; in fsverity_init_merkle_tree_params() 46 params->digest_size = hash_alg->digest_size; in fsverity_init_merkle_tree_params() 48 params->hashstate = fsverity_prepare_hash_state(hash_alg, salt, in fsverity_init_merkle_tree_params() 73 params->block_size, hash_alg->name); in fsverity_init_merkle_tree_params() 81 hash_alg->name, params->block_size, params->hashes_per_block, in fsverity_init_merkle_tree_params() 130 static int compute_file_measurement(struct fsverity_hash_alg *hash_alg, in compute_file_measurement() argument [all …]
|
D | verify.c | 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() 136 params->hash_alg->name, in verify_page() 147 params->hash_alg->name, hsize, want_hash); in verify_page() 165 level - 1, params->hash_alg->name, hsize, want_hash); in verify_page() 197 req = fsverity_alloc_hash_request(vi->tree_params.hash_alg, GFP_NOFS); in fsverity_verify_page() 201 fsverity_free_hash_request(vi->tree_params.hash_alg, req); in fsverity_verify_page() 234 req = fsverity_alloc_hash_request(params->hash_alg, GFP_NOFS); in fsverity_verify_bio() 262 fsverity_free_hash_request(params->hash_alg, req); in fsverity_verify_bio()
|
D | enable.c | 169 req = fsverity_alloc_hash_request(params->hash_alg, GFP_KERNEL); in build_merkle_tree() 194 fsverity_free_hash_request(params->hash_alg, req); in build_merkle_tree() 275 params.hash_alg->name, params.digest_size, desc->root_hash); in enable_verity()
|
D | fsverity_private.h | 46 struct fsverity_hash_alg *hash_alg; /* the hash algorithm */ member
|
/fs/incfs/ |
D | integrity.c | 136 struct incfs_hash_alg *hash_alg = NULL; in incfs_alloc_mtree() local 150 hash_alg = incfs_get_hash_alg(si.hash_algorithm); in incfs_alloc_mtree() 151 if (IS_ERR(hash_alg)) in incfs_alloc_mtree() 152 return ERR_PTR(PTR_ERR(hash_alg)); in incfs_alloc_mtree() 154 if (si.root_hash.len < hash_alg->digest_size) in incfs_alloc_mtree() 161 result->alg = hash_alg; in incfs_alloc_mtree() 194 memcpy(result->root_hash, si.root_hash.data, hash_alg->digest_size); in incfs_alloc_mtree()
|
/fs/nfs/ |
D | nfs4session.h | 66 u32 hash_alg; member
|