GPG Private Key Export Question

Paul Taukatch ptaukat at
Fri Sep 27 21:28:18 CEST 2013

Hey everyone thanks for all the contributions, really helped clear some
things up.

Was just hoping you could help clarify one more thing. Why exactly are the
numerical values for skey[0] and skey[1] equal to pkey[0] and pkey[1]? Is
it because the numerical value listed is actually the key value of the
entire public/private key pair? If so, is a specific portion of that key
value used as the "secret key" and another portion used as the "public key"?

Also, is there any command I can use to view the entire contents of the
exported secret key packet?

Thanks again!

On Fri, Sep 27, 2013 at 2:44 PM, Robert J. Hansen <rjh at>wrote:

> On 9/27/2013 10:40 AM, Peter Pentchev wrote:
> > 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 :)
> For the last week I've been writing a parser suitable for filesystem
> forensics.  All I can say is, "preach it, brother."  I printed out
> hardcopy of the whole of RFC4880 and have pages from it pinned up to my
> cubicle walls.
> There is also a sheet of paper pinned up there that has a red circle
> about six inches across and a caption beneath of, "BEAT HEAD HERE."  I
> find myself referring to that almost as much as I do to RFC4880.
> (Speaking of that project: thank you, Peter and David, for pointing me
> towards the file(1) magic numbers library.  It works well enough for my
> purposes.)
> _______________________________________________
> Gnupg-users mailing list
> Gnupg-users at
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/attachments/20130927/3fc3bb2d/attachment.html>

More information about the Gnupg-users mailing list