ascii-chat 0.11.33
Video chat in your terminal
Loading...
Searching...
No Matches
openpgp_public_key_t Struct Reference

OpenPGP public key packet data. 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

OpenPGP public key packet data.

Represents the parsed data from a Public Key Packet (tag 6), containing algorithm, creation time, and key material.

Definition at line 91 of file openpgp.h.

Field Documentation

◆ algorithm

uint8_t openpgp_public_key_t::algorithm

Public key algorithm (22 = EdDSA)

Definition at line 94 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 93 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 96 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 95 of file openpgp.h.

Referenced by openpgp_parse_armored_pubkey(), and openpgp_parse_public_key_packet().

◆ version

uint8_t openpgp_public_key_t::version

Packet version (should be 4)

Definition at line 92 of file openpgp.h.

Referenced by openpgp_parse_public_key_packet().


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