CDC Badge OS
Firmware for the CDC Badge v1.0 hardware security key
Loading...
Searching...
No Matches
TropicSlotMap.cpp File Reference
#include "cdc_core/TropicSlotMap.h"
#include "cdc_core/Hash.h"
#include "tropic_slot_map.h"
#include "cdc_log.h"
#include <cstring>

Go to the source code of this file.

Classes

struct  cdc::core::SlotMapEntry

Namespaces

namespace  cdc
namespace  cdc::core

Macros

#define BUILD_ECC_ENTRY(name, id, start, end)
#define BUILD_RMEM_ENTRY(name, id, start, end)

Variables

static const char * TAG = "SlotMap"
static const SlotMapEntry cdc::core::kSlotMap []
static constexpr size_t cdc::core::kSlotMapCount = sizeof(kSlotMap) / sizeof(kSlotMap[0])

Macro Definition Documentation

◆ BUILD_ECC_ENTRY

#define BUILD_ECC_ENTRY ( name,
id,
start,
end )
Value:
{ TropicSlotMap::SlotType::ECC, name, static_cast<uint8_t>(id), \
static_cast<uint16_t>(start), static_cast<uint16_t>(end) },
char name[cdc::hal::ISecureElement::RMEM_NAME_LEN]

Definition at line 19 of file TropicSlotMap.cpp.

◆ BUILD_RMEM_ENTRY

#define BUILD_RMEM_ENTRY ( name,
id,
start,
end )
Value:
{ TropicSlotMap::SlotType::RMEM, name, static_cast<uint8_t>(id), \
static_cast<uint16_t>(start), static_cast<uint16_t>(end) },

Definition at line 22 of file TropicSlotMap.cpp.

Variable Documentation

◆ TAG

const char* TAG = "SlotMap"
static

Definition at line 7 of file TropicSlotMap.cpp.