1

(4 replies, posted in wolfCrypt)

Hello Kaleb,

Thanks for the reply and sorry for the delay.
In fact I did not get any info that you posted

I'll try on my code

Thanks for your time,

Best Regards,

Pierre

2

(4 replies, posted in wolfCrypt)

Hello all,

Well, I went through the source code, and it seems that the error code I get is "missing rng" (mp_rand in wolfmath.c)
And this rng is always null for the PrivateDecrypt function.

Do you confirm this point or am I out of scope ?

I guess I will rely on Openssl for my operations...

Regards

Pierre

3

(4 replies, posted in wolfCrypt)

Hello All,

I'm a new user of Wolfssl, and am achieving pretty good results using it with my embedded units.


I'm now trying to cipher & sign my files from embedded units to server.
My setup is the following (quite classic, keypairs RSA 2048bits)
* Unit has public key from server
* file is ciphered using aes key (256bit CBC)
* the aes key is ciphered with the server public key. (wc_publickeyencrypt)
* all this is put to a file (ciphered aes key, iv and binary file)

this files is sent over to server and it seems to go well.

Server side :
* I load the private key related to the server public key
*  I open the file and read my 256 byte ciphered key.
* I try to get the aes key with wc_privatekeydecrypt
--> I get an error code : -236 ? I just dont quite get what it means...

openssl seems to work fine (ciphered key is manually extracted and decrypted with RSA Private key with no issue)

Can you get me some clues about this error code?
Any working example with wc_privatekeydecrypt ?

I'm quite sure the rsa key is loaded fine, since I could do some rsa signing operation with wolf...

Thanks for your help

Regards

Pierre