CDC Badge OS
Firmware for the CDC Badge v1.0 hardware security key
Loading...
Searching...
No Matches
xsig.h File Reference
#include "mod_gpg/GpgRecvStore.h"
#include <cstddef>
#include <cstdint>

Go to the source code of this file.

Namespaces

namespace  cdc
namespace  cdc::mod_gpg

Functions

bool cdc::mod_gpg::gpgCrossSign (const gpg_recv_key_t &target, uint32_t sig_creation_time, uint8_t out_sig[64])
 Cross-sign a received key with the badge's own SIG ECC slot.
size_t cdc::mod_gpg::buildCertSigPacket (const gpg_recv_key_t &key, uint8_t *out, size_t out_size)
 Build the OpenPGP Signature Packet body certifying key.
bool cdc::mod_gpg::gpgBuildOwnSignedKeyArmored (char *out, size_t out_size, size_t *out_len)
 Build an ASCII-armored OpenPGP block for the badge's own public key, appending every stored third-party certification on it.
bool cdc::mod_gpg::gpgBuildReceivedKeyArmored (const gpg_recv_key_t &key, char *out, size_t out_size, size_t *out_len)
 Build an ASCII-armored OpenPGP block for a received peer key.
bool cdc::mod_gpg::gpgBuildPublicKeyArmored (const gpg_recv_key_t &key, char *out, size_t out_size, size_t *out_len)
 Build an ASCII-armored OpenPGP public-key block (no signature).
bool cdc::mod_gpg::gpgBuildOwnSubkeyMaterial (uint8_t dec_pubkey[64], uint32_t *dec_created_at, uint8_t self_sig[64], uint8_t binding_sig[64])
 Gather the badge's own encryption-subkey material for transfer.