On Tue, Sep 04, 2012, redpath wrote:
>
> Since I want to save the random generated key to use for private and
> also I will do this for public. The public works though back and forth. So
> where em I going wrong?
>
>
> len= i2d_ECPrivateKey(eckey,NULL);
> printf("PRIVATE KEY LENGTH is %d \n",len);
> buf = OPENSSL_malloc(len); // malloc(len);
> memset(buf,0, len);
> ret= i2d_ECPrivateKey(eckey,&buf);
> if (!ret){
> printf("Private key to DER failed now WHAT?\n");
> return 1;
> }
>
http://www.openssl.org/support/faq.html#PROG3
Steve.
--
Dr Stephen N. Henson. OpenSSL project core developer.
Commercial tech support now available see: http://www.openssl.org
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [email protected]
Automated List Manager [email protected]