Files
ZephCore/zephcore/include/mesh
liquidraver 799d694914 crypto: simplify entropy path after audit review
- Lift duplicated identity-gen block from main_companion.cpp +
  main_repeater.cpp into ZephyrRNG::generateFirstBootIdentity().
  Both mains shrink from ~40 lines to a 3-line helper call.
- Add LocalIdentity::fromSeed() so seed-derived keygen doesn't need
  a one-shot RNG wrapper; delete SeededRNG.
- Drop the per-byte ADC sampling loop: getBattMilliVolts() does an
  8-sample average + 10ms regulator settle internally, costing
  300-480ms of real wall-time and actively destroying the LSB jitter
  it was meant to harvest. Jitter mixer already dwarfs it.
- Centralize the printk + sys_reboot pattern as
  Utils::cryptoPanicReboot(); drop the 2000ms pre-reboot k_msleep
  (printk is synchronous, sleep just blocked the mesh thread on
  the ZephyrRNG::random() retry-failure path).
- Inline sample_cpu_jitter health check via online scalars instead
  of a 512-byte deltas[] array. Saves 1.5KB stack churn across boot
  and tracks every sample instead of only the first 128.
- extract_via_aes_ctr now uses Utils::sha256 instead of open-coding
  psa_hash_compute.
2026-05-29 07:58:54 +02:00
..
2026-03-28 20:53:59 +01:00
2026-03-28 20:53:59 +01:00
2026-05-22 14:42:12 +02:00
2026-03-28 20:53:59 +01:00
2026-05-22 14:42:12 +02:00
2026-03-28 20:53:59 +01:00
2026-05-14 22:24:48 +02:00
2026-04-07 19:05:32 +02:00
2026-02-20 12:43:13 +01:00
2026-02-20 12:43:13 +01:00
2026-05-22 14:42:12 +02:00