9 years, 4 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?

Question relating to:

CyaSSL 3.0.0 SSL, TLS
Be the first to answer this question.