Re: RE: How to use RSA?

2007-08-30 Thread Martin Salo
@Bill: Thanks, but I hope it is not necessary. Can someone help me with this code? Why doese my program crash on executing RSA_print_fp()? I'm using WindowsXP and Visual Studio 6. I found some postings on this mailinglist with the advice to look into the FAQ. But the only topic that matches my

RE: RE: How to use RSA?

2007-08-30 Thread Bill Colvin
Martin: I couldn't get your code to compile. However, I could get this to work: #include openssl/rsa.h #include stdio.h int main() { // Do some init: RSA *oRsaKey = NULL; int iLength=2048; // Generate the key: oRsaKey = RSA_generate_key(iLength, 65537, NULL, NULL); // Write key to hard disk