What changed, and why it matters
This commit tweaks estimated timing values for a secure chip (Tropic) inside Trezor hardware wallets. It does not change how secrets are processed; it only changes how long the device waits for certain operations to finish. The changes are small and appear to be a calibration fix, not a security patch.
No immediate security action required. Treat as routine calibration/maintenance. If reviewing, verify the new timing constants match the Tropic chip datasheet or vendor characterization data to ensure operations are not underestimated in production.
Security signals we found
Timing-related constants changed in secure-element driver
No change to cryptographic or authentication logic
No bounds checking, input validation, or secret handling modifications
Commit message gives no security context ('[no changelog]')
No CVE, advisory, or researcher attribution present
Evidence from the diff
The patch modifies core/embed/sec/tropic/tropic.c, reducing hardcoded millisecond timing offsets used when estimating how long various Tropic secure-element operations take (session start, random buffer generation, MAC/destroy, memory read/write/erase, monotonic counter get/update). These functions are used to update a time_ms estimate, likely for UI progress or timeout accounting. There is no change to cryptographic logic, command serialization, authentication, or data handling.
Changed components
core/embed/sec/tropic/tropic.cTropic secure-element timing estimation helpersInspect captured patch +8 / −8
diff --git a/core/embed/sec/tropic/tropic.c b/core/embed/sec/tropic/tropic.c
index 2bf17eaa..ed14c483 100644
--- a/core/embed/sec/tropic/tropic.c
+++ b/core/embed/sec/tropic/tropic.c
@@ -362,7 +362,7 @@ bool tropic_session_start(void) {
void tropic_session_start_time(uint32_t *time_ms) {
if (!g_tropic_driver.session_started) {
- *time_ms += 210;
+ *time_ms += 204;
}
}
@@ -581,7 +581,7 @@ bool tropic_random_buffer(void *buffer, size_t length) {
void tropic_random_buffer_time(uint32_t *time_ms) {
// Assuming the data size is 32 bytes
- *time_ms += 50;
+ *time_ms += 10;
}
#ifdef USE_STORAGE
@@ -607,23 +607,23 @@ static uint16_t get_kek_masks_slot(tropic_driver_t *drv) {
: TROPIC_KEK_MASKS_PRIVILEGED_SLOT;
}
-static void lt_mac_and_destroy_time(uint32_t *time_ms) { *time_ms += 51; }
+static void lt_mac_and_destroy_time(uint32_t *time_ms) { *time_ms += 28; }
static void lt_r_mem_data_read_time(uint32_t *time_ms) {
// Assuming the data size is 320 bytes
- *time_ms += 100;
+ *time_ms += 33;
}
static void lt_r_mem_data_write_time(uint32_t *time_ms) {
// Assuming the data size is 320 bytes
- *time_ms += 77;
+ *time_ms += 37;
}
-static void lt_r_mem_data_erase_time(uint32_t *time_ms) { *time_ms += 55; }
+static void lt_r_mem_data_erase_time(uint32_t *time_ms) { *time_ms += 4; }
-static void lt_mcounter_get_time(uint32_t *time_ms) { *time_ms += 51; }
+static void lt_mcounter_get_time(uint32_t *time_ms) { *time_ms += 4; }
-static void lt_mcounter_update_time(uint32_t *time_ms) { *time_ms += 51; }
+static void lt_mcounter_update_time(uint32_t *time_ms) { *time_ms += 4; }
lt_ret_t lt_r_mem_data_erase_write(lt_handle_t *h, const uint16_t udata_slot,
uint8_t *data, const uint16_t size) {
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.