RE: Concerning the ECDSA_sig size

2013-09-17 Thread Dave Thompson
> From: owner-openssl-us...@openssl.org On Behalf Of shotorddnadd > Sent: Tuesday, September 17, 2013 09:12 > I am writing a C++ application using Openssl library to sign the outgoing > messages and verify it on the other end. Everything works perfectly but > still there is a strange point which I

Re: Concerning the ECDSA_sig size

2013-09-17 Thread Billy Brumley
That's just the way ECDSA and DSA signatures work. Yes the ASN.1 encoding factors in but mostly it's just the way the math goes. The signature is a tuple (r,s) where r and s are mod n and n is fixed per curve. r and s are always smaller than n, normally around the same size as n, but can also be ev

RE: Concerning the ECDSA_sig size

2013-09-17 Thread Khuc, Chuong D.
sl-us...@openssl.org [owner-openssl-us...@openssl.org] on behalf of redpath [redp...@us.ibm.com] Sent: Tuesday, September 17, 2013 2:48 PM To: openssl-users@openssl.org Subject: Re: Concerning the ECDSA_sig size I am glad someone is asking this question. I sign the same data with same private k

Re: Concerning the ECDSA_sig size

2013-09-17 Thread redpath
I am glad someone is asking this question. I sign the same data with same private key and sometimes the signature is 63 and sometimes it is 64 but overall the verification works for each anyhow. -- View this message in context: http://openssl.6102.n7.nabble.com/Concerning-the-ECDSA-sig-siz