Forwarded to openssl-users for public discussion

Best regards,
        Lutz
----- Forwarded message from [EMAIL PROTECTED] -----

To: [EMAIL PROTECTED]
Subject: looking for information on generating RSA key
From: [EMAIL PROTECTED]
Date: Mon, 26 Nov 2007 15:18:08 -0500

Hello,

I am a novice OpenSSL library user. Currently I am implementing code to 
generate a RSA key pair. Here
is a part of my code:

        _time_get(&tim);
        RAND_add(&tim,sizeof(tim),0);

        pMiSslCtx = MiSslInitEx( TLSv1_method(), true );
 
        rsa=RSA_generate_key(key_len,RSA_F4,NULLcb,NULL);


my key_len is 2048. 

The code crashes in RSA_generate_key() function call, more particularly in 
probable_prime(). I am not sure what 
I am doign wrong here. Any help would be highly apprecaited.

Thanks


kavita
----- End forwarded message -----
--
Lutz Jaenicke           [EMAIL PROTECTED]
OpenSSL Project         http://www.openssl.org/~jaenicke/
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to