Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I tried to understand it from RFC and from source code (mainly from gnupg and gpgme) and I didn't get the way the data should be stored when someone export secret keys.

I know there should be differences between RSA and DSA/ElGamal storage, but there should be a common way.

share|improve this question
add comment

2 Answers

up vote 3 down vote accepted

My question was not well described. There is in fact the binary and ascii armor format. But what I'm more interested in is the structure of the data. Which is in fact indicated here (after reading for a while and understanding a bit more) : http://tools.ietf.org/html/rfc4880#section-5.5.3

The DSA/RSA/ElGamal differences are indicated inside it

I used pgpdump (the C implementation) to see it on a .gpg secret keys exported with

gpg --export-secret-keys
share|improve this answer
add comment

I had always called it "ASCII Armor".

In fact, it's real name is Radix-64

It's Base64 with a few tweaks.

Fully described in RFC-4880

share|improve this answer
    
Note that the "armor" layer is optional -- storing keys in binary is not uncommon. –  grawity Apr 22 '12 at 18:21
    
My question was not well described. There is in fact the binary and ascii armor format. But what I'm more interested in is the structure of the data. Which is in fact indicated here (after reading for a while and understanding a bit more) : tools.ietf.org/html/rfc4880#section-5.5.3 –  Dolanor Apr 24 '12 at 13:17
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.