Home
last modified time | relevance | path

Searched full:flash_crypt_cnt (Results 1 – 25 of 36) sorted by relevance

12

/hal_espressif-latest/components/bootloader_support/src/
Dflash_encrypt.c39 // 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/
Desp_flash_encrypt.h39 * 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/
Defuse_hal.c39 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/
Dflash_encrypt.c50 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/
Dexecute-scripts-cmd.rst39 …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')
Dread-write-protections-cmd.rst65 > 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/
Desp_efuse_table.csv17 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…
Desp_efuse_table.c42 {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/
Dmem_definition_base.py124 "FLASH_CRYPT_CNT",
134 name, ["FLASH_CRYPT_CNT", "SPI_BOOT_CRYPT_CNT", "SECURE_VERSION"]
/hal_espressif-latest/components/hal/include/hal/
Defuse_hal.h40 * 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/
Demulate_efuse_controller.py41 "flash_crypt_cnt": 0,
/hal_espressif-latest/tools/esptool_py/espefuse/efuse/esp32c5/
Demulate_efuse_controller.py41 "flash_crypt_cnt": 0,
/hal_espressif-latest/tools/esptool_py/espefuse/efuse/esp32c5beta3/
Demulate_efuse_controller.py41 "flash_crypt_cnt": 0,
/hal_espressif-latest/tools/esptool_py/espefuse/efuse/esp32c6/
Demulate_efuse_controller.py41 "flash_crypt_cnt": 0,
/hal_espressif-latest/tools/esptool_py/espefuse/efuse/esp32c61/
Demulate_efuse_controller.py41 "flash_crypt_cnt": 0,
/hal_espressif-latest/tools/esptool_py/espefuse/efuse/esp32h2/
Demulate_efuse_controller.py41 "flash_crypt_cnt": 0,
/hal_espressif-latest/tools/esptool_py/espefuse/efuse/esp32h2beta1/
Demulate_efuse_controller.py41 "flash_crypt_cnt": 0,
/hal_espressif-latest/tools/esptool_py/espefuse/efuse/esp32p4/
Demulate_efuse_controller.py41 "flash_crypt_cnt": 0,
/hal_espressif-latest/tools/esptool_py/espefuse/efuse/esp32s2/
Demulate_efuse_controller.py41 "flash_crypt_cnt": 0,
/hal_espressif-latest/tools/esptool_py/espefuse/efuse/esp32s3/
Demulate_efuse_controller.py41 "flash_crypt_cnt": 0,
/hal_espressif-latest/tools/esptool_py/espefuse/efuse/esp32s3beta2/
Demulate_efuse_controller.py41 "flash_crypt_cnt": 0,
/hal_espressif-latest/tools/esptool_py/esptool/
Dcmds.py460 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/
Demulate_efuse_controller.py43 "flash_crypt_cnt": 0,
/hal_espressif-latest/tools/esptool_py/esptool/targets/
Desp32.py184 flash_crypt_cnt = (
189 return bin(flash_crypt_cnt).count("1") & 1 != 0
/hal_espressif-latest/components/soc/esp32/include/soc/
Defuse_struct.h25 * 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

12