CDC Badge OS
Firmware for the CDC Badge v1.0 hardware security key
Loading...
Searching...
No Matches
GpgKeyPayload.cpp File Reference

Transport-agnostic (de)serialisation of a GPG public key payload. More...

#include "mod_gpg/GpgKeyPayload.h"
#include "mod_gpg/GpgStorage.h"
#include "mod_gpg/gpg.h"
#include "openpgp/fingerprint.h"
#include "openpgp/xsig.h"
#include "cdc_hal/ISecureElement.h"
#include <cstring>
#include <ctime>

Go to the source code of this file.

Namespaces

namespace  cdc
namespace  cdc::mod_gpg

Functions

size_t cdc::mod_gpg::gpgBuildOwnKeyPayload (uint8_t *out, size_t out_size)
 Serialise the badge's own public key into the wire payload.
size_t cdc::mod_gpg::gpgBuildRecvKeyPayload (const gpg_recv_key_t &key, uint8_t *out, size_t out_size)
 Serialise a stored received key into the wire payload (for forwarding).
bool cdc::mod_gpg::gpgParseKeyPayload (const uint8_t *data, size_t len, gpg_recv_key_t *out)
 Parse a wire payload into a key record, computing the V5 fingerprint.

Detailed Description

Transport-agnostic (de)serialisation of a GPG public key payload.

Definition in file GpgKeyPayload.cpp.