Page 1 of 1

AES Enceyprion/Decryption using key in efuse block

Posted: Thu Feb 14, 2019 9:16 am
by Harsh182
Hey,

I am new to ESP-IDF.

I was reading about Security features of IDF - Flash Encryption and Secure Boot.

From what I understood, for Flash Encryption a key is generated within hardware (or could be manually burned) in efuse block.

What I want to do is -

1. Encrypt/Decrypt some plaint text using the key burnt in efuse.

I read the document and there is no API to do that, I am wondering is it possible?

Re: AES Enceyprion/Decryption using key in efuse block

Posted: Thu Feb 14, 2019 10:01 am
by esp_Hemal
Hi,

You are right. The encryption key can be internally generated within ESP32 or could be generated externally and programmed in efuse

There are two APIs for encrypted flash write & read namely esp_partition_write() and esp_partition_read()

Please refer this link for more information: https://docs.espressif.com/projects/esp ... -crypt-cnt

Regards
Hemal