Lines Matching refs:alg
66 df->df_hash_tree->alg->digest_size); in incfs_get_root_hash()
131 static int incfs_compute_file_digest(struct incfs_hash_alg *alg, in incfs_compute_file_digest() argument
135 SHASH_DESC_ON_STACK(d, alg->shash); in incfs_compute_file_digest()
137 d->tfm = alg->shash; in incfs_compute_file_digest()
299 struct incfs_hash_alg *alg, struct mem_range hash) in incfs_build_merkle_tree() argument
343 error = incfs_calc_digest(alg, partial_buf, hash); in incfs_build_merkle_tree()
425 struct incfs_hash_alg *alg = incfs_get_hash_alg(INCFS_HASH_TREE_SHA256); in incfs_add_signature_record() local
427 int hash_size = alg->digest_size; in incfs_add_signature_record()
470 error = incfs_build_merkle_tree(f, df, bfc, hash_tree, hash_offset, alg, in incfs_add_signature_record()
476 memcpy(sig.hash_section.root_hash, hash.data, alg->digest_size); in incfs_add_signature_record()
489 memcpy(hash_tree->root_hash, hash.data, alg->digest_size); in incfs_add_signature_record()