RSA implementation and attack on Mbed