/system/update_engine/payload_generator/ |
D | payload_generation_config_android_unittest.cc | 150 const VerityConfig& verity = image_config_.partitions[0].verity; in TEST_F() local 151 EXPECT_FALSE(verity.IsEmpty()); in TEST_F() 152 EXPECT_EQ(ExtentForRange(0, 2), verity.hash_tree_data_extent); in TEST_F() 153 EXPECT_EQ(ExtentForRange(2, 1), verity.hash_tree_extent); in TEST_F() 154 EXPECT_EQ("sha1", verity.hash_tree_algorithm); in TEST_F() 156 EXPECT_EQ(salt, verity.hash_tree_salt); in TEST_F() 157 EXPECT_EQ(ExtentForRange(0, 3), verity.fec_data_extent); in TEST_F() 158 EXPECT_EQ(ExtentForRange(3, 2), verity.fec_extent); in TEST_F() 159 EXPECT_EQ(2u, verity.fec_roots); in TEST_F() 169 const VerityConfig& verity = image_config_.partitions[0].verity; in TEST_F() local [all …]
|
D | payload_generation_config_android.cc | 48 part->verity.hash_tree_algorithm = in AvbDescriptorCallback() 54 part->verity.hash_tree_salt.assign(salt, salt + hashtree.salt_len); in AvbDescriptorCallback() 58 part->verity.hash_tree_data_extent = in AvbDescriptorCallback() 63 part->verity.hash_tree_extent = ExtentForBytes( in AvbDescriptorCallback() 67 part->verity.fec_data_extent = in AvbDescriptorCallback() 69 part->verity.fec_extent = ExtentForBytes( in AvbDescriptorCallback() 71 part->verity.fec_roots = hashtree.fec_num_roots; in AvbDescriptorCallback() 80 if (part.verity.hash_tree_extent.num_blocks() != 0) { in VerifyVerityConfig() 82 HashTreeBuilder::HashFunction(part.verity.hash_tree_algorithm); in VerifyVerityConfig() 86 part.verity.hash_tree_data_extent.num_blocks() * block_size; in VerifyVerityConfig() [all …]
|
D | payload_file.cc | 106 part.verity = new_conf.verity; in AddPartition() 160 if (!part.verity.IsEmpty()) { in WritePayload() 161 if (part.verity.hash_tree_extent.num_blocks() != 0) { in WritePayload() 163 part.verity.hash_tree_data_extent; in WritePayload() 164 *partition->mutable_hash_tree_extent() = part.verity.hash_tree_extent; in WritePayload() 165 partition->set_hash_tree_algorithm(part.verity.hash_tree_algorithm); in WritePayload() 166 if (!part.verity.hash_tree_salt.empty()) in WritePayload() 167 partition->set_hash_tree_salt(part.verity.hash_tree_salt.data(), in WritePayload() 168 part.verity.hash_tree_salt.size()); in WritePayload() 170 if (part.verity.fec_extent.num_blocks() != 0) { in WritePayload() [all …]
|
D | payload_file.h | 101 VerityConfig verity; member
|
D | payload_generation_config.h | 118 VerityConfig verity; member
|
D | payload_generation_config.cc | 296 TEST_AND_RETURN_FALSE(part.verity.IsEmpty()); in Validate() 309 TEST_AND_RETURN_FALSE(part.verity.IsEmpty()); in Validate()
|
D | delta_diff_generator.cc | 142 new_part_.verity.fec_extent.num_blocks() * config_.block_size; in Run() 145 new_part_.verity.hash_tree_extent.num_blocks() * config_.block_size; in Run()
|
/system/core/fs_mgr/ |
D | fs_mgr_verity.cpp | 148 static int verify_verity_signature(const struct fec_verity_metadata& verity) in verify_verity_signature() argument 150 if (verify_table(verity.signature, sizeof(verity.signature), in verify_verity_signature() 151 verity.table, verity.table_length) == 0 || in verify_verity_signature() 152 verify_table(verity.ecc_signature, sizeof(verity.ecc_signature), in verify_verity_signature() 153 verity.table, verity.table_length) == 0) { in verify_verity_signature() 385 struct fec_verity_metadata verity; in fs_mgr_setup_verity() local 400 if (fec_verity_get_metadata(f, &verity) < 0) { in fs_mgr_setup_verity() 411 if (verity.disabled) { in fs_mgr_setup_verity() 433 if (!verity.table) { in fs_mgr_setup_verity() 437 params.table = strdup(verity.table); in fs_mgr_setup_verity() [all …]
|
/system/core/set-verity-state/ |
D | Android.bp | 8 name: "set-verity-state", 9 srcs: ["set-verity-state.cpp"], 26 "enable-verity", 27 "disable-verity",
|
/system/extras/verity/ |
D | verity_verifier.cpp | 107 fec_verity_metadata verity; in main() local 108 if (!input.get_verity_metadata(verity)) { in main() 113 int ret = verify_table(argv[3], verity.signature, sizeof(verity.signature), in main() 114 verity.table, verity.table_length); in main()
|
D | VeritySigner.mf | 1 Main-Class: com.android.verity.VeritySigner
|
D | BootSignature.mf | 1 Main-Class: com.android.verity.BootSignature
|
D | VeritySigner.java | 17 package com.android.verity;
|
/system/extras/boottime_tools/io_analysis/ |
D | check_verity.py | 109 io, verity, total, blocks = get_average_and_std_dev(l) 111 verity[0], verity[1], verity[2], "total:", total[0], total[1], total[2] 112 return io, verity, total, blocks 116 io, verity, total, blocks = self.dump_list ("total,", self.reads) 118 verity_latency_per_1024KB = verity[2] / blocks * (1024 / 4)
|
/system/extras/libfec/ |
D | fec_open.cpp | 314 f->verity.hashtree.hash_start); in load_verity() 324 f->verity.hashtree.hash_start); in load_verity() 338 f->verity.hashtree.hash_start); in load_verity() 405 f->verity = {}; in reset_handle() 436 if (!f->verity.metadata_start) { in fec_verity_get_metadata() 441 check(f->data_size <= f->verity.hashtree.hash_start); in fec_verity_get_metadata() 442 check(f->data_size <= f->verity.metadata_start); in fec_verity_get_metadata() 443 check(!f->verity.table.empty()); in fec_verity_get_metadata() 445 data->disabled = f->verity.disabled; in fec_verity_get_metadata() 447 memcpy(data->signature, f->verity.header.signature, in fec_verity_get_metadata() [all …]
|
D | fec_private.h | 144 verity_info verity; member 148 return avb.valid ? avb.hashtree : verity.hashtree; in hashtree()
|
D | fec_verity.cpp | 445 verity_info *v = &f->verity; in parse_table() 484 verity_info *v = &f->verity; in rewrite_metadata() 548 verity_info *v = &f->verity; in verity_parse_header() 637 verity_info *v = &f->verity; in fec_verity_set_status()
|
/system/connectivity/wificond/ |
D | runtests.sh | 41 adb disable-verity
|
/system/extras/libfec/test/ |
D | fec_unittest.cpp | 141 handle->verity.metadata_start); in TEST_F() 142 ASSERT_EQ(verity_header_.length, handle->verity.header.length); in TEST_F() 143 ASSERT_EQ(verity_table_, handle->verity.table); in TEST_F() 175 handle->verity.metadata_start); in TEST_F() 186 ASSERT_EQ(handle->verity.metadata_start + 8 * 4096, ecc_metadata.start); in TEST_F()
|
/system/sepolicy/prebuilts/api/30.0/private/ |
D | fsverity_init.te | 15 # Allow init to write to /proc/sys/fs/verity/require_signatures
|
D | installd.te | 40 # Allow installd to access apk verity feature flag (for legacy case).
|
/system/sepolicy/private/ |
D | fsverity_init.te | 15 # Allow init to write to /proc/sys/fs/verity/require_signatures
|
D | installd.te | 40 # Allow installd to access apk verity feature flag (for legacy case).
|
/system/sepolicy/prebuilts/api/31.0/private/ |
D | fsverity_init.te | 15 # Allow init to write to /proc/sys/fs/verity/require_signatures
|
/system/sepolicy/prebuilts/api/29.0/private/ |
D | fsverity_init.te | 19 # Allow init to write to /proc/sys/fs/verity/require_signatures
|