On Fri, Sep 27, 2013 at 05:33:59PM +0300, Peter Pentchev wrote:
> On Fri, Sep 27, 2013 at 09:58:35AM -0400, Paul Taukatch wrote:
> > Really appreciate the help and the quick response!
> > 
> > I just wanted to clarify, where exactly is the public key information
> > stored within the exported secret key data? Is it part of the Secret key
> > packet as part of the "Encrypted stuff follows section" or is following
> > that?
> 
> It's part of the secret key packet.  If you run gpg --list-packets with
> --debug=2 (or with --debug-all), so that it shows you the actual numeric
> data in the key representations, you'll see that skey[0] and skey[1] in
> the secret key packet are exactly the same as pkey[0] and pkey[1] shown
> when you --export | --list-packets (so GnuPG shows you the public key).

Also, if you're really writing software for parsing and extracting data
from OpenPGP keys or messages, then you absolutely *must* start by
reading RFC 4880, then reading it again, then bookmarking it and keeping
it always open in a browser window or a text pager, so you can refer to
it as often as you *will* need to :)

G'luck,
Peter

-- 
Peter Pentchev  r...@ringlet.net r...@freebsd.org p.penc...@storpool.com
PGP key:        http://people.FreeBSD.org/~roam/roam.key.asc
Key fingerprint 2EE7 A7A5 17FC 124C F115  C354 651E EFB0 2527 DF13
I am the thought you are now thinking.

Attachment: signature.asc
Description: Digital signature

_______________________________________________
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users

Reply via email to