Searched refs:avb_safe_add_to (Results 1 – 11 of 11) sorted by relevance
/external/avb/libavb/ |
D | avb_hash_descriptor.c | 51 if (!avb_safe_add_to(&expected_size, dest->partition_name_len) || in avb_hash_descriptor_validate_and_byteswap() 52 !avb_safe_add_to(&expected_size, dest->salt_len) || in avb_hash_descriptor_validate_and_byteswap() 53 !avb_safe_add_to(&expected_size, dest->digest_len)) { in avb_hash_descriptor_validate_and_byteswap()
|
D | avb_hashtree_descriptor.c | 59 if (!avb_safe_add_to(&expected_size, dest->partition_name_len) || in avb_hashtree_descriptor_validate_and_byteswap() 60 !avb_safe_add_to(&expected_size, dest->salt_len) || in avb_hashtree_descriptor_validate_and_byteswap() 61 !avb_safe_add_to(&expected_size, dest->root_digest_len)) { in avb_hashtree_descriptor_validate_and_byteswap()
|
D | avb_chain_partition_descriptor.c | 54 if (!avb_safe_add_to(&expected_size, dest->partition_name_len) || in avb_chain_partition_descriptor_validate_and_byteswap() 55 !avb_safe_add_to(&expected_size, dest->public_key_len)) { in avb_chain_partition_descriptor_validate_and_byteswap()
|
D | avb_property_descriptor.c | 48 if (!avb_safe_add_to(&expected_size, dest->key_num_bytes) || in avb_property_descriptor_validate_and_byteswap() 49 !avb_safe_add_to(&expected_size, dest->value_num_bytes)) { in avb_property_descriptor_validate_and_byteswap()
|
D | avb_kernel_cmdline_descriptor.c | 48 if (!avb_safe_add_to(&expected_size, dest->kernel_cmdline_length)) { in avb_kernel_cmdline_descriptor_validate_and_byteswap()
|
D | avb_util.c | 122 bool avb_safe_add_to(uint64_t* value, uint64_t value_to_add) { in avb_safe_add_to() function 144 return avb_safe_add_to(out_result, b); in avb_safe_add() 385 if (!avb_safe_add_to(&total_length, str_len)) { in avb_strdupv()
|
D | avb_vbmeta_image.c | 97 if (!avb_safe_add_to(&block_total, h.authentication_data_block_size) || in avb_vbmeta_image_verify() 98 !avb_safe_add_to(&block_total, h.auxiliary_data_block_size)) { in avb_vbmeta_image_verify()
|
D | avb_util.h | 186 bool avb_safe_add_to(uint64_t* value,
|
D | avb_descriptor.c | 96 if (!avb_safe_add_to(&desc_offset, avb_be64toh(header->descriptors_offset))) { in avb_descriptor_foreach()
|
/external/avb/test/ |
D | avb_util_unittest.cc | 396 EXPECT_NE(0, avb_safe_add_to(&value, 5)); in TEST_F() 401 EXPECT_NE(0, avb_safe_add_to(&value, 2 * pow2_60)); in TEST_F() 404 EXPECT_NE(0, avb_safe_add_to(&value, 8 * pow2_60)); in TEST_F() 407 EXPECT_NE(0, avb_safe_add_to(&value, 3 * pow2_60)); in TEST_F() 410 EXPECT_NE(0, avb_safe_add_to(&value, 2)); in TEST_F() 415 EXPECT_EQ(0, avb_safe_add_to(&value, 8 * pow2_60)); in TEST_F() 417 EXPECT_EQ(0, avb_safe_add_to(&value, 4)); in TEST_F()
|
/external/avb/examples/uefi/ |
D | uefi_avb_boot.c | 162 if (!avb_safe_add_to(&total_size, header->ramdisk_size) || in uefi_avb_boot_kernel() 163 !avb_safe_add_to(&total_size, header->second_size)) { in uefi_avb_boot_kernel()
|