ietf-openpgp
[Top] [All Lists]

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

2019-07-13 03:39:04
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
        }

Recently, I the length encoding in LibTMCG/DKGPG for subpackets, where
it was previously a four-octet length format with 0xFF prefix.
-- 
Heiko

Attachment: signature.asc
Description: OpenPGP digital signature

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