CDC Badge OS
Firmware for the CDC Badge v1.0 hardware security key
Loading...
Searching...
No Matches
ble_gpg_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
15using XsigReceivedCallback = void (*)(const gpg_recv_key_t& key);
16
24
29
39bool ble_gpg_xsig_send(const uint8_t addr[6], uint8_t addr_type);
40
41} // namespace cdc::mod_gpg
bool ble_gpg_xsig_send(const uint8_t addr[6], uint8_t addr_type)
Push the badge's own public key to a peer.
bool ble_gpg_xsig_init()
Initialise the GPG cross-sign BLE endpoint.
void ble_gpg_xsig_set_received_callback(XsigReceivedCallback cb)
Install / remove the "key received" notification.
void(*)(const gpg_recv_key_t &key) XsigReceivedCallback
Callback invoked when a remote badge has finished pushing a key.
One GPG public key received from another badge.