code wiki / _hdl_build / nx_cmos_signed.nx
nx_cmos_signed.nx
buildroot/runtime/_hdl_build/nx_cmos_signed.nx
about
nx_cmos_signed.nx -- AUTHENTICATED CMOS config recovery (rung 7 CMOS x rung 8 capsule).
module: nishi-core.genealogy.cmos_signed
capability: CORE_COMPUTE (recover CMOS only from a platform-SIGNED golden snapshot)
nx_cmos kept a golden snapshot for restore -- but a checksum-valid golden could still be a TAMPERED
or FORGED config. Here the golden snapshot is a platform-SIGNED capsule (the 128-byte CMOS image is
the ed25519-signed payload). cmos_restore_signed restores ONLY IF: the golden's signature verifies
against the trusted platform key AND the payload is a CMOS image AND its AT checksum is valid.
So config recovery is AUTHENTIC -- a forged/tampered golden cannot brick you with a bad config.
Sandboxed/in-memory. Sovereign: nx_cmos + nx_fw_capsule (-> nx_ed25519) + nx_syscalls. license_tier: ORIGINAL
dependencies 3 imports · 1 importers
imports: nx_cmos.nxnx_fw_capsule.nxnx_syscalls.nx
imported by: nx_cmos_signed_gate.nx
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 16 | const CS_REFUSED: i64 = 0 - 1 |
functions
| 19 | func cmos_golden_capsule(path: *u8, img: *u8, seed: *u8) -> i64 |
| 26 | func cmos_restore_signed(working: *u8, golden_cap: *u8) -> i64 |
| 40 | func main() -> i64 |