ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
ra8_dfu_antirollback.c File Reference

DFU anti-rollback (downgrade protection) – policy + storage seam. More...

Include dependency graph for ra8_dfu_antirollback.c:

Go to the source code of this file.

Detailed Description

DFU anti-rollback (downgrade protection) – policy + storage seam.

Tag
[Ring 4 / Service] {World: S}

See ra8_dfu_antirollback.h for the full contract. This file owns the pure downgrade policy, the verify-and-commit flow over the injected storage vtable, and the non-faking default store. No raw MMIO is performed here: the non-volatile counter is reached only through the ra8_rot_antirollback_store_t function pointers.

The whole module is opt-in behind RA8_ENABLE_ROOT_OF_TRUST (default OFF), mirroring ra8_rot.c. With the flag OFF this file compiles to nothing – only the link-free declarations from ra8_dfu_antirollback.h – so the default build is byte-for-byte unchanged and pulls in no extra link dependency.

Definition in file ra8_dfu_antirollback.c.