Home
last modified time | relevance | path

Searched refs:hash_offset (Results 1 – 14 of 14) 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/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/arm-trusted-firmware/plat/nvidia/tegra/soc/t186/drivers/se/
Dse.c244 uint32_t val = 0U, hash_offset = 0U, scratch_offset = 0U, security; in tegra_se_save_sha256_hash() local
268 val = tegra_se_read_32(SE0_SHA_HASH_RESULT_0 + hash_offset); in tegra_se_save_sha256_hash()
271 hash_offset += BYTES_IN_WORD; in tegra_se_save_sha256_hash()
/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/arm-trusted-firmware/plat/nvidia/tegra/soc/t194/drivers/se/
Dse.c387 uint32_t val = 0U, hash_offset = 0U, scratch_offset = 0U; in tegra_se_save_sha256_pmc_scratch() local
400 val = tegra_se_read_32(SE0_SHA_HASH_RESULT_0 + hash_offset); in tegra_se_save_sha256_pmc_scratch()
403 hash_offset += BYTES_IN_WORD; in tegra_se_save_sha256_pmc_scratch()
/external/vboot_reference/firmware/lib21/include/
Dvb2_struct.h337 uint32_t hash_offset; member
/external/avb/
Davbtool.py563 digest_offset = auth_offset + vbmeta_header.hash_offset
2096 self.algorithm_type, self.hash_offset, self.hash_size,
2119 self.hash_offset = 0
2158 self.hash_offset, self.hash_size, self.signature_offset,
3178 h.hash_offset = 0
Davbtool563 digest_offset = auth_offset + vbmeta_header.hash_offset
2096 self.algorithm_type, self.hash_offset, self.hash_size,
2119 self.hash_offset = 0
2158 self.hash_offset, self.hash_size, self.signature_offset,
3178 h.hash_offset = 0