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

OpenPGP secret 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)
 
uint8_t seckey [32]
 Ed25519 secret key (32 bytes)
 
uint64_t keyid
 OpenPGP Key ID (last 8 bytes of fingerprint)
 
bool is_encrypted
 True if secret key material is encrypted.
 

Detailed Description

OpenPGP secret key packet data.

Represents the parsed data from a Secret Key Packet (tag 5), containing algorithm, creation time, and both public and secret key material.

Definition at line 112 of file openpgp.h.

Field Documentation

◆ algorithm

uint8_t openpgp_secret_key_t::algorithm

Public key algorithm (22 = EdDSA)

Definition at line 115 of file openpgp.h.

Referenced by openpgp_parse_secret_key_packet().

◆ created

uint32_t openpgp_secret_key_t::created

Creation timestamp (Unix epoch)

Definition at line 114 of file openpgp.h.

Referenced by openpgp_parse_secret_key_packet().

◆ is_encrypted

bool openpgp_secret_key_t::is_encrypted

True if secret key material is encrypted.

Definition at line 119 of file openpgp.h.

Referenced by openpgp_parse_armored_seckey(), and openpgp_parse_secret_key_packet().

◆ keyid

uint64_t openpgp_secret_key_t::keyid

OpenPGP Key ID (last 8 bytes of fingerprint)

Definition at line 118 of file openpgp.h.

◆ pubkey

uint8_t openpgp_secret_key_t::pubkey[32]

Ed25519 public key (32 bytes)

Definition at line 116 of file openpgp.h.

Referenced by openpgp_parse_armored_seckey(), and openpgp_parse_secret_key_packet().

◆ seckey

uint8_t openpgp_secret_key_t::seckey[32]

Ed25519 secret key (32 bytes)

Definition at line 117 of file openpgp.h.

Referenced by openpgp_parse_armored_seckey(), and openpgp_parse_secret_key_packet().

◆ version

uint8_t openpgp_secret_key_t::version

Packet version (should be 4)

Definition at line 113 of file openpgp.h.

Referenced by openpgp_parse_secret_key_packet().


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