Old format packet support

Hasnain Mujtaba hmujtaba at forumsys.com
Fri Feb 6 18:46:33 CET 2004

Hi David,

I writing a Java OpenPGP implementation that that will handle inbound
and outbound streaming using the partial length encoding. I want to make
it compatible with the old format indeterminate encoding as well. 

The reason I asked the question was so that I could use GPG to generate
such old stype packets and use them as sample input data.


-----Original Message-----
From: gnupg-users-bounces at gnupg.org
[mailto:gnupg-users-bounces at gnupg.org] On Behalf Of David Shaw
Sent: Friday, February 06, 2004 5:37 PM
To: gnupg-users at gnupg.org
Subject: Re: Old format packet support

On Fri, Feb 06, 2004 at 04:48:34PM -0500, Hasnain Mujtaba wrote:
> Hi all,
> Does GPG support RFC1991 Old format indeterminate length packets? And
> so, how can I force GPG to generate a message using this old format
> encoding?
> I know that GPG uses the RFC2440 partial length encoding headers. But
> what about the old format indeterminate lengths?

The problem with the this encoding is that it is indeed indeterminate
length - there is no length encoded in the packet itself, so the
reader must infer from context (i.e. end of file, end of encapsulating
packet) what the end of the packet is.  2440 deprecates this format as

GnuPG can understand this format, but in general does not generate it
except for compatibility reasons.  You can force it in some cases with
the --rfc1991 option, but not all packets make sense as indeterminate

What are you trying to do?


Gnupg-users mailing list
Gnupg-users at gnupg.org

More information about the Gnupg-users mailing list