mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-04 05:04:33 +02:00
Allow writes to encrypted partitions
There is a size alignment requirement but it is checked by spi_flash_write_encrypted. However, this check flat-out bans encrypted writes.
This commit is contained in:
committed by
Ivan Grokhotkov
parent
48ae7ab500
commit
71ab455c87
@@ -230,10 +230,6 @@ esp_err_t esp_partition_write(const esp_partition_t* partition,
|
|||||||
size_t dst_offset, const void* src, size_t size)
|
size_t dst_offset, const void* src, size_t size)
|
||||||
{
|
{
|
||||||
assert(partition != NULL);
|
assert(partition != NULL);
|
||||||
//todo : need add ecrypt write support ,size must be 32-bytes align
|
|
||||||
if(partition->encrypted == true) {
|
|
||||||
return ESP_FAIL;
|
|
||||||
}
|
|
||||||
if (dst_offset > partition->size) {
|
if (dst_offset > partition->size) {
|
||||||
return ESP_ERR_INVALID_ARG;
|
return ESP_ERR_INVALID_ARG;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user