AI-generated analysisPublished automatically and not human-verified. Validated context appears in community notes below.
← Watch feed
Low 34 Bitcoin

feat(core): use tropic chip entropy in RNG

Public commit record

What the developer wrote

Authored by cepetr

62/100 · Adequate
feat(core): use tropic chip entropy in RNG

[no changelog]
✓ Descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Names security-relevant behavior explicitly! No meaningful explanatory body
The short version

What changed, and why it matters

This commit refactors how Trezor firmware generates random numbers. It adds a new 'strong' randomness path that mixes the device's hardware RNG with entropy from external secure chips (Optiga and/or Tropic), and routes all randomness through a common internal API. It is a feature/cleanup change, not a disclosed security fix, but it touches critical cryptography code and changes how secure chips are used.

Recommended action

Treat as a high-risk feature commit requiring focused review: verify that XOR-mixing of entropy sources is safe even if one source fails silently or is weak, confirm that Tropic's `lt_port_random_bytes` callback cannot be invoked re-entrantly from `rng_fill_buffer_strong`, ensure that removal of `optiga_random_buffer` syscall does not break any remaining callers, and run RNG/statistical tests on both `rng_fill_buffer` and `rng_fill_buffer_strong` outputs.

Security signals we found

01

Refactoring of critical RNG code across bootloader, kernel, secure monitor, firmware, and Unix emulator builds

02

New external entropy source (Tropic chip) mixed into RNG output via XOR

03

Removal of direct Optiga random-buffer syscall in favor of generic RNG syscalls

04

Changes to storage key initialization and production-test secret generation

05

Potential dependency/callback between Tropic secure chip and hardware RNG

Risk score

Why this scored 34/100

Our methodology →
Potential impact 8/30
Exploitability 5/25
Stealth signal 4/15
Affected reach 6/15
Confidence 7/10
Evidence quality 4/5
Human-validated context

Community notes

Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.

No validated notes yet.

The AI analysis stands alone for now. Submit a note if you can add evidence or important context.