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

Go to the source code of this file.

Namespaces

namespace  cdc
namespace  cdc::mod_gpg

Functions

bool cdc::mod_gpg::calculateFingerprintV4 (uint8_t curve, const uint8_t *pubkey, size_t pubkey_len, uint32_t created_at, uint8_t out_fp[20])
 Compute the RFC 4880 V4 OpenPGP fingerprint (SHA-1, 20 bytes).
bool cdc::mod_gpg::calculateFingerprintV5 (uint8_t curve, const uint8_t *pubkey, size_t pubkey_len, uint32_t created_at, uint8_t out_fp[32])
 Compute the V5 / RFC 9580 OpenPGP fingerprint (SHA-256, 32 bytes).
bool cdc::mod_gpg::gpgCrossSignDigest (const uint8_t fp_v4[20], const char *user_id, uint8_t out_hash[32])
 Build the digest input for a cross-signature.