Hi Anthony,
Thank you for your tips, I tried to import the function and I added a custom function to import all the parameters from the generated key to other keys (private and public) using the available functions. It seems to work fine. However, I don't think there is a way to check if the imported keys (using wc_RsaPrivateKeyDecodeRaw & wc_RsaPublicKeyDecodeRaw) are good or not. The wc_CheckRsaKey function works well for the generated RSA key, but I don't think I can use it to check if the public key is good, nor the key pair (public + private) are a match, and even when I try to check the private key which contains all the parameters and seems to be identical to the generated key, it doesn't work. Also, wc_RsaPrivateKeyDecodeRaw and wc_RsaPublicKeyDecodeRaw always returned 0 for me, even when I put random numbers such as the d parameter for the private key and without filling dP and dQ so that the function needs to calculate them, which seems weird.
I'm not sure I will play with the library for the next days, so maybe I will wait for the next release, even though I'm not sure it will fix all my issues.
Sorry for being annoying with these problems !
Warm regards, Adrien