Skip to content

Never wait minutes on the kernel's randomness at start - #4

Merged
keyldev merged 1 commit into
masterfrom
fix/fast-entropy
Oct 14, 2026
Merged

keyldev merged 1 commit into
masterfrom
fix/fast-entropy

Conversation

@keyldev

@keyldev keyldev commented Oct 14, 2026

Copy link
Copy Markdown
Collaborator
  • Every command seeded mbedTLS before doing anything, status included, and on some cameras that read blocked for minutes on each start; the agent sat silent that long after every restart
  • The generator is now seeded on first use only: status, snapshot, motion and clean need no randomness and answer at once
  • Seeding mixes what the kernel has ready without waiting with a seed kept in /etc/cerberus/seed and replaced on every start; waiting happens once in a device's life, when there is neither
  • The release build's PSA draws from that generator (MBEDTLS_PSA_CRYPTO_EXTERNAL_RNG) instead of gathering a second time

- Every command seeded mbedTLS before doing anything, `status` included, and on
  some cameras that read blocked for minutes on each start; the agent sat
  silent that long after every restart
- The generator is now seeded on first use only: status, snapshot, motion and
  clean need no randomness and answer at once
- Seeding mixes what the kernel has ready without waiting with a seed kept in
  /etc/cerberus/seed and replaced on every start; waiting happens once in a
  device's life, when there is neither
- The release build's PSA draws from that generator
  (MBEDTLS_PSA_CRYPTO_EXTERNAL_RNG) instead of gathering a second time
@keyldev
keyldev merged commit e069d02 into master Oct 14, 2026
7 checks passed
@keyldev
keyldev deleted the fix/fast-entropy branch October 14, 2026 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant