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

test(core): test mock RNGs for Optiga and Tropic

Public commit record

What the developer wrote

Authored by Andrew Kozlik

95/100 · Strong
test(core): test mock RNGs for Optiga and Tropic

Adds tests that verify, end to end through the upymod binding and
rng_fill_buffer_strong(), that every entropy source of the model
contributed at every byte position. A dropped source, a lost strong=True,
a truncated buffer fail the tests.

[no changelog]

Co-Authored-By: cepetr <petr@cerninovi.cz>
✓ Descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Provides detailed explanatory context✓ Mentions testing or verification✓ Names security-relevant behavior explicitly
The short version

What changed, and why it matters

This commit only adds new automated tests and a helper script for generating test data. It does not change the firmware's random number generator, wallet operations, or any user-facing behavior. The goal is to catch future bugs where a hardware model's entropy source might accidentally be left out of the strong randomness mix.

Recommended action

No security action required; treat as a normal test-only commit. Reviewers may optionally confirm the mock-vector generator matches the emulator's rng_mock.c implementation.

Security signals we found

01

Adds regression tests for strong RNG composition across models

02

References secure-element entropy sources (Optiga, Tropic) in test vectors

03

Verifies exact deterministic output of rng_fill_buffer_strong() on emulator

04

No patch to RNG implementation or cryptographic code

Risk score

Why this scored 12/100

Our methodology →
Potential impact 0/30
Exploitability 0/25
Stealth signal 0/15
Affected reach 0/15
Confidence 8/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.