/hal_espressif-latest/components/bootloader_support/src/ |
D | flash_encrypt.c | 39 // FLASH_CRYPT_CNT *must* be write protected. This will have happened automatically in esp_flash_encryption_init_checks() 46 uint8_t flash_crypt_cnt = 0; in esp_flash_encryption_init_checks() local 47 esp_efuse_read_field_blob(CRYPT_CNT, &flash_crypt_cnt, CRYPT_CNT[0]->bit_count); in esp_flash_encryption_init_checks() 48 if (flash_crypt_cnt == (1<<(CRYPT_CNT[0]->bit_count))-1) { in esp_flash_encryption_init_checks() 50 …// (this distinction is important on ESP32 ECO3 where write-procted FLASH_CRYPT_CNT also write-pro… in esp_flash_encryption_init_checks() 52 …ESP_LOGE(TAG, "Flash encryption & Secure Boot together requires FLASH_CRYPT_CNT efuse to be write … in esp_flash_encryption_init_checks() 88 uint32_t flash_crypt_cnt = 0; in esp_flash_encryption_enabled() 90 …esp_efuse_read_field_blob(ESP_EFUSE_FLASH_CRYPT_CNT, &flash_crypt_cnt, ESP_EFUSE_FLASH_CRYPT_CNT[0… in esp_flash_encryption_enabled() 92 …esp_efuse_read_field_blob(ESP_EFUSE_SPI_BOOT_CRYPT_CNT, &flash_crypt_cnt, ESP_EFUSE_SPI_BOOT_CRYPT… in esp_flash_encryption_enabled() 96 while (flash_crypt_cnt) { in esp_flash_encryption_enabled() [all …]
|
/hal_espressif-latest/components/bootloader_support/include/ |
D | esp_flash_encrypt.h | 39 * Flash encryption is enabled if the FLASH_CRYPT_CNT efuse has an odd number of bits set. 50 * If FLASH_CRYPT_CNT efuse parity is 1 (ie odd number of bits set), 54 * If FLASH_CRYPT_CNT efuse parity is 0 (ie even number of bits set), 65 * FLASH_CRYPT_CNT value (setting the parity to 1) and the EFUSE is re-burned. 71 * device with secure boot enabled and using FLASH_CRYPT_CNT to 98 * If the first initialization was done then FLASH_CRYPT_CNT != 0 119 * It burns FLASH_CRYPT_CNT eFuse based on the CONFIG_SECURE_FLASH_ENCRYPTION_MODE_RELEASE option. 125 /** @brief Returns True if the write protection of FLASH_CRYPT_CNT is set 129 * @return true - if FLASH_CRYPT_CNT is write protected 144 /** @brief Write protect FLASH_CRYPT_CNT [all …]
|
/hal_espressif-latest/components/hal/ |
D | efuse_hal.c | 39 uint32_t flash_crypt_cnt = efuse_ll_get_flash_crypt_cnt(); in efuse_hal_flash_encryption_enabled() local 41 while (flash_crypt_cnt) { in efuse_hal_flash_encryption_enabled() 42 if (flash_crypt_cnt & 1) { in efuse_hal_flash_encryption_enabled() 45 flash_crypt_cnt >>= 1; in efuse_hal_flash_encryption_enabled()
|
/hal_espressif-latest/components/bootloader_support/src/flash_encryption/ |
D | flash_encrypt.c | 50 size_t flash_crypt_cnt = 0; in get_flash_encrypt_cnt_value() local 51 esp_efuse_read_field_cnt(CRYPT_CNT, &flash_crypt_cnt); in get_flash_encrypt_cnt_value() 52 return flash_crypt_cnt; in get_flash_encrypt_cnt_value() 73 size_t flash_crypt_cnt = get_flash_encrypt_cnt_value(); in esp_flash_encrypt_state() local 76 ESP_LOGV(TAG, "CRYPT_CNT %d, write protection %d", flash_crypt_cnt, flash_crypt_wr_dis); in esp_flash_encrypt_state() 78 if (flash_crypt_cnt % 2 == 1) { in esp_flash_encrypt_state() 80 int left = (FLASH_ENC_CNT_MAX - flash_crypt_cnt) / 2; in esp_flash_encrypt_state() 82 left = 0; /* can't update FLASH_CRYPT_CNT, no more flashes */ in esp_flash_encrypt_state() 293 size_t flash_crypt_cnt = get_flash_encrypt_cnt_value(); in esp_flash_encrypt_enable() local 298 size_t new_flash_crypt_cnt = FLASH_ENC_CNT_MAX - flash_crypt_cnt; in esp_flash_encrypt_enable() [all …]
|
/hal_espressif-latest/tools/esptool_py/docs/en/espefuse/ |
D | execute-scripts-cmd.rst | 39 …based on the value of efuses. To get value of an efuse use ``efuses['FLASH_CRYPT_CNT'].get()``. So… 55 espefuse(esp, efuses, args, 'burn_efuse FLASH_CRYPT_CNT 0x7') 57 current_flash_crypt_cnt = efuses['FLASH_CRYPT_CNT'].get() 59 espefuse(esp, efuses, args, 'burn_efuse FLASH_CRYPT_CNT')
|
D | read-write-protections-cmd.rst | 65 > espefuse.py write_protect_efuse WR_DIS FLASH_CRYPT_CNT 69 Permanently write-disabling efuses FLASH_CRYPT_CNT, UART_DOWNLOAD_DIS
|
/hal_espressif-latest/components/efuse/esp32/ |
D | esp_efuse_table.csv | 17 WR_DIS.FLASH_CRYPT_CNT, EFUSE_BLK0, 2, 1, [] wr_dis of FLASH_CRYPT_CNT 72 FLASH_CRYPT_CNT, EFUSE_BLK0, 20, 7, [] Flash encryption is enabl…
|
D | esp_efuse_table.c | 42 {EFUSE_BLK0, 2, 1}, // [] wr_dis of FLASH_CRYPT_CNT, 261 static const esp_efuse_desc_t FLASH_CRYPT_CNT[] = { variable 474 &WR_DIS_FLASH_CRYPT_CNT[0], // [] wr_dis of FLASH_CRYPT_CNT 749 …&FLASH_CRYPT_CNT[0], // [] Flash encryption is enabled if this field has an odd number of bit…
|
/hal_espressif-latest/tools/esptool_py/espefuse/efuse/ |
D | mem_definition_base.py | 124 "FLASH_CRYPT_CNT", 134 name, ["FLASH_CRYPT_CNT", "SPI_BOOT_CRYPT_CNT", "SECURE_VERSION"]
|
/hal_espressif-latest/components/hal/include/hal/ |
D | efuse_hal.h | 40 * Flash encryption is enabled if the FLASH_CRYPT_CNT efuse has an odd number of bits set.
|
/hal_espressif-latest/tools/esptool_py/espefuse/efuse/esp32c3/ |
D | emulate_efuse_controller.py | 41 "flash_crypt_cnt": 0,
|
/hal_espressif-latest/tools/esptool_py/espefuse/efuse/esp32c5/ |
D | emulate_efuse_controller.py | 41 "flash_crypt_cnt": 0,
|
/hal_espressif-latest/tools/esptool_py/espefuse/efuse/esp32c5beta3/ |
D | emulate_efuse_controller.py | 41 "flash_crypt_cnt": 0,
|
/hal_espressif-latest/tools/esptool_py/espefuse/efuse/esp32c6/ |
D | emulate_efuse_controller.py | 41 "flash_crypt_cnt": 0,
|
/hal_espressif-latest/tools/esptool_py/espefuse/efuse/esp32c61/ |
D | emulate_efuse_controller.py | 41 "flash_crypt_cnt": 0,
|
/hal_espressif-latest/tools/esptool_py/espefuse/efuse/esp32h2/ |
D | emulate_efuse_controller.py | 41 "flash_crypt_cnt": 0,
|
/hal_espressif-latest/tools/esptool_py/espefuse/efuse/esp32h2beta1/ |
D | emulate_efuse_controller.py | 41 "flash_crypt_cnt": 0,
|
/hal_espressif-latest/tools/esptool_py/espefuse/efuse/esp32p4/ |
D | emulate_efuse_controller.py | 41 "flash_crypt_cnt": 0,
|
/hal_espressif-latest/tools/esptool_py/espefuse/efuse/esp32s2/ |
D | emulate_efuse_controller.py | 41 "flash_crypt_cnt": 0,
|
/hal_espressif-latest/tools/esptool_py/espefuse/efuse/esp32s3/ |
D | emulate_efuse_controller.py | 41 "flash_crypt_cnt": 0,
|
/hal_espressif-latest/tools/esptool_py/espefuse/efuse/esp32s3beta2/ |
D | emulate_efuse_controller.py | 41 "flash_crypt_cnt": 0,
|
/hal_espressif-latest/tools/esptool_py/esptool/ |
D | cmds.py | 460 and bin(esp.get_security_info()["flash_crypt_cnt"]).count("1") & 1 != 0 1362 flash_crypt_cnt = bin(si["flash_crypt_cnt"]) 1363 if (flash_crypt_cnt.count("1") % 2) != 0: 1370 CRYPT_CNT_STRING = "Flash Crypt Count (FLASH_CRYPT_CNT)" 1372 print(f"{CRYPT_CNT_STRING}: {si['flash_crypt_cnt']:#x}")
|
/hal_espressif-latest/tools/esptool_py/espefuse/efuse/esp32c2/ |
D | emulate_efuse_controller.py | 43 "flash_crypt_cnt": 0,
|
/hal_espressif-latest/tools/esptool_py/esptool/targets/ |
D | esp32.py | 184 flash_crypt_cnt = ( 189 return bin(flash_crypt_cnt).count("1") & 1 != 0
|
/hal_espressif-latest/components/soc/esp32/include/soc/ |
D | efuse_struct.h | 25 * read for flash_crypt_cnt 261 /** flash_crypt_cnt : RW; bitpos: [26:20]; default: 0; 262 * program for flash_crypt_cnt 264 uint32_t flash_crypt_cnt:7; member
|