If this is all your code than you need than you need to load the algorithms 
before you use this - OpenSSL_add_all_ciphers();. If you call this function 
before than try ERR_print_errors and see what you get.

 ==================================


Eugen Sendroiu
Address: str. Horia nr 3,
bl a8, sc 2, ap 7, Craiova
Dolj - 200490, Romania
Home : +40(0)351 401134
Mobile : +40(0)743 055244
+40(0)730 006760
E-mail : [EMAIL PROTECTED]
[EMAIL PROTECTED]


===================================



----- Original Message ----
From: Durbin Francesco via RT <[EMAIL PROTECTED]>
Cc: [email protected]
Sent: Tuesday, June 3, 2008 9:36:18 AM
Subject: [openssl.org #1689] EC_KEY_generate_key problem 

Dear sirs,

I wanted to know...what could prevent this instruction to 
do its purpose..


I'm trying to generate the ECC key with:


EC_KEY *eckey = EC_KEY_new();

if (eckey == NULL)
{
         printf("key is null\n");
}

int x;
if (!(x=EC_KEY_generate_key(eckey)))
{
         printf("EC key not created + %d\n",x);
}


but I always get the "EC key not created" message. and I 
don't understand why...I stripped down the code to the 
minimum needed...


thanks a lot

Francesco Durbin

______________________________________________________________________
OpenSSL Project                                http://www.openssl.org
Development Mailing List                      [email protected]
Automated List Manager                          [EMAIL PROTECTED]



      

Reply via email to