CDC Badge OS
Firmware for the CDC Badge v1.0 hardware security key
Loading...
Searching...
No Matches
ble_gpg_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

Typedefs

using cdc::mod_gpg::XsigReceivedCallback = void (*)(const gpg_recv_key_t& key)
 Callback invoked when a remote badge has finished pushing a key.

Functions

bool cdc::mod_gpg::ble_gpg_xsig_init ()
 Initialise the GPG cross-sign BLE endpoint.
void cdc::mod_gpg::ble_gpg_xsig_set_received_callback (XsigReceivedCallback cb)
 Install / remove the "key received" notification.
bool cdc::mod_gpg::ble_gpg_xsig_send (const uint8_t addr[6], uint8_t addr_type)
 Push the badge's own public key to a peer.