Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions core/.changelog.d/6136.added
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[T3W1] Introduce wear leveling of mac-and-destroy slots in Tropic.
12 changes: 2 additions & 10 deletions core/embed/sec/tropic/inc/sec/tropic.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,6 @@
#define TROPIC_DEVICE_CERT_SLOT_COUNT 3
#define TROPIC_DEVICE_KEY_SLOT 0 // ECC_SLOT_0

#ifdef USE_STORAGE
// KEK masks used in PIN verification
#define TROPIC_KEK_MASKS_PRIVILEGED_SLOT 128
#define TROPIC_KEK_MASKS_UNPRIVILEGED_SLOT 256

// Mac-and-destroy slots used in PIN verification
#define TROPIC_FIRST_MAC_AND_DESTROY_SLOT_PRIVILEGED 0
#define TROPIC_FIRST_MAC_AND_DESTROY_SLOT_UNPRIVILEGED 64
#endif

// Pairing key used by prodtest to inject the privileged and unprivileged
// pairing keys.
#define TROPIC_FACTORY_PAIRING_KEY_SLOT 0 // PAIRING_KEY_SLOT_INDEX_0
Expand All @@ -67,6 +57,8 @@ bool tropic_init(uint16_t port);
bool tropic_init(void);
#endif

void tropic01_reset(void);

void tropic_deinit(void);

#ifdef TREZOR_PRODTEST
Expand Down
Loading