Rodney Thayer wrote:
>
> by the way, dumpasn1 doesn't quite parse this correctly, it's
> got n, d, p, q, dmp1, dmq1, and iqmp. The display of 'n'
> is missing the last byte.
>
dumpasn1 truncates some stuff over 128 bytes in length. The -a options
stops that.
> I know, I know, that sequence sounds eerily familiar, but I
> refuse to start dreaming in ASN.1... Still trying to figure
> out the format so I can display it with OpenSSL.
>
You don't dream in ASN1. You have nightmares!
> At 10:43 AM 1/17/01 -0800, Rodney Thayer wrote:
> >there's a file, testrsa.h, in the apps directory.
> >It contains DER encoded RSA keys. speed.c does a "d2i_RSAPrivateKey"
> >to extract these into 'RSA' structures.
> >
> >What format are these data values? I want to extract them to a file
> >and print them.
>
DER encoded PKCS#1 RSAPrivateKey structure. If you save each array to a
file then:
openssl rsa -in key.der -noout -text
should give something readable. Alternatively call RSA_print() on the
RSA structure.
Steve.
--
Dr Stephen N. Henson. http://www.drh-consultancy.demon.co.uk/
Personal Email: [EMAIL PROTECTED]
Senior crypto engineer, Celo Communications: http://www.celocom.com/
Core developer of the OpenSSL project: http://www.openssl.org/
Business Email: [EMAIL PROTECTED] PGP key: via homepage.
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]