Re: [openssl.org #1650] signature length in ECDSA

2008-03-07 Thread Mounir IDRASSI
Hi, This is due to the fact that the integers are stored as unsigned. So, when the MSB of a computed value is set, the encoding adds an extra 0x00 to its ASN.1 representation. This is normal and it explains what you are experiencing. Cheers, Mounir IDRASSI IDRIX - Cryptography And IT Security Exp

[openssl.org #1650] signature length in ECDSA

2008-03-07 Thread JP Szikora via RT
Hi, I try to understand why the signature length is variable in ECDSA. Normally with 160bits EC, it must be 46 bytes long: 20 bytes for each of the 2 components and 4 + 2 bytes for ASN.1. I think it must be a bug in the ASN.1 creation of the signature. Here is the details: I'm testing this wi