xous-core/loader/src
bunnie fe04f5684f fix a critical bug that prevents root key initialization
This is going to require users to update their devices before
doing a key initialization.

The problem is that we can't trust the length of data presented
to us to self-sign, so we sign the whole area. In v0.9.2 of the
loader, a check was introduced to check the putative length of
the signed area against the actual length of the signed area,
by encoding the length of the signed area within the signed
region.

This would require the rootkeys algorithm to also encode that
new length at the end of the signed area, but this was never
done. However, this bug was never found during testing probably
because I failed to completely erase the original key provisioning
(I was more fixated on checking that existing keys were not damaged by
firmware updates at the time), and thus did not trigger a full
rootkey provisioning cycle when I did the test. I had only just
caught it now while porting the PDDB from simulation to real
hardware.
2022-01-03 19:06:21 +08:00
..
fonts fix permissions. windows likes to make all files executable! world writeable! 2021-10-23 18:37:39 +08:00
args.rs repo: run cargo fmt 2021-01-03 18:31:51 +08:00
asm.S set the stage for simple signature validation on the kernel 2021-07-12 02:26:50 +08:00
debug.rs loader: debug: fix minor clippy warning 2021-08-06 11:55:56 +08:00
font6x12.png set the stage for simple signature validation on the kernel 2021-07-12 02:26:50 +08:00
font6x12_1bpp.raw set the stage for simple signature validation on the kernel 2021-07-12 02:26:50 +08:00
fonts.rs fix permissions 2021-10-27 23:06:13 +08:00
generate_fonts.py Rust 1.56 results in a bigger loader. Presumably because "optimization". 2021-10-23 18:36:31 +08:00
main.rs make sure that the power states get set correctly early in the resume process 2021-08-27 15:47:27 +08:00
murmur3.rs add some preliminary bits for the loader to detect suspend/resume 2021-04-29 00:22:38 +08:00
secboot.rs fix a critical bug that prevents root key initialization 2022-01-03 19:06:21 +08:00
test.rs repo: run cargo fmt 2021-01-03 18:31:51 +08:00