Re: Questions about method to compress ECDSA signatures

2012-05-26 Thread Khuc, Chuong D.
Thanks for reply. Correct me if I am wrong, the R point, which is the "ephemeral" or temporary point on the elliptic curve, is calculated in the ECDSA_sign_setup function. Is that right? If it is, then its value is also lost in that function because the memory containing is freed at the end of the

Re: Questions about method to compress ECDSA signatures

2012-05-25 Thread Matt Caswell (fr...@baggins.org)
On 25/05/12 14:41, Khuc, Chuong D. wrote: Wow, that is a lot of good information. Thanks, Matt. And I am still trying to digest the first paragraph. So do you mean the R value that I mentioned is actually the public key? No, R is just a random point...different for every signature. The public

Re: Questions about method to compress ECDSA signatures

2012-05-25 Thread Khuc, Chuong D.
Wow, that is a lot of good information. Thanks, Matt. And I am still trying to digest the first paragraph. So do you mean the R value that I mentioned is actually the public key? And if I was provided with a private key, are the following lines of code appropriate to compute the public key and ge

Re: Questions about method to compress ECDSA signatures

2012-05-24 Thread Matt Caswell (fr...@baggins.org)
On 24/05/12 14:40, Khuc, Chuong D. wrote: Hello, I was able to sign my message using the ECDSA 256 function from openssl: ECDSA_SIG *signature = ECDSA_do_sign( &message[0], message_length, eckey); And the sign is verified to be valid also. And my question is about the compression of the signatur

Questions about method to compress ECDSA signatures

2012-05-24 Thread Khuc, Chuong D.
Hello, I was able to sign my message using the ECDSA 256 function from openssl: ECDSA_SIG *signature = ECDSA_do_sign( &message[0], message_length, eckey); And the sign is verified to be valid also. And my question is about the compression of the signature. I understand that the signature has an r