CDC Badge OS
Firmware for the CDC Badge v1.0 hardware security key
Loading...
Searching...
No Matches
FactoryReset.h File Reference
#include <cstdint>
#include "esp_err.h"
#include "cdc_hal/ISecureElement.h"

Go to the source code of this file.

Classes

struct  cdc::core::TropicWipeResult

Namespaces

namespace  cdc
namespace  cdc::core

Functions

TropicWipeResult cdc::core::wipeTropic (hal::ISecureElement *se, uint16_t progressEvery=0, void(*onRmemProgress)(uint16_t current, uint16_t total)=nullptr)
 Iterates every TROPIC01 ECC slot (0..ECC_SLOT_COUNT-1) and R-Memory slot (0..RMEM_SLOT_COUNT-1), deleting whatever is currently populated. Sets sessionReady=false and returns immediately if no active SE session is available.
esp_err_t cdc::core::wipeNvs ()
 Erases the NVS partition and re-initializes it blank.
void cdc::core::selfDestruct ()
 Triggers a full factory wipe on the next boot and restarts.

Variables

constexpr const char * cdc::core::kBootProfileNs = "boot_profile"
constexpr const char * cdc::core::kBootProfileKey = "profile"