Searched refs:hash_tree (Results 1 – 5 of 5) sorted by relevance
| /OK3568_Linux_fs/kernel/fs/incfs/ |
| H A D | verity.c | 298 struct mtree *hash_tree, loff_t hash_offset, in incfs_build_merkle_tree() argument 319 for (lvl = 0; lvl <= hash_tree->depth; lvl++) { in incfs_build_merkle_tree() 329 hash_tree->hash_level_suboffset[lvl - 1]; in incfs_build_merkle_tree() 351 if (lvl == hash_tree->depth) in incfs_build_merkle_tree() 355 hash_tree->hash_level_suboffset[lvl]; in incfs_build_merkle_tree() 421 struct mtree *hash_tree = NULL; in incfs_add_signature_record() local 446 hash_tree = incfs_alloc_mtree(range((u8 *)&sig, sizeof(sig)), in incfs_add_signature_record() 448 if (IS_ERR(hash_tree)) in incfs_add_signature_record() 449 return PTR_ERR(hash_tree); in incfs_add_signature_record() 463 hash_tree->hash_tree_area_size, in incfs_add_signature_record() [all …]
|
| H A D | data_mgmt.c | 1481 struct mtree *hash_tree = NULL; in incfs_process_new_hash_block() local 1499 hash_tree = df->df_hash_tree; in incfs_process_new_hash_block() 1501 if (!hash_tree || !sig || sig->hash_offset == 0) in incfs_process_new_hash_block() 1548 struct mtree *hash_tree = NULL; in process_file_signature_md() local 1587 hash_tree = incfs_alloc_mtree(range(buf, signature->sig_size), in process_file_signature_md() 1589 if (IS_ERR(hash_tree)) { in process_file_signature_md() 1590 error = PTR_ERR(hash_tree); in process_file_signature_md() 1591 hash_tree = NULL; in process_file_signature_md() 1594 if (hash_tree->hash_tree_area_size != signature->hash_size) { in process_file_signature_md() 1607 df->df_hash_tree = hash_tree; in process_file_signature_md() [all …]
|
| H A D | pseudo_files.c | 309 struct mtree *hash_tree = NULL; in init_new_file() local 353 hash_tree = incfs_alloc_mtree(raw_signature, block_count); in init_new_file() 354 if (IS_ERR(hash_tree)) { in init_new_file() 355 error = PTR_ERR(hash_tree); in init_new_file() 356 hash_tree = NULL; in init_new_file() 361 raw_signature, hash_tree->hash_tree_area_size, in init_new_file() 367 hash_tree->hash_tree_area_size); in init_new_file() 381 incfs_free_mtree(hash_tree); in init_new_file()
|
| /OK3568_Linux_fs/u-boot/scripts/ |
| H A D | avbtool.py | 1521 root_digest, hash_tree = generate_hash_tree(image, self.image_size, 1541 if hash_tree != hash_tree_ondisk: 3723 root_digest, hash_tree = generate_hash_tree(image, image.image_size, 3734 hash_tree = b'' 3753 padding_needed = (round_to_multiple(len(hash_tree), image.block_size) - 3754 len(hash_tree)) 3755 hash_tree_with_padding = hash_tree + b'\0' * padding_needed
|
| /OK3568_Linux_fs/tools/linux/Linux_SecurityAVB/scripts/ |
| H A D | avbtool | 1347 root_digest, hash_tree = generate_hash_tree(image, self.image_size, 1361 if hash_tree != hash_tree_ondisk: 3133 root_digest, hash_tree = generate_hash_tree(image, image.image_size, 3158 padding_needed = (round_to_multiple(len(hash_tree), image.block_size) - 3159 len(hash_tree)) 3160 hash_tree_with_padding = hash_tree + '\0'*padding_needed
|