| /OK3568_Linux_fs/kernel/fs/incfs/ |
| H A D | integrity.c | 56 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 D | verity.c | 58 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 D | integrity.h | 30 u8 root_hash[INCFS_MAX_HASH_SIZE]; member
|
| H A D | data_mgmt.c | 707 memcpy(stored_digest, tree->root_hash, digest_size); in validate_hash_tree()
|
| /OK3568_Linux_fs/kernel/fs/verity/ |
| H A D | enable.c | 153 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, ¶ms, desc->root_hash); in enable_verity() 275 params.hash_alg->name, params.digest_size, desc->root_hash); in enable_verity()
|
| H A D | open.c | 172 memcpy(vi->root_hash, desc->root_hash, vi->tree_params.digest_size); in fsverity_create_info()
|
| H A D | fsverity_private.h | 75 u8 root_hash[FS_VERITY_MAX_DIGEST_SIZE]; member
|
| H A D | verify.c | 145 want_hash = vi->root_hash; in verify_page()
|
| /OK3568_Linux_fs/kernel/drivers/md/ |
| H A D | dm-verity-verify-sig.c | 106 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 D | utils.c | 114 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 D | incfs_perf.c | 426 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 D | utils.h | 46 incfs_uuid_t *id_out, size_t size, const char *root_hash,
|
| H A D | incfs_test.c | 134 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 D | fsverity.h | 58 __u8 root_hash[64]; /* Merkle tree root hash */ member
|
| /OK3568_Linux_fs/kernel/Documentation/filesystems/ |
| H A D | fsverity.rst | 415 __u8 root_hash[64]; /* Merkle tree root hash */
|