I need to generate RSA keys and it seems like openssl is the most common library that supports keys of length 3072. MinGW seems to come with pre-compiled libraries for it, so I tried linking -lcrypto and -lssl. However, when I just try to use
BIGNUM* someBigNum = BN_new();
I got the following error:
undefined reference to `BN_new'
collect2.exe: error: ld returned 1 exit status
What other library do I need to link?