Can anybody guide me how can I generate the digital signature of 56
bytes for ecdsa.
I am using the curve NID_secp224r1.
Thanks
jeetendra

On 17 December 2012 09:26, jeetendra gangele <gangele...@gmail.com> wrote:
> Actaully I was trying to generate the signature of lenght 56 bytes but
> its failing.
> When I check the code it said lenght of the sig should not lessa than 56.
> can anybody help me how can I generate the signature of lenght 56 bytes?.
>
>
> On 14 December 2012 19:11, Matt Caswell (fr...@baggins.org)
> <fr...@baggins.org> wrote:
>>
>> On 14 December 2012 13:36, jeetendra gangele <gangele...@gmail.com> wrote:
>>>
>>> Ok,
>>> So is there any way after setting these parameters I can get the
>>> public key(point) on curve.?
>>
>>
>> Setting the parameters just gets you a curve, not a private/public key pair.
>> To create a private/public key pair create an EC_KEY object (passing in the
>> curve as a parameter), and then call EC_KEY_generate_key. Then you can get
>> the public key from the EC_KEY object.
>>
>>> after setting the curve parameter I can ask for point in the curve
>>> there is one API I have seen right?
>>> GetPublicKey.
>>> Can u do that from command line?
>>>
>> As far as I know you can't use custom curves from the command line - but I
>> am not an expert on the command line tool so others on this list may be able
>> to answer that.
>>
>> Matt
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to