6 comments

  • tmarkovski 11 minutes ago
    This is quite brilliant, matching MCUboot's format!
  • fiberniche491 2 hours ago
    Post quantum signatures are huge, how much boot time does that cost on a pico
    • dpeckett 44 minutes ago
      Compact signatures are the selling point of FALCON [1], for fn-dsa-512 (signatures: 666B, keys: 897B).

      Benching fn-dsa-512 (NIST Level 1) on the Pico 2,

      SIGNATURE VERIFICATION: 4.8ms (1.1ms pub key decoding + 3.7ms verification)

      TOTAL SRAM: ~7KiB

      As long as FALCON survives standardization, there's no way it doesn't become popular. Signing is a bit more expensive though so let's see if that holds it back.

      1. https://csrc.nist.gov/csrc/media/Presentations/2024/falcon/i...

  • bodhisattwadas2 2 hours ago
    This is really cool!
  • carsonwhite060 1 minute ago
    [dead]
  • trollbridge 1 hour ago
    Talk about a problem that didn’t need solving
    • hak8or 1 hour ago
      Maybe I am misunderstanding what this fixes, but doesn't this project work towards ensuring esp32's have a chain of trust implementation that uses crypto primitives which are considered safer after anthropic crypto releases earlier this week?

      Or are you implying that there isn't a need to move to post quantum crypto on esp32, or that the esp32 shouldn't have chain of trust implementation?

      • dpeckett 54 minutes ago
        The general argument is that the ESP32 and RP2350 boot roms implement similar functionality so why build an abstraction when you can just work directly with the vendor tools?

        Quoting from elsewhere:

        > The same could be said about U-Boot, MCUboot or wolfBoot. Microtun boot targets more than just the ESP32. Any chip with signature verification implemented in its boot rom (so that we can establish a trust root) can be targeted.

        > Then there's the portable firmware image format, microtun-boot distributes updates as signed MCUboot TLV images.

        > I'm personally working on an application that targets both the ESP32 and PICO 2W boards.

  • dpeckett 2 hours ago
    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!