mcu-tools / mcuboot

Secure boot for 32-bit Microcontrollers!
Apache License 2.0
1.25k stars 647 forks source link

RSA tests fail with clang #1986

Open d3zd3z opened 1 week ago

d3zd3z commented 1 week ago

When using clang to compile the simulator tests, the rsa tests fail.

$ CC=clang cargo test --features sig-rsa
...
test norevert ... FAILED
...

The pass if optimization is disabled in mcuboot-sys. I appears to be an issue with the mbed tls RSA code.

d3zd3z commented 1 week ago

So, this is a known bug with mbed TLS <= 3.0.0, and is fixed in 3.1.0. I'm working on a migration path to move mcuboot to the latest Mbed TLS.