Home
last modified time | relevance | path

Searched refs:icp_entry (Results 1 – 7 of 7) sorted by relevance

/external/avb/libavb_aftl/
Davb_aftl_util.c359 static bool parse_trillian_log_root_descriptor(AftlIcpEntry* icp_entry, in parse_trillian_log_root_descriptor() argument
362 avb_assert(icp_entry); in parse_trillian_log_root_descriptor()
371 &(icp_entry->log_root_descriptor.version), aftl_blob, blob_end)) { in parse_trillian_log_root_descriptor()
378 &(icp_entry->log_root_descriptor.tree_size), aftl_blob, blob_end)) { in parse_trillian_log_root_descriptor()
384 if (!read_u8(&(icp_entry->log_root_descriptor.root_hash_size), in parse_trillian_log_root_descriptor()
390 if (icp_entry->log_root_descriptor.root_hash_size != AVB_AFTL_HASH_SIZE) { in parse_trillian_log_root_descriptor()
396 if (!read_mem(&(icp_entry->log_root_descriptor.root_hash), in parse_trillian_log_root_descriptor()
397 icp_entry->log_root_descriptor.root_hash_size, in parse_trillian_log_root_descriptor()
406 &(icp_entry->log_root_descriptor.timestamp), aftl_blob, blob_end)) { in parse_trillian_log_root_descriptor()
413 &(icp_entry->log_root_descriptor.revision), aftl_blob, blob_end)) { in parse_trillian_log_root_descriptor()
[all …]
Davb_aftl_validate.c37 AftlIcpEntry* icp_entry) { in avb_aftl_verify_vbmeta_hash() argument
40 avb_assert(vbmeta != NULL && icp_entry != NULL); in avb_aftl_verify_vbmeta_hash()
45 if (icp_entry->annotation_leaf->annotation->vbmeta_hash_size != in avb_aftl_verify_vbmeta_hash()
53 icp_entry->annotation_leaf->annotation->vbmeta_hash, in avb_aftl_verify_vbmeta_hash()
58 bool avb_aftl_verify_icp_root_hash(AftlIcpEntry* icp_entry) { in avb_aftl_verify_icp_root_hash() argument
62 avb_assert(icp_entry != NULL); in avb_aftl_verify_icp_root_hash()
64 if (!avb_aftl_rfc6962_hash_leaf(icp_entry->annotation_leaf_raw, in avb_aftl_verify_icp_root_hash()
65 icp_entry->annotation_leaf_size, in avb_aftl_verify_icp_root_hash()
70 if (!avb_aftl_root_from_icp(icp_entry->leaf_index, in avb_aftl_verify_icp_root_hash()
71 icp_entry->log_root_descriptor.tree_size, in avb_aftl_verify_icp_root_hash()
[all …]
Davb_aftl_validate.h43 AftlIcpEntry* icp_entry); /* Pointer to the AftlIcpEntry to verify. */
47 AftlIcpEntry* icp_entry); /* Pointer to the AftlIcpEntry to verify. */
53 AftlIcpEntry* icp_entry); /* Pointer to the AftlIcpEntry to verify. */
Davb_aftl_util.h53 AftlIcpEntry* icp_entry, /* The icp_entry containing the descriptor. */
/external/avb/test/
Davb_aftl_util_unittest.cc81 void TestAftlIcpEntry(AftlIcpEntry* icp_entry) { in TestAftlIcpEntry() argument
83 EXPECT_GT(icp_entry->log_url_size, 0ul); in TestAftlIcpEntry()
84 EXPECT_GT(icp_entry->leaf_index, 1ul); in TestAftlIcpEntry()
85 EXPECT_GT(icp_entry->log_root_descriptor_size, 0ul); in TestAftlIcpEntry()
86 EXPECT_GT(icp_entry->annotation_leaf_size, 0ul); in TestAftlIcpEntry()
87 EXPECT_EQ(icp_entry->log_root_sig_size, AVB_AFTL_SIGNATURE_SIZE); in TestAftlIcpEntry()
88 EXPECT_GT(icp_entry->proof_hash_count, 0ul); in TestAftlIcpEntry()
89 EXPECT_LT(icp_entry->proof_hash_count, 64ul); in TestAftlIcpEntry()
90 EXPECT_GT(icp_entry->inc_proof_size, 0ul); in TestAftlIcpEntry()
91 EXPECT_EQ(mem_to_hexstring(icp_entry->log_url, 8), "6c6f672e656e6470"); in TestAftlIcpEntry()
[all …]
/external/avb/
Daftltool1356 def add_icp_entry(self, icp_entry): argument
1362 self.icp_entries.append(icp_entry)
1364 self.image_header.aftl_image_size += icp_entry.get_expected_size()
1383 for icp_entry in self.icp_entries:
1386 if icp_entry.verify_vbmeta_image(vbmeta_image, pub_key):
1409 for icp_entry in self.icp_entries:
1410 aftl_image.extend(icp_entry.encode())
1425 for icp_entry in self.icp_entries:
1426 if not icp_entry.is_valid():
1438 for i, icp_entry in enumerate(self.icp_entries):
[all …]
Daftltool.py1356 def add_icp_entry(self, icp_entry): argument
1362 self.icp_entries.append(icp_entry)
1364 self.image_header.aftl_image_size += icp_entry.get_expected_size()
1383 for icp_entry in self.icp_entries:
1386 if icp_entry.verify_vbmeta_image(vbmeta_image, pub_key):
1409 for icp_entry in self.icp_entries:
1410 aftl_image.extend(icp_entry.encode())
1425 for icp_entry in self.icp_entries:
1426 if not icp_entry.is_valid():
1438 for i, icp_entry in enumerate(self.icp_entries):
[all …]