Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
9 years, 6 months ago.
Error -143 from RsaPublicKeyDecode
Hello, I'm trying to use RsaPublicKeyDecode and then RSASSL_Verify for decrypting a small file on mbed LPC1768, but when I call RsaPublicKeyDecode I got -143 error. I have a key length of 2048 bit. The key used with openssl work correctly.
InitRsaKey(&rsaPublicKey, NULL);
int Err = RsaPublicKeyDecode(PublicKeyBuffer, &Idx, &rsaPublicKey, LenKey);
plainSz = RsaSSL_Verify(Message, LunghezzaCrittato, plain, sizeof(plain), &rsaPublicKey);
Can anyone help me?