Module header

Module header 

Source
Expand description

OpenPGP packet headers.

An OpenPGP packet header contains packet meta-data. Specifically, it includes the packet’s type (its so-called tag), and the packet’s length.

Decades ago, when OpenPGP was conceived, saving even a few bits was considered important. As such, OpenPGP uses very compact encodings. The encoding schemes have evolved so that there are now two families: the so-called old format, and new format encodings.

Structs§

CTBNew
A CTB using the new format encoding.
CTBOld
A CTB using the old format encoding.
Header
A packet’s header.

Enums§

BodyLength
A packet’s size.
CTB
The CTB variants.
PacketLengthType
The length encoded for an old style CTB.