Hello,
> I am using ECDSA with 224 bit secp224r1 curve. But the signature I am
> getting is of size 64bytes; shouldn't it be 56 bytes (r||s)? Also its
> not 56bytes + 8bytes zero's padding. Please help me.
This signarure is ASN.1 encoded, when you decode this signature with
command:

$ openssl asn1parse -in file.sig -inform der
    0:d=0  hl=2 l=  60 cons: SEQUENCE
    2:d=1  hl=2 l=  28 prim:
INTEGER           :23345E38FC02141868D4834C846FB822BF18D2574B3BD7792C7E7B3D
   32:d=1  hl=2 l=  28 prim:
INTEGER           :25F567969A53ACBC2C68653BD73D145EE3C6FF691DD7EB61EEF5202F

you will see that r and s are 28 bytes long and you have some ASN.1
header overhead.

Best regards,
-- 
Marek Marcola <[EMAIL PROTECTED]>

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [email protected]
Automated List Manager                           [EMAIL PROTECTED]
  • ECDSA C K KIRAN-KNTX36
    • Re: ECDSA Marek Marcola
    • ECDSA Eman Abu Samra

Reply via email to