RE: Question on openssl dgst: which private key?

2012-06-26 Thread Dave Thompson
From: owner-openssl-us...@openssl.org On Behalf Of Li, David Sent: Monday, 25 June, 2012 00:03 Sorry I forgot. I do also have the EC public key (the point Qx and Qy) in hex. I also know the curve P-384. So the only step I am not sure is how to convert the EC private and public keys into

Re: Question on openssl dgst: which private key?

2012-06-26 Thread Wim Lewis
On Jun 26, 2012, at 7:20 PM, Dave Thompson wrote: It's probably still easier to write a small program, but if you really want to do it yourself, you can see the structure by asn1parse'ing an existing one, or looking at the code starting with ec/ec_asn1.c . It is SEQUENCE version

RE: Question on openssl dgst: which private key?

2012-06-24 Thread Dave Thompson
From: owner-openssl-us...@openssl.org On Behalf Of Li, David Sent: Thursday, 21 June, 2012 17:53 If I have a private key in hex string , e.g, 23d9f4ea6d87b7d6163d64256e3449255db14786401a51daa7847161bf56d4 94325ad2ac8ba928394e01061d882c3528, how can I convert it into an ECDSA private key

RE: Question on openssl dgst: which private key?

2012-06-24 Thread Li, David
-openssl-us...@openssl.org [owner-openssl-us...@openssl.org] On Behalf Of Dave Thompson [dthomp...@prinpay.com] Sent: Sunday, June 24, 2012 6:25 PM To: openssl-users@openssl.org Subject: RE: Question on openssl dgst: which private key? From: owner-openssl-us...@openssl.org On Behalf Of Li, David

RE: Question on openssl dgst: which private key?

2012-06-21 Thread Dave Thompson
From: owner-openssl-us...@openssl.org On Behalf Of Li, David Sent: Thursday, 21 June, 2012 11:48 How does openssl dgst know which signing algorithm it's supposed to use in openssl dgst? For example how does it figure out if this signing private key is a ECDSA key or RSA key? Is this

RE: Question on openssl dgst: which private key?

2012-06-21 Thread Li, David
[mailto:owner-openssl- us...@openssl.org] On Behalf Of Dave Thompson Sent: Thursday, June 21, 2012 11:00 AM To: openssl-users@openssl.org Subject: RE: Question on openssl dgst: which private key? From: owner-openssl-us...@openssl.org On Behalf Of Li, David Sent: Thursday, 21 June, 2012 11:48 How