Gnupg file formats

Dan McGee dpmcgee at
Thu Dec 1 18:37:52 CET 2011

On Thu, Dec 1, 2011 at 11:25 AM, Werner Koch <wk at> wrote:
> On Thu,  1 Dec 2011 10:02, toskp10 at said:
>> ciphertext encrypted with a 1024 bit RSA key start \x848C03? Why is it
>> \x85010C03 for 2048 bit RSA? Is this explained in the RFC somewhere
>> I've missed or is it documented elsewhere?
> Read section 4.2 of RFC-4880.  The length header encoding is a bit
> complicate.

The pgpdump source code may be a bit more easy to grasp if you just
want to understand the file format.


More information about the Gnupg-users mailing list