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_public_key_t Struct Reference

The parsed identity portion of an OpenPGP public-key packet. More...

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

Data Fields

uint8_t version
 Packet version (should be 4).
uint32_t created
 Creation timestamp (Unix epoch).
uint8_t algorithm
 Public key algorithm (22 = EdDSA).
uint8_t pubkey [32]
 Ed25519 public key (32 bytes).
uint64_t keyid
 OpenPGP Key ID (last 8 bytes of fingerprint).

Detailed Description

The parsed identity portion of an OpenPGP public-key packet.

Represents the parsed data from a Public Key Packet (tag 6), version, created, and algorithm preserve the packet header fields; pubkey holds the Ed25519 public key and keyid holds the trailing key identifier used to match it. The parser fills this value object, which has no heap ownership.

Definition at line 100 of file openpgp.h.

Field Documentation

◆ algorithm

uint8_t openpgp_public_key_t::algorithm

Public key algorithm (22 = EdDSA).

Definition at line 103 of file openpgp.h.

Referenced by openpgp_parse_public_key_packet().

◆ created

uint32_t openpgp_public_key_t::created

Creation timestamp (Unix epoch).

Definition at line 102 of file openpgp.h.

Referenced by openpgp_parse_public_key_packet().

◆ keyid

uint64_t openpgp_public_key_t::keyid

OpenPGP Key ID (last 8 bytes of fingerprint).

Definition at line 105 of file openpgp.h.

Referenced by openpgp_parse_public_key_packet().

◆ pubkey

uint8_t openpgp_public_key_t::pubkey[32]

Ed25519 public key (32 bytes).

Definition at line 104 of file openpgp.h.

Referenced by openpgp_parse_binary_pubkey(), and openpgp_parse_public_key_packet().

◆ version

uint8_t openpgp_public_key_t::version

Packet version (should be 4).

Definition at line 101 of file openpgp.h.

Referenced by openpgp_parse_public_key_packet().


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