Trusted Firmware-M (TF-M)
Arm's reference implementation of the secure world on TrustZone-enabled Cortex-M — the slice of firmware that keeps the keys while the rest of the code is free to be buggy.
Armv8-M cores such as the Cortex-M33 can split memory and peripherals into a secure and a non-secure half. The hardware only draws the line; someone still has to write the code that lives on the secure side. TF-M, started by Arm around 2018 alongside its PSA programme and now maintained by TrustedFirmware.org, provides it: crypto services, protected storage and attestation behind standardised APIs.
Boot is handled by MCUboot, which checks the signature before anything runs. The application sits in the non-secure world calling those services, and a memory bug there should not be able to leak the keys. That, at least, is the plan.