Home
last modified time | relevance | path

Searched refs:hash_offset (Results 1 – 16 of 16) sorted by relevance

/external/vboot_reference/firmware/lib21/
Dapi.c49 uint32_t hash_offset; in vb2api_init_hash2() local
61 hash_offset = pre->hash_offset; in vb2api_init_hash2()
64 ((uint8_t *)pre + hash_offset); in vb2api_init_hash2()
69 hash_offset += sig->c.total_size; in vb2api_init_hash2()
Dcommon.c382 uint32_t min_offset = 0, hash_offset; in vb2_verify_fw_preamble() local
407 hash_offset = preamble->hash_offset; in vb2_verify_fw_preamble()
408 for (i = 0; i < preamble->hash_count; i++, hash_offset = min_offset) { in vb2_verify_fw_preamble()
411 hash_offset); in vb2_verify_fw_preamble()
416 ((uint8_t *)preamble + hash_offset); in vb2_verify_fw_preamble()
420 sig, preamble->c.total_size - hash_offset); in vb2_verify_fw_preamble()
/external/avb/libavb/
Davb_vbmeta_image.c116 if (!avb_safe_add(&hash_end, h.hash_offset, h.hash_size) || in avb_vbmeta_image_verify()
204 if (avb_safe_memcmp(authentication_block + h.hash_offset, in avb_vbmeta_image_verify()
217 authentication_block + h.hash_offset, in avb_vbmeta_image_verify()
258 dest->hash_offset = avb_be64toh(dest->hash_offset); in avb_vbmeta_image_header_to_host_byte_order()
Davb_vbmeta_image.h143 uint64_t hash_offset; member
/external/u-boot/lib/libavb/
Davb_vbmeta_image.c97 if (!avb_safe_add(&hash_end, h.hash_offset, h.hash_size) || in avb_vbmeta_image_verify()
185 if (avb_safe_memcmp(authentication_block + h.hash_offset, in avb_vbmeta_image_verify()
198 authentication_block + h.hash_offset, in avb_vbmeta_image_verify()
239 dest->hash_offset = avb_be64toh(dest->hash_offset); in avb_vbmeta_image_header_to_host_byte_order()
Davb_vbmeta_image.h124 uint64_t hash_offset; member
/external/vboot_reference/tests/
Dvb21_api_tests.c98 pre->hash_offset = sig_offset = sizeof(*pre); in reset_common_data()
208 sig = (struct vb2_signature *)((uint8_t *)pre + pre->hash_offset); in init_hash_tests()
223 sd->workbuf_preamble_offset + pre->hash_offset, in init_hash_tests()
232 sd->workbuf_preamble_offset + pre->hash_offset + in init_hash_tests()
314 sig = (struct vb2_signature *)((uint8_t *)pre + pre->hash_offset); in check_hash_tests()
Dvb21_host_fw_preamble_tests.c90 hash_next = fp->hash_offset; in preamble_tests()
Dvb21_common_tests.c470 sig = (struct vb2_signature *)(buf + pre->hash_offset); in test_verify_fw_preamble()
477 sig = (struct vb2_signature *)(buf + pre->hash_offset); in test_verify_fw_preamble()
/external/vboot_reference/host/lib21/
Dhost_fw_preamble.c46 hash_next = fp.hash_offset = fp.c.fixed_size + fp.c.desc_size; in vb2_fw_preamble_create()
67 hash_next = fp.hash_offset; in vb2_fw_preamble_create()
/external/avb/test/
Davb_vbmeta_image_unittest.cc277 h->hash_offset = htobe64(4); in TEST_F()
284 h->hash_offset = htobe64(4); in TEST_F()
477 authentication_block_offset + h.hash_offset, in TEST_F()
492 ASSERT_LT(h.hash_offset, h.signature_offset); in TEST_F()
518 h.hash_offset = htobe64(n64); in TEST_F()
558 EXPECT_EQ(n64, s.hash_offset); in TEST_F()
/external/vboot_reference/firmware/lib21/include/
Dvb2_struct.h337 uint32_t hash_offset; member
/external/u-boot/include/
Dcros_ec.h103 int cros_ec_read_hash(struct udevice *dev, uint hash_offset,
/external/u-boot/drivers/misc/
Dcros_ec.c502 int cros_ec_read_hash(struct udevice *dev, uint hash_offset, in cros_ec_read_hash() argument
509 p.offset = hash_offset; in cros_ec_read_hash()
532 p.offset = hash_offset; in cros_ec_read_hash()
/external/avb/
Davbtool.py546 digest_offset = auth_offset + vbmeta_header.hash_offset
2018 self.algorithm_type, self.hash_offset, self.hash_size,
2039 self.hash_offset = 0
2074 self.auxiliary_data_block_size, self.algorithm_type, self.hash_offset,
2092 self.hash_offset, self.hash_size, self.signature_offset,
3017 h.hash_offset = 0
Davbtool546 digest_offset = auth_offset + vbmeta_header.hash_offset
2018 self.algorithm_type, self.hash_offset, self.hash_size,
2039 self.hash_offset = 0
2074 self.auxiliary_data_block_size, self.algorithm_type, self.hash_offset,
2092 self.hash_offset, self.hash_size, self.signature_offset,
3017 h.hash_offset = 0