Re: Question about ECDSA private key

2012-05-22 Thread Khuc, Chuong D.
Hi Dave, Thank you so much for your reply. I have been struggling with this issue for while. And I tried your method, but I got a problem with EC_KEY_new_by_curve_name: it always return NULL. Here is how I used it: EC_KEY *eckey = EC_KEY_new_by_curve_name(NID_ecdsa_with_SHA256); If(eckey == NULL) {

RE: Question about ECDSA private key

2012-05-21 Thread Dave Thompson
>From: owner-openssl-us...@openssl.org On Behalf Of Khuc, Chuong D. >Sent: Friday, 18 May, 2012 17:22 >I have an ECDSA private key in the form of a 32 byte unsigned char array, >and a data that needs to be signed using that key. So I wrote the following >code to load the key and use it to sign m