esp_rom_spiflash_write_encrypted() function
Write data to flash with transparent encryption.
Return value
ESP_ROM_SPIFLASH_RESULT_OK : Data written successfully. ESP_ROM_SPIFLASH_RESULT_ERR : Encryption write error. ESP_ROM_SPIFLASH_RESULT_TIMEOUT : Encrypto write timeout.
Notes
Sectors to be written should already be erased. Please do not call this function in SDK.