Home
last modified time | relevance | path

Searched refs:image_len (Results 1 – 6 of 6) sorted by relevance

/hal_espressif-3.7.0/components/bootloader_support/src/secure_boot_v1/
Dsecure_boot.c41 static bool secure_boot_generate(uint32_t image_len){ in secure_boot_generate() argument
49 if (image_len % sizeof(digest.iv) != 0) { in secure_boot_generate()
50 image_len = (image_len / sizeof(digest.iv) + 1) * sizeof(digest.iv); in secure_boot_generate()
64 image = bootloader_mmap(ESP_BOOTLOADER_OFFSET, image_len); in secure_boot_generate()
66 ESP_LOGE(TAG, "bootloader_mmap(0x1000, 0x%x) failed", image_len); in secure_boot_generate()
69 for (size_t i = 0; i < image_len; i+= sizeof(digest.iv)) { in secure_boot_generate()
132 uint32_t image_len = bootloader_data.image_len; in esp_secure_boot_generate_digest() local
135 image_len -= ESP_IMAGE_HASH_LEN; in esp_secure_boot_generate_digest()
137 if (false == secure_boot_generate(image_len)){ in esp_secure_boot_generate_digest()
/hal_espressif-3.7.0/components/bootloader_support/test_apps/bootloader_support/main/
Dtest_verify_image.c33 TEST_ASSERT_NOT_EQUAL(0, data.image_len);
37 TEST_ASSERT_EQUAL(data.image_len, bootloader_length);
51 TEST_ASSERT_NOT_EQUAL(0, data.image_len);
52 TEST_ASSERT_TRUE(data.image_len <= running->size);
/hal_espressif-3.7.0/components/bootloader_support/src/
Desp_image_format.c498 data->image_len = sizeof(esp_image_header_t); in process_image_header()
507 uint32_t start_segments = data->start_addr + data->image_len; in process_segments()
523 data->image_len += end_addr - start_segments; in process_segments()
752 *length = (err == ESP_OK) ? data.image_len : 0; in esp_image_verify_bootloader()
777 …CHECK_ERR(bootloader_flash_read(data->start_addr + data->image_len, &data->image_digest, HASH_LEN,… in process_appended_hash_and_sig()
779 data->image_len += HASH_LEN; in process_appended_hash_and_sig()
783 const uint32_t end = data->image_len; in process_appended_hash_and_sig()
823 uint32_t unpadded_length = data->image_len; in process_checksum()
841 data->image_len += length; in process_checksum()
855 uint32_t end = data->start_addr + data->image_len; in verify_secure_boot_signature()
[all …]
/hal_espressif-3.7.0/components/bootloader_support/include/
Desp_image_format.h34 uint32_t image_len; /* Length of image on flash, in bytes */ member
/hal_espressif-3.7.0/components/bootloader_support/src/secure_boot_v2/
Dsecure_boot.c188 …te_image_public_key_digests(bootloader_data.start_addr, bootloader_data.image_len - SIG_BLOCK_PADD… in check_and_generate_secure_boot_keys()
255 …ret = s_calculate_image_public_key_digests(image_data->start_addr, image_data->image_len - SIG_BLO… in check_and_generate_secure_boot_keys()
Dsecure_boot_signatures_app.c72 size_t sig_block_addr = metadata.start_addr + ALIGN_UP(metadata.image_len, FLASH_SECTOR_SIZE); in esp_secure_boot_get_signature_blocks_for_running_app()