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

Reply via email to