Home
last modified time | relevance | path

Searched refs:image_digest (Results 1 – 10 of 10) sorted by relevance

/device/soc/esp/esp32/components/bootloader_support/src/secure_boot_v1/
Dsecure_boot_signatures_bootloader.c65 …t_verify_signature_block(const esp_secure_boot_sig_block_t *sig_block, const uint8_t *image_digest) in esp_secure_boot_verify_signature_block() argument
68 return esp_secure_boot_verify_ecdsa_signature_block(sig_block, image_digest, verified_digest); in esp_secure_boot_verify_signature_block()
71 …re_block(const esp_secure_boot_sig_block_t *sig_block, const uint8_t *image_digest, uint8_t *verif… in esp_secure_boot_verify_ecdsa_signature_block() argument
90 image_digest, in esp_secure_boot_verify_ecdsa_signature_block()
Dsecure_boot_signatures_app.c64 …re_block(const esp_secure_boot_sig_block_t *sig_block, const uint8_t *image_digest, uint8_t *verif… in esp_secure_boot_verify_ecdsa_signature_block() argument
126 …ret = mbedtls_ecdsa_verify(&ecdsa_context.grp, image_digest, ESP_SECURE_BOOT_DIGEST_LEN, &ecdsa_co… in esp_secure_boot_verify_ecdsa_signature_block()
/device/soc/esp/esp32/components/bootloader_support/include/
Desp_secure_boot.h189 …re_block(const esp_secure_boot_sig_block_t *sig_block, const uint8_t *image_digest, uint8_t *verif…
213 …re_block(const ets_secure_boot_signature_t *sig_block, const uint8_t *image_digest, uint8_t *verif…
223 …t_verify_signature_block(const esp_secure_boot_sig_block_t *sig_block, const uint8_t *image_digest)
Desp_image_format.h42 uint8_t image_digest[32]; /* appended SHA-256 digest */ member
/device/soc/esp/esp32/components/bootloader_support/src/
Desp_image_format.c117 …ader_sha256_handle_t sha_handle, esp_image_metadata_t *data, uint8_t *image_digest, uint8_t *verif…
137 uint8_t image_digest[HASH_LEN] = { [ 0 ... 31] = 0xEE }; in image_load() local
177 err = verify_secure_boot_signature(sha_handle, data, image_digest, verified_digest); in image_load()
213 …ESP_FAULT_ASSERT(!esp_secure_boot_enabled() || memcmp(image_digest, verified_digest, HASH_LEN) == … in image_load()
215 …ESP_FAULT_ASSERT(data->start_addr == ESP_BOOTLOADER_OFFSET || memcmp(image_digest, verified_digest… in image_load()
765 …CHECK_ERR(bootloader_flash_read(data->start_addr + data->image_len, &data->image_digest, HASH_LEN,… in process_appended_hash()
814 …ader_sha256_handle_t sha_handle, esp_image_metadata_t *data, uint8_t *image_digest, uint8_t *verif… in verify_secure_boot_signature() argument
841 bootloader_sha256_finish(sha_handle, image_digest); in verify_secure_boot_signature()
844 bootloader_debug_buffer(image_digest, HASH_LEN, "Calculated secure boot hash"); in verify_secure_boot_signature()
850 …ESP_FAULT_ASSERT(memcmp(image_digest, verified_digest, HASH_LEN) != 0); /* sanity check that these… in verify_secure_boot_signature()
[all …]
Dbootloader_common.c170 memcpy(out_sha_256, data.image_digest, ESP_PARTITION_HASH_LEN); in bootloader_common_get_sha256_of_partition()
/device/soc/esp/esp32/components/esp_rom/include/esp32/rom/
Dsecure_boot.h68 uint8_t image_digest[32]; member
104 …rify_signature(const ets_secure_boot_signature_t *sig, const uint8_t *image_digest, const uint8_t …
/device/soc/esp/esp32/components/bootloader_support/src/secure_boot_v2/
Dsecure_boot_signatures_bootloader.c122 …re_block(const ets_secure_boot_signature_t *sig_block, const uint8_t *image_digest, uint8_t *verif… in esp_secure_boot_verify_rsa_signature_block() argument
156 …int sb_result = ets_secure_boot_verify_signature(sig_block, image_digest, trusted.key_digests[0], … in esp_secure_boot_verify_rsa_signature_block()
162 …int sb_result = ets_secure_boot_verify_signature(sig_block, image_digest, &trusted_key_digests, ve… in esp_secure_boot_verify_rsa_signature_block()
Dsecure_boot_signatures_app.c166 …re_block(const ets_secure_boot_signature_t *sig_block, const uint8_t *image_digest, uint8_t *verif… in esp_secure_boot_verify_rsa_signature_block() argument
277 image_digest, sig_be); in esp_secure_boot_verify_rsa_signature_block()
/device/soc/esp/esp32/components/bootloader_support/src/esp32/
Dsecure_boot.c230 && !memcmp(digest, sig_block->block[0].image_digest, ESP_SECURE_BOOT_DIGEST_LEN)) { in validate_signature_block()
241 uint8_t image_digest[ESP_SECURE_BOOT_DIGEST_LEN] = {0}; in secure_boot_v2_digest_generate() local
243 … ret = bootloader_sha256_flash_contents(flash_offset, sig_block_addr - flash_offset, image_digest); in secure_boot_v2_digest_generate()
257 ret = validate_signature_block(sig_block, image_digest); in secure_boot_v2_digest_generate()
273 …error = ets_secure_boot_verify_signature(sig_block, image_digest, public_key_digest, verified_dige… in secure_boot_v2_digest_generate()