CDC Badge OS
Firmware for the CDC Badge v1.0 hardware security key
Loading...
Searching...
No Matches
xsig.h
Go to the documentation of this file.
1#pragma once
2
4#include <cstddef>
5#include <cstdint>
6
7namespace cdc::mod_gpg {
8
25bool gpgCrossSign(const gpg_recv_key_t& target,
26 uint32_t sig_creation_time,
27 uint8_t out_sig[64]);
28
43size_t buildCertSigPacket(const gpg_recv_key_t& key, uint8_t* out, size_t out_size);
44
59bool gpgBuildOwnSignedKeyArmored(char* out, size_t out_size, size_t* out_len);
60
77 char* out, size_t out_size,
78 size_t* out_len);
79
94 char* out, size_t out_size,
95 size_t* out_len);
96
112bool gpgBuildOwnSubkeyMaterial(uint8_t dec_pubkey[64], uint32_t* dec_created_at,
113 uint8_t self_sig[64], uint8_t binding_sig[64]);
114
115} // namespace cdc::mod_gpg
size_t buildCertSigPacket(const gpg_recv_key_t &key, uint8_t *out, size_t out_size)
Build the OpenPGP Signature Packet body certifying key.
Definition xsig.cpp:683
bool 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.
Definition xsig.cpp:792
bool 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-par...
Definition xsig.cpp:716
bool 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.
Definition xsig.cpp:593
bool 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).
Definition xsig.cpp:709
bool 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.
Definition xsig.cpp:702
One GPG public key received from another badge.