1

What is the binary export / import format used bygpg for public and private keys?

3
  • Is this related to Extract only the key(s) from GPG exported keypair?
    – user
    Mar 26, 2014 at 15:12
  • Yes, part of the same effort Mar 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. Mar 27, 2014 at 10:20

1 Answer 1

2

The format is defined in RfC 4880 (e.g. section 5.5 Key Material Packet).

1
  • Thank you! There are three leading bytes, but after that the version number, time and algorithm match exactly. Mar 27, 2014 at 10:16

Not the answer you're looking for? Browse other questions tagged .