11#define CDC_CURVE_ED25519 0
12#define CDC_CURVE_P256 1
14#define GPG_USER_ID_MAX 64
15#define GPG_FINGERPRINT_LEN 20
16#define GPG_PUBKEY_MAX_LEN 64
uint8_t user_id[FIDO2_USER_ID_MAX_LEN]
bool gpg_has_pending_user_id(void)
Returns whether a user-id was staged via gpg_set_pending_user_id().
bool gpg_init(void)
Initializes the GPG module bookkeeping.
bool gpg_set_pending_user_id(const char *user_id)
Stages a user-id string for the next on-device key generation. The string is forwarded to OpenpgpNvsS...
bool gpg_generate_key(uint8_t curve)
Generates SIG / DEC / AUT keys on the device and announces them to the OpenPGP card application (fing...
bool gpg_alchemy_fingerprint(char *buf, size_t len)
Writes the alchemical-word fingerprint of the SIG public key.
bool gpg_get_status(gpg_status_t *status)
Fills status from the OpenPGP card-application state.
bool gpg_is_initialized(void)
Reports whether at least one OpenPGP key role has a configured fingerprint on the card.
bool gpg_export_pubkey_pem(char *buf, size_t size, size_t *out_len)
Renders the current SIG public key as a SubjectPublicKeyInfo PEM. The key is read straight from the s...
#define GPG_FINGERPRINT_LEN
bool gpg_reset(void)
Factory-resets all GPG key material and metadata.
Snapshot of the current OpenPGP card-application state for UI display.