You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have computed an EC private key: openssl ecparam -name prime256v1 -genkey -noout -outform der -out ecdsa_private_key.der and the corresponding public key: openssl ec -in ecdsa_private_key.der -inform der -pubout -out ecdsa_public_key.der -outform der.
As far as I can tell, (by converting the DER public key to PEM), the public key from this is in SubjectPublicKeyInfo. I understand that ring works with the "traditional" form (is this PKCS#1?)
Is there any command line tool I could use to perform this conversion? openssl ec does not seem to have the RSAPublicKey_{in|out} analogue.
The text was updated successfully, but these errors were encountered:
lawliet89
changed the title
How are EC Public key used in ECDSA signature verification generated?
How are EC Public keys used in ECDSA signature verification generated?
Mar 7, 2017
Once #378 is fixed, you'll be able to parse a SubjectPublicKeyInfo in ring to get the raw SubjectPublicKey that sing::signature::verify() uses.
briansmith
changed the title
How are EC Public keys used in ECDSA signature verification generated?
Document how to get SubjectPublicKey for from SubjectPublicKeyInfo
Mar 7, 2017
lawliet89
changed the title
Document how to get SubjectPublicKey for from SubjectPublicKeyInfo
Document how to get SubjectPublicKey form from SubjectPublicKeyInfo
Mar 7, 2017
I guess this is similar to #470.
I have computed an EC private key:
openssl ecparam -name prime256v1 -genkey -noout -outform der -out ecdsa_private_key.der
and the corresponding public key:openssl ec -in ecdsa_private_key.der -inform der -pubout -out ecdsa_public_key.der -outform der
.As far as I can tell, (by converting the
DER
public key toPEM
), the public key from this is inSubjectPublicKeyInfo
. I understand thatring
works with the "traditional" form (is this PKCS#1?)Is there any command line tool I could use to perform this conversion?
openssl ec
does not seem to have theRSAPublicKey_{in|out}
analogue.The text was updated successfully, but these errors were encountered: