Home
last modified time | relevance | path

Searched refs:partition_name_len (Results 1 – 18 of 18) sorted by relevance

/external/avb/libavb/
Davb_chain_partition_descriptor.c44 dest->partition_name_len = avb_be32toh(dest->partition_name_len); in avb_chain_partition_descriptor_validate_and_byteswap()
54 if (!avb_safe_add_to(&expected_size, dest->partition_name_len) || in avb_chain_partition_descriptor_validate_and_byteswap()
Davb_hash_descriptor.c44 dest->partition_name_len = avb_be32toh(dest->partition_name_len); in avb_hash_descriptor_validate_and_byteswap()
51 if (!avb_safe_add_to(&expected_size, dest->partition_name_len) || in avb_hash_descriptor_validate_and_byteswap()
Davb_hashtree_descriptor.c52 dest->partition_name_len = avb_be32toh(dest->partition_name_len); in avb_hashtree_descriptor_validate_and_byteswap()
59 if (!avb_safe_add_to(&expected_size, dest->partition_name_len) || in avb_hashtree_descriptor_validate_and_byteswap()
Davb_slot_verify.c310 desc_salt = desc_partition_name + hash_desc.partition_name_len; in load_and_verify_hash_partition()
313 if (!avb_validate_utf8(desc_partition_name, hash_desc.partition_name_len)) { in load_and_verify_hash_partition()
324 hash_desc.partition_name_len); in load_and_verify_hash_partition()
332 if (hash_desc.partition_name_len >= AVB_PART_NAME_MAX_SIZE) { in load_and_verify_hash_partition()
337 avb_memcpy(part_name, desc_partition_name, hash_desc.partition_name_len); in load_and_verify_hash_partition()
338 part_name[hash_desc.partition_name_len] = '\0'; in load_and_verify_hash_partition()
352 hash_desc.partition_name_len, in load_and_verify_hash_partition()
557 size_t partition_name_len, in load_and_verify_vbmeta() argument
593 if (!avb_validate_utf8((const uint8_t*)partition_name, partition_name_len)) { in load_and_verify_vbmeta()
603 partition_name_len, in load_and_verify_vbmeta()
[all …]
Davb_chain_partition_descriptor.h54 uint32_t partition_name_len; member
Davb_hash_descriptor.h68 uint32_t partition_name_len; member
Davb_hashtree_descriptor.h78 uint32_t partition_name_len; member
/external/u-boot/lib/libavb/
Davb_chain_partition_descriptor.c25 dest->partition_name_len = avb_be32toh(dest->partition_name_len); in avb_chain_partition_descriptor_validate_and_byteswap()
35 if (!avb_safe_add_to(&expected_size, dest->partition_name_len) || in avb_chain_partition_descriptor_validate_and_byteswap()
Davb_hash_descriptor.c25 dest->partition_name_len = avb_be32toh(dest->partition_name_len); in avb_hash_descriptor_validate_and_byteswap()
32 if (!avb_safe_add_to(&expected_size, dest->partition_name_len) || in avb_hash_descriptor_validate_and_byteswap()
Davb_slot_verify.c190 desc_salt = desc_partition_name + hash_desc.partition_name_len; in load_and_verify_hash_partition()
193 if (!avb_validate_utf8(desc_partition_name, hash_desc.partition_name_len)) { in load_and_verify_hash_partition()
204 hash_desc.partition_name_len); in load_and_verify_hash_partition()
212 if (hash_desc.partition_name_len >= AVB_PART_NAME_MAX_SIZE) { in load_and_verify_hash_partition()
217 avb_memcpy(part_name, desc_partition_name, hash_desc.partition_name_len); in load_and_verify_hash_partition()
218 part_name[hash_desc.partition_name_len] = '\0'; in load_and_verify_hash_partition()
232 hash_desc.partition_name_len, in load_and_verify_hash_partition()
448 size_t partition_name_len, in load_and_verify_vbmeta() argument
484 if (!avb_validate_utf8((const uint8_t*)partition_name, partition_name_len)) { in load_and_verify_vbmeta()
494 partition_name_len, in load_and_verify_vbmeta()
[all …]
Davb_hashtree_descriptor.c33 dest->partition_name_len = avb_be32toh(dest->partition_name_len); in avb_hashtree_descriptor_validate_and_byteswap()
40 if (!avb_safe_add_to(&expected_size, dest->partition_name_len) || in avb_hashtree_descriptor_validate_and_byteswap()
Davb_chain_partition_descriptor.h35 uint32_t partition_name_len; member
Davb_hash_descriptor.h49 uint32_t partition_name_len; member
Davb_hashtree_descriptor.h59 uint32_t partition_name_len; member
/external/avb/test/
Davb_util_unittest.cc167 h.partition_name_len = htobe32(10); in TEST_F()
219 EXPECT_EQ(10UL, s.partition_name_len); in TEST_F()
230 bad.partition_name_len = htobe32(30); in TEST_F()
254 h.partition_name_len = htobe32(10); in TEST_F()
262 EXPECT_EQ(10UL, s.partition_name_len); in TEST_F()
273 bad.partition_name_len = htobe32(30); in TEST_F()
298 h.partition_name_len = htobe32(16); in TEST_F()
306 EXPECT_EQ(16UL, s.partition_name_len); in TEST_F()
321 bad.partition_name_len = htobe32(24); in TEST_F()
Davbtool_unittest.cc590 EXPECT_EQ(6UL, d.partition_name_len); in AddHashFooterTest()
598 d.partition_name_len)); in AddHashFooterTest()
599 o += d.partition_name_len; in AddHashFooterTest()
1083 EXPECT_EQ(6UL, d.partition_name_len); in AddHashtreeFooterTest()
1091 d.partition_name_len)); in AddHashtreeFooterTest()
1092 o += d.partition_name_len; in AddHashtreeFooterTest()
1312 EXPECT_EQ(6UL, d.partition_name_len); in AddHashtreeFooterFECTest()
1320 d.partition_name_len)); in AddHashtreeFooterFECTest()
1321 o += d.partition_name_len; in AddHashtreeFooterFECTest()
2081 d.partition_name_len)); in TEST_F()
[all …]
Davb_slot_verify_unittest.cc879 hash_desc.partition_name_len)); in TEST_F()
880 o += hash_desc.partition_name_len; in TEST_F()
1069 hash_desc.partition_name_len)); in TEST_F()
1070 o += hash_desc.partition_name_len; in TEST_F()
/external/avb/
Davbtool1284 self.hash_algorithm, partition_name_len, salt_len,
1288 self.SIZE - 16 + partition_name_len + salt_len + root_digest_len, 8)
1296 partition_name_len)])
1299 o += partition_name_len
1463 partition_name_len, salt_len,
1467 self.SIZE - 16 + partition_name_len + salt_len + digest_len, 8)
1474 partition_name_len)])
1477 o += partition_name_len
1689 partition_name_len,
1692 self.SIZE - 16 + partition_name_len + public_key_len, 8)
[all …]