Home
last modified time | relevance | path

Searched refs:root_hash (Results 1 – 15 of 15) sorted by relevance

/OK3568_Linux_fs/kernel/fs/incfs/
H A Dintegrity.c56 struct mem_range root_hash; member
121 if (!read_mem_range(&p, top, &si->root_hash)) in incfs_parse_signature()
154 if (si.root_hash.len < hash_alg->digest_size) in incfs_alloc_mtree()
194 memcpy(result->root_hash, si.root_hash.data, hash_alg->digest_size); in incfs_alloc_mtree()
H A Dverity.c58 static int incfs_get_root_hash(struct file *filp, u8 *root_hash) in incfs_get_root_hash() argument
65 memcpy(root_hash, df->df_hash_tree->root_hash, in incfs_get_root_hash()
270 err = incfs_get_root_hash(filp, desc->root_hash); in incfs_get_fsverity_descriptor()
405 u8 root_hash[32]; in incfs_add_signature_record() member
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()
H A Dintegrity.h30 u8 root_hash[INCFS_MAX_HASH_SIZE]; member
H A Ddata_mgmt.c707 memcpy(stored_digest, tree->root_hash, digest_size); in validate_hash_tree()
/OK3568_Linux_fs/kernel/fs/verity/
H A Denable.c153 u8 *root_hash) in build_merkle_tree() argument
164 memset(root_hash, 0, params->digest_size); in build_merkle_tree()
190 memcpy(root_hash, pending_hashes, params->digest_size); in build_merkle_tree()
268 BUILD_BUG_ON(sizeof(desc->root_hash) < FS_VERITY_MAX_DIGEST_SIZE); in enable_verity()
269 err = build_merkle_tree(filp, &params, desc->root_hash); in enable_verity()
275 params.hash_alg->name, params.digest_size, desc->root_hash); in enable_verity()
H A Dopen.c172 memcpy(vi->root_hash, desc->root_hash, vi->tree_params.digest_size); in fsverity_create_info()
H A Dfsverity_private.h75 u8 root_hash[FS_VERITY_MAX_DIGEST_SIZE]; member
H A Dverify.c145 want_hash = vi->root_hash; in verify_page()
/OK3568_Linux_fs/kernel/drivers/md/
H A Ddm-verity-verify-sig.c106 int verity_verify_root_hash(const void *root_hash, size_t root_hash_len, in verity_verify_root_hash() argument
111 if (!root_hash || root_hash_len == 0) in verity_verify_root_hash()
121 ret = verify_pkcs7_signature(root_hash, root_hash_len, sig_data, in verity_verify_root_hash()
/OK3568_Linux_fs/kernel/tools/testing/selftests/filesystems/incfs/
H A Dutils.c114 size_t format_signature(void **buf, const char *root_hash, const char *add_data) in format_signature() argument
135 memcpy(sb->hash_section.hash, root_hash, SHA256_DIGEST_SIZE); in format_signature()
142 incfs_uuid_t *id_out, size_t size, const char *root_hash, in crypto_emit_file() argument
158 args.signature_size = format_signature(&signature, root_hash, add_data); in crypto_emit_file()
H A Dincfs_perf.c426 static struct hash_block *build_mtree(size_t size, char *root_hash, in build_mtree() argument
489 sha256(mtree[0].data, INCFS_DATA_FILE_BLOCK_SIZE, root_hash); in build_mtree()
565 char root_hash[INCFS_MAX_HASH_SIZE]; in test_incfs_file() local
567 struct hash_block *mtree = build_mtree(options->size, root_hash, in test_incfs_file()
577 root_hash, "add_data"); in test_incfs_file()
H A Dutils.h46 incfs_uuid_t *id_out, size_t size, const char *root_hash,
H A Dincfs_test.c134 char root_hash[INCFS_MAX_HASH_SIZE]; member
882 sha256(data, INCFS_DATA_FILE_BLOCK_SIZE, file->root_hash); in build_mtree()
925 INCFS_DATA_FILE_BLOCK_SIZE, file->root_hash); in build_mtree()
2078 file->size, file->root_hash, in hash_tree_test()
2771 file->size, file->root_hash, in get_hash_blocks_test()
3411 file->size, file->root_hash, in hash_block_count_test()
3869 __u8 root_hash[64]; /* Merkle tree root hash */ in enable_verity() member
3916 memcpy(fsverity_descriptor.root_hash, file->root_hash, 32); in enable_verity()
4024 TESTEQUAL(memcmp(desc.root_hash, file->root_hash, SHA256_DIGEST_SIZE), in validate_verity()
4026 TESTEQUAL(memzero(desc.root_hash + SHA256_DIGEST_SIZE, in validate_verity()
[all …]
/OK3568_Linux_fs/kernel/include/uapi/linux/
H A Dfsverity.h58 __u8 root_hash[64]; /* Merkle tree root hash */ member
/OK3568_Linux_fs/kernel/Documentation/filesystems/
H A Dfsverity.rst415 __u8 root_hash[64]; /* Merkle tree root hash */