ietf-openpgp
[Top] [All Lists]

Re: [openpgp] Bug#931238: hot armor: please drop "Version: " header

2019-07-22 08:27:53
On Sat 2019-07-13 10:38:14 +0200, Heiko Stamer wrote:
On 07.07.2019 at 14:22, Daniel Kahn Gillmor wrote:

totally agreed that this should be added, and i encourage you to send
text to the openpgp(_at_)ietf(_dot_)org mailing list.

Regarding the fixed encoding of a (sub)packet length I suggest the
following approach (AFAIK it's used by most OpenPGP implementations):

      if (len < 192)
      {
              // one-octet length format
      }
      else if (len < 8384)
      {
              // two-octet length format
      }
      else
      {
              // four-octet length format with 0xFF prefix
      }

This looks reasonable to me, and i agree that it should be part of any
proposed draft aimed at minimizing divergence in generated output across
OpenPGP implementations.

    --dkg

_______________________________________________
openpgp mailing list
openpgp(_at_)ietf(_dot_)org
https://www.ietf.org/mailman/listinfo/openpgp