I have been using open62541 which uses Mbed TLS for some time now, but after having used my target for something else the last two days, I suddenly gets this message when connecting.
`[2018-11-27 14:28:51.957 (UTC+0000)] warn/securitypolicy mbedTLS returned an error: RSA - Input data contains invalid padding and is rejected`
When I compile for my ubuntu it works, but the ARM target fails. It is an internal platform, but the same executable can run on a Raspberry Pi, and get the same error.
Whenever I google for “Input data contains invalid padding and is rejected” I only gets hits on the Mbed TLS source code.
Anybody have seen this error too, and what is this “invalid padding”
I have tried to debug, and ended up in mbedtls_rsa_rsaes_oaep_decrypt where it looks like this fails
bad |= *p++; /* First byte must be 0 */ Thus the data being transferred is totally garbage.