ascii-chat
Binary v0.15.83-53-gb711d8720
Library lib/v0.3.2-701-gb711d8720
Video chat in your terminal
Loading...
Searching...
No Matches
openpgp_packet_header_t Struct Reference

The framing fields needed to locate and classify one OpenPGP packet body. More...

#include <include/ascii-chat/crypto/gpg/openpgp.h>

Data Fields

uint8_t tag
 Packet tag (type identifier).
size_t length
 Packet body length.
size_t header_len
 Header length (bytes consumed by header).
bool new_format
 True if new format, false if old format.

Detailed Description

The framing fields needed to locate and classify one OpenPGP packet body.

tag identifies the packet kind, length is the number of body bytes, header_len tells the caller where that body begins, and new_format records which RFC 4880 header encoding was used. Packet readers use this value to advance through a byte stream without retaining any packet data.

Definition at line 77 of file openpgp.h.

Field Documentation

◆ header_len

size_t openpgp_packet_header_t::header_len

Header length (bytes consumed by header).

Definition at line 80 of file openpgp.h.

◆ length

size_t openpgp_packet_header_t::length

Packet body length.

Definition at line 79 of file openpgp.h.

◆ new_format

bool openpgp_packet_header_t::new_format

True if new format, false if old format.

Definition at line 81 of file openpgp.h.

◆ tag

uint8_t openpgp_packet_header_t::tag

Packet tag (type identifier).

Definition at line 78 of file openpgp.h.


The documentation for this struct was generated from the following file: