Searched refs:avb_safe_add_to (Results 1 – 10 of 10) sorted by relevance
/external/avb/libavb/ |
D | avb_hash_descriptor.c | 50 if (!avb_safe_add_to(&expected_size, dest->partition_name_len) || in avb_hash_descriptor_validate_and_byteswap() 51 !avb_safe_add_to(&expected_size, dest->salt_len) || in avb_hash_descriptor_validate_and_byteswap() 52 !avb_safe_add_to(&expected_size, dest->digest_len)) { in avb_hash_descriptor_validate_and_byteswap()
|
D | avb_hashtree_descriptor.c | 58 if (!avb_safe_add_to(&expected_size, dest->partition_name_len) || in avb_hashtree_descriptor_validate_and_byteswap() 59 !avb_safe_add_to(&expected_size, dest->salt_len) || in avb_hashtree_descriptor_validate_and_byteswap() 60 !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_util.c | 103 bool avb_safe_add_to(uint64_t* value, uint64_t value_to_add) { in avb_safe_add_to() function 125 return avb_safe_add_to(out_result, b); in avb_safe_add() 360 if (!avb_safe_add_to(&total_length, str_len)) { in avb_strdupv()
|
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_vbmeta_image.c | 96 if (!avb_safe_add_to(&block_total, h.authentication_data_block_size) || in avb_vbmeta_image_verify() 97 !avb_safe_add_to(&block_total, h.auxiliary_data_block_size)) { in avb_vbmeta_image_verify()
|
D | avb_util.h | 180 bool avb_safe_add_to(uint64_t* value,
|
/external/avb/test/ |
D | avb_util_unittest.cc | 395 EXPECT_NE(0, avb_safe_add_to(&value, 5)); in TEST_F() 400 EXPECT_NE(0, avb_safe_add_to(&value, 2 * pow2_60)); in TEST_F() 403 EXPECT_NE(0, avb_safe_add_to(&value, 8 * pow2_60)); in TEST_F() 406 EXPECT_NE(0, avb_safe_add_to(&value, 3 * pow2_60)); in TEST_F() 409 EXPECT_NE(0, avb_safe_add_to(&value, 2)); in TEST_F() 414 EXPECT_EQ(0, avb_safe_add_to(&value, 8 * pow2_60)); in TEST_F() 416 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()
|