[libressl] Generate RSA key

In the latest version of libresslRSA_generate_key is deprecated, RSA_generate_key_ex should be implemented instead.

Implementation (updated)

Source file (test.c)

 

To compile and run the program, the library libcrypto should be imported

 

Expected output

 

 

Implementation (deprecated)

Source file (test.c)