AES Enceyprion/Decryption using key in efuse block

Harsh182
Posts: 1
Joined: Thu Feb 14, 2019 9:03 am

AES Enceyprion/Decryption using key in efuse block

Postby Harsh182 » Thu Feb 14, 2019 9:16 am

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?

esp_Hemal
Posts: 5
Joined: Thu Feb 14, 2019 9:44 am

Re: AES Enceyprion/Decryption using key in efuse block

Postby esp_Hemal » Thu Feb 14, 2019 10:01 am

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

Return to “ESP32 IDF”

Who is online

Users browsing this forum: No registered users and 13 guests