Re: PEM binary format

2008-07-03 Thread Armin Wasicek
Thanks a lot! David Schwartz schrieb: Thus, I conclude that there is some format in place, respectively how do I know where a bignum starts and where it ends? The format is ANSI X.690, also knows as BER or DER, somtimes (slightly erroneously) referred to as ASN.1. I tried to find a clue by

RE: PEM binary format

2008-07-01 Thread David Schwartz
> Thus, I conclude that there is some format in place, respectively > how do I know where a bignum starts and where it ends? The format is ANSI X.690, also knows as BER or DER, somtimes (slightly erroneously) referred to as ASN.1. > I tried to find a clue by browsing the sources, but I gave up >

PEM binary format

2008-07-01 Thread Armin Wasicek
Hello! I want to use openssl generated rsa keys in my custom rsa implementation. In order to do this, I have to interpret the binary file created by: (host.key is the rsa key file) $ openssl enc -d -base64 -in host.key I suppose the funny outputs are the bignums from the struct rsa_st (cryp