mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-04 04:27:34 +00:00
1. nonce should be generated from the LSB of the commit hash. security doesn't come from the nonce, and having the commit hash in the nonce is helpful for version control of the swap image (although it doesn't capture "dirty" builds, e.g. builds made with uncommitted changes). 2. fix IniS regions to not require special alignment. Since the data is copied (similar to IniE), we don't have to waste space page-aligning things so that offsets map perfectly between the image on disk and in RAM. 3. add checks that the loading position of data inside the swap image matches our expectations. We should have 0x1000 bytes of unencrypted header, then 0x1000 bytes of XArgs + padding, and then image data should start. There is a "just so" coincidence in that the image data by the MiniElf program always lines up at an address > 0x1000, making space for the XArgs. I actually don't know why this padding is there, but the "section" doesn't decode to anything we can parse. Maybe it's some reserved space for OS-specific loader shenanigans? |
||
|---|---|---|
| .. | ||
| bin | ||
| tags | ||
| elf.rs | ||
| lib.rs | ||
| sign_image.rs | ||
| swap_writer.rs | ||
| utils.rs | ||
| xous_arguments.rs | ||