Hi,
If I set an HMAC efuse key is possible to rewrite? (https://docs.espressif.com/projects/esp ... on-outline)
If not, is possible to test the HMAC without writing the key to the efuse?
ESP32-S2 HMAC
Re: ESP32-S2 HMAC
Probably an espressif team member should confirm that, but HMAC is supported:
https://esp32.com/viewtopic.php?f=10&p=56361
https://esp32.com/viewtopic.php?f=10&p=56361
-
- Posts: 9764
- Joined: Thu Nov 26, 2015 4:08 am
Re: ESP32-S2 HMAC
Not sure about the HMAC capabilities, but in general it's physically impossible to re-write an eFuse once it's blown.
Re: ESP32-S2 HMAC
Hi renatopinheiro,
Sprite is correct, eFuse blocks are write-once and cannot be updated, and the hardware HMAC peripheral can only source the key from the eFuse block. If you want to calculate an HMAC from a key in memory, you can do this with the mbedTLS APIs in ESP-IDF (the SHA operation is still accelerated so the operation is just as fast).
Note also that there are 5 eFuse key blocks available in the ESP32-S2, and you can select which key block to read the key from each time the HMAC peripheral is used. So if you write one key block to do some initial tests, you still have some options to write other blocks later.
Angus
Sprite is correct, eFuse blocks are write-once and cannot be updated, and the hardware HMAC peripheral can only source the key from the eFuse block. If you want to calculate an HMAC from a key in memory, you can do this with the mbedTLS APIs in ESP-IDF (the SHA operation is still accelerated so the operation is just as fast).
Note also that there are 5 eFuse key blocks available in the ESP32-S2, and you can select which key block to read the key from each time the HMAC peripheral is used. So if you write one key block to do some initial tests, you still have some options to write other blocks later.
Angus
-
- Posts: 7
- Joined: Thu Apr 09, 2020 2:25 pm
Re: ESP32-S2 HMAC
Thanks, Angus and Sprite.
Who is online
Users browsing this forum: Bing [Bot], Google [Bot] and 161 guests