Enable OTP to store a permanent secret key.

It can be used by HSM or Fido to protect the keys and use it as MKEK.
This commit is contained in:
Pol Henarejos
2024-09-11 23:16:23 +02:00
parent d3d2f021e7
commit 108cfec47c
4 changed files with 138 additions and 0 deletions

View File

@@ -45,6 +45,7 @@
#include "usb.h"
extern void do_flash();
extern void low_flash_init();
extern void init_otp_files();
app_t apps[4];
uint8_t num_apps = 0;
@@ -296,6 +297,8 @@ int main(void) {
random_init();
init_otp_files();
low_flash_init();
scan_flash();
@@ -303,6 +306,7 @@ int main(void) {
init_rtc();
usb_init();
#ifndef ENABLE_EMULATION
#ifdef ESP_PLATFORM
gpio_pad_select_gpio(BOOT_PIN);