Still waiting for HW roots of trust with PQ signature support to become commonly available.
Unfortunately it will probably be a number of years until that hardware IP finally makes its way into low cost / low power processors.
Post quantum signatures are huge, how much boot time does that cost on a pico
This is quite brilliant, matching MCUboot's format!
This is really cool!
LLM generating a source available project then slapping a non-commercial/contact for commercial use license on it is an interesting choice
The times are such that you can just ask for things.
‘Break P-256 ECC’, somewhere in a frontier lab, probably
‘Implement a bootloader with post quantum image signatures’, two days ago, anywhere
I'm working on a zero trust networking solution for the internet of things and needed a cross platform implementation of secure boot. Right now it supports the ESP32 (RISC-V) and Raspberry Pi Pico 2 but support for the STM32H573 (ST-iROT) is planned.
The ESP32 implementation has probably survived the latest security advisory, Espressif choose to thankfully use RSA 3072 in their trust root. The Raspberry Pi Pico 2 is more ambiguous as its based on secp256k1 (like bitcoin) which is 256-bit ECC.
FALCON (fn-dsa) is an incredible signature scheme, sadly its only experimental atm and standardization seems to be delayed. I actually ended up saving ~20KiB of flash versus a legacy P-256 implementation. Little more memory hungry but very modest. I am certain fn-dsa will come to dominate in this space.
If this is the kind of engineering that interests you, whether it's embedded systems, Rust, networking, or making unconventional things work together, I'd love to connect. I'm always looking for like-minded collaborators, especially people interested in building something together in the industrial IoT space, potentially even as co-founders. Feel free to reach out!
4.8 ms verification and ~7 KiB SRAM for FN-DSA-512 on a Pico 2 is genuinely impressive — that fits comfortably inside the boot budget of most real MCU products, and staying compatible with MCUboot's image format makes adoption much more practical than inventing a new layout.
Curious about the planned STM32H573 (ST-iROT) port: do you plan to keep verification purely in software in the bootloader stage, or offload parts like SHAKE256/hashing to hardware crypto peripherals where available?
At least for the Pico 2 / RP2350 this is anything but post-quantum secure. From the README:
> Two independent keys protect the chain: the ROM checks microtun boot against the secp256k1 key in OTP,
> and microtun boot checks the application against the FN-DSA-512 (fn-dsa-512-exp) keys compiled into it.
So this is a chained bootloader, break secp256k1 and you can replace the microtun-boot bootloader in flash and the post-quantum signature check never even runs. That makes this entire bootloader pointless - either the attacker can modify flash and thus just remove your bootloader or you assume flash can only changed by the running program in which case you should check the signature of the firmware update at flash time, not during boot. It also doesn't seem to provide any of the features you'd want in such a bootloader, like encryption support or remote attestation.
In theory you could put this bootloader into OTP, but unfortunately the RP2350's bootrom is not designed for that at all. You basically lose all other boot options + hibernate if you do that, if you can manage to fit everything into OTP at all. Right now this bootloader seems to be around 60 KiB while the OTP has a bit under 8 KiB of free space available. I've written about the bootrom shortcomings a bit before on the raspberry forum: https://forums.raspberrypi.com/viewtopic.php?p=2312790#p2312...
I haven't looked at the ESP32 stuff, but I'm guessing it's going to have very similar issues.