Home
last modified time | relevance | path

Searched refs:avb_safe_add_to (Results 1 – 11 of 11) sorted by relevance

/external/avb/libavb/
Davb_hash_descriptor.c51 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()
Davb_hashtree_descriptor.c59 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()
Davb_chain_partition_descriptor.c54 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()
Davb_property_descriptor.c48 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()
Davb_kernel_cmdline_descriptor.c48 if (!avb_safe_add_to(&expected_size, dest->kernel_cmdline_length)) { in avb_kernel_cmdline_descriptor_validate_and_byteswap()
Davb_util.c122 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()
Davb_vbmeta_image.c97 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()
Davb_util.h186 bool avb_safe_add_to(uint64_t* value,
Davb_descriptor.c96 if (!avb_safe_add_to(&desc_offset, avb_be64toh(header->descriptors_offset))) { in avb_descriptor_foreach()
/external/avb/test/
Davb_util_unittest.cc396 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/
Duefi_avb_boot.c162 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()