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

  • A CTB using the new format encoding.
  • A CTB using the old format encoding.
  • A packet’s header.

Enums