What is the binary export / import format used bygpg
for public and private keys?
-
Is this related to Extract only the key(s) from GPG exported keypair?– userMar 26, 2014 at 15:12
-
Yes, part of the same effort– Eero AaltonenMar 26, 2014 at 18:04
-
@vonbrand: I spend yesterday reading the man pages, tutorials, articles & blog posts and made absolutely no progress. None of the docs mentioned the export format. Silly me for not going straight to the source.– Eero AaltonenMar 27, 2014 at 10:20
Add a comment
|
1 Answer
The format is defined in RfC 4880 (e.g. section 5.5 Key Material Packet).
-
Thank you! There are three leading bytes, but after that the version number, time and algorithm match exactly. Mar 27, 2014 at 10:16