Show HN: Post-quantum secure boot for the ESP32 and Pico 2 github.com · 18 point...
Show HN @show
Show HN: Post-quantum secure boot for the ESP32 and Pico 2 github.com · 18 points · 5 comments · HN thread
TL;DR microtun boot is an experimental Rust secure bootloader for ESP32-C3/C5/C6 and RP2350 (Pico 2, Pico 2 W) that uses MCUboot's on-flash image format and signs images with FN-DSA-512, a pre-standard post-quantum signature scheme. It verifies the application on every boot, handles upgrades, and refuses images that fail verification. The author labels it an experimental prototype, not affiliated with MCUboot, and advises reading the security docs before any product use.
- Bootloader written in Rust, using MCUboot's image header, TLV and trailer formats, with FN-DSA-512 over SHA-256 signatures.
- Signing uses microtun-signer's experimental fn-dsa-512-exp profile, which follows a pre-standard FIPS 206 draft; encrypted and compressed images are rejected.
- Supports several upgrade strategies: swap-using-scratch with test/permanent and revert, overwrite-only, and direct XIP with or without revert.
- Policy features include downgrade prevention, minimum version, and a hardware security counter for anti-rollback, which is temporarily disabled on ESP32-C5.
- Boards covered are ESP32-C3, ESP32-C5, ESP32-C6, RP2350 Pico 2 / Pico 2 W, plus QEMU for tests; the project is dual-licensed under PolyForm Noncommercial with a separate commercial license.
Discussion The thread is small and mostly skeptical. Commenters question whether post-quantum signatures are worth the cost on microcontrollers, with one asking about boot time impact on a Pico. A dismissive top comment calls the project a problem that did not need solving, and a reply links the work to recent cryptography news. The author's replies defend the project by arguing that the vendor ROM bootloaders are similar and that the tool targets any chip whose boot ROM can verify signatures.
- Post-quantum boot on microcontrollers is unnecessary (some): One commenter calls the project a problem that did not need solving. The skepticism is about whether the threat justifies it on small devices.
- Concern about signature size and boot time (some): A commenter asks how much boot time FN-DSA signatures add on a Pico, pointing at the cost of larger post-quantum signatures on constrained hardware.
- Welcome as a timely move toward safer crypto (some): Another commenter argues the project helps ESP32 devices build a chain of trust with primitives considered safer after recent cryptography news.
- Vendor ROM bootloaders make a new abstraction unnecessary (a few): A commenter argues the ESP32 and RP2350 ROM bootloaders already do similar work, so one could use vendor tools directly. The author replies that the project targets any chip whose ROM can verify signatures.
- Simple enthusiasm (a few): One short comment says the project is really cool, with no technical discussion.