← back to projects
security project
qsafe
motivation
I wanted to see if a $1 microcontroller like the RP2040 could act as a secure post-quantum cryptographic HSM by leveraging physical core isolation and NIST's ML-KEM algorithms.
what it does
A messaging gateway architecture where a physically separate RP2040 core handles post-quantum key decapsulation, sanitizing key material from RAM immediately after execution and separating network and cryptographic environments across both cores.
technical detail
Core 0 runs the messaging protocol, Core 1 handles key generation and ML-KEM encapsulation. Inter-core communication is restricted to the hardware FIFO ring buffer with strict state checks to prevent leaks.
The ML-KEM cryptographic core has focused unit tests. The dual-core HSM isolation path is architecturally sound but currently has only one integration test — worth treating as an unverified prototype, not a production-hardened path.
technology used
Rust
no_std
RP2040
ML-KEM (Kyber)
HSM offloading
Zero-trust
Memory sanitisation