DER is short for ASN.1 Distinguished Encoding Rules.  The actual
format of certificates and things are standardized by X.500 but
these documents are expensive, so the Internet RFC people have
reprinted the information in a series of documents.  Take a look
at  ftp://www.ietf.org/rfc/rfc3280.txt  particularly the examples
in Appendix C for the DER formats for certificates.

As for keys, I think the standards document are the PKCS documents
which can be found at  http://www.rsasecurity.com/rsalabs
look on the left for PKCS and get PKCS #1 RSA Cryptography Standard.
Look in chapter 11 ASN.1 syntax
11.1 Key representations
11.1.1 Public-key syntax

I think this is right -- good luck!

Andrus wrote:
I need to decrypt RSA signature using RSA public key.
Thanks to Nils Larsch  reply I discovered that the following command can be
used for this:

openssl rsautl -verify -in sig.bin -inkey public.der -pubin -keyform
DER -out signout.bin

I have a RSA 1024 bits modulus and exponent 3

I need to create a public.der file (160 bytes) from this data to be passed
to openssl using not a C language.

I looked into  openssl sources but havent yet found DER file structure
description.

Where I can found the DER public file structure description which this
command accepts ?

Andrus.

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]


-- "An Internet-connected Windows machine is tantamount to a toddler carrying a baggie of $100 bills down a city street..."

Charles B (Ben) Cranston
mailto: [EMAIL PROTECTED]
http://www.wam.umd.edu/~zben

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to