CDC Badge OS
Firmware for the CDC Badge v1.0 hardware security key
Loading...
Searching...
No Matches
cdc::mod_gpg::gpg_recv_key_t Struct Reference

One GPG public key received from another badge. More...

#include <GpgRecvStore.h>

Public Attributes

uint8_t curve
char user_id [64]
uint8_t pubkey [64]
uint8_t pubkey_len
uint32_t created_at
uint8_t fingerprint_v4 [20]
uint8_t fingerprint_v5 [32]
uint32_t received_at
uint8_t my_signature [64]
uint8_t sig_len
uint32_t sig_created_at
uint8_t pubkey_dec [64]
uint32_t created_at_dec
uint8_t owner_self_sig [64]
uint8_t dec_binding_sig [64]
uint8_t flags

Detailed Description

One GPG public key received from another badge.

Persisted as a single NVS blob per key. The on-wire BLE payload supplies curve, pubkey, pubkey_len, created_at, fingerprint_v4 and user_id; the badge computes fingerprint_v5 locally and fills received_at from the RTC. created_at is the originator's key-creation time and must reproduce fingerprint_v4 (validated on receive) so the certification binds to the peer's real OpenPGP key. my_signature / sig_len / sig_created_at / flags start out as zeros and are filled by setSignature() after a cross-sign action; sig_created_at is the signature creation time embedded into both the signed hash and the export.

Definition at line 24 of file GpgRecvStore.h.

Member Data Documentation

◆ created_at

◆ created_at_dec

uint32_t cdc::mod_gpg::gpg_recv_key_t::created_at_dec

◆ curve

◆ dec_binding_sig

uint8_t cdc::mod_gpg::gpg_recv_key_t::dec_binding_sig[64]

◆ fingerprint_v4

◆ fingerprint_v5

uint8_t cdc::mod_gpg::gpg_recv_key_t::fingerprint_v5[32]

◆ flags

◆ my_signature

uint8_t cdc::mod_gpg::gpg_recv_key_t::my_signature[64]

◆ owner_self_sig

uint8_t cdc::mod_gpg::gpg_recv_key_t::owner_self_sig[64]

◆ pubkey

uint8_t cdc::mod_gpg::gpg_recv_key_t::pubkey[64]

◆ pubkey_dec

uint8_t cdc::mod_gpg::gpg_recv_key_t::pubkey_dec[64]

◆ pubkey_len

uint8_t cdc::mod_gpg::gpg_recv_key_t::pubkey_len

◆ received_at

uint32_t cdc::mod_gpg::gpg_recv_key_t::received_at

◆ sig_created_at

uint32_t cdc::mod_gpg::gpg_recv_key_t::sig_created_at

◆ sig_len

◆ user_id


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