On 14 December 2012 11:14, jeetendra gangele <gangele...@gmail.com> wrote:

> Okay,
> Thankd for ur reply.
>
> If i have only private key in my ECC_key object Will be able to sign the
> data?.
>

I've not tried it, so I'm not sure. I've had a quick review of the code and
I can't see any reason why not, but I wouldn't recommend it. I would not
consider an EC_KEY object that failed an EC_KEY_check_key call to be valid,
and I would expect the library to make the same assumption. It is safer to
have the public key present, and it is not difficult to do so.


> I mean i will load only private key and use the curve.Will I be able
> to sign the data?
> and How can i load other parametes like a,b,g,n in to the object.
>
> If you are using a named curve (as you are in the code example you
posted), you do not need to worry about the other parameters. These are
incorporated into the definition of the named curve.

Matt

Reply via email to