CDC Badge OS
Firmware for the CDC Badge v1.0 hardware security key
Loading...
Searching...
No Matches
pin_storage_c.h
Go to the documentation of this file.
1#pragma once
2
3#include <stdbool.h>
4#include <stdint.h>
5
6#ifdef __cplusplus
7extern "C" {
8#endif
9
10/* OpenPGP password management (PW1/PW3). */
12bool pin_storage_openpgp_verify_pw1(const char *pin);
13bool pin_storage_openpgp_verify_pw3(const char *pin);
14bool pin_storage_openpgp_change_pw1(const char *new_pin);
15bool pin_storage_openpgp_change_pw3(const char *new_pin);
23
24/* Badge PIN status (shared between modules). */
25bool pin_storage_is_set(void);
26
27/* FIDO2 ClientPIN support backed by the badge PIN hash. */
29bool pin_storage_get_fido2_hash(uint8_t* hash_out);
30bool pin_storage_verify_fido2_hash(const uint8_t* hash_in);
31
32#ifdef __cplusplus
33}
34#endif
uint8_t pin_storage_openpgp_pw1_retries(void)
bool pin_storage_verify_fido2_hash(const uint8_t *hash_in)
bool pin_storage_openpgp_reset(void)
void pin_storage_openpgp_reset_pw1_retries(void)
bool pin_storage_fido2_available(void)
bool pin_storage_is_set(void)
bool pin_storage_openpgp_pw1_blocked(void)
bool pin_storage_openpgp_change_pw3(const char *new_pin)
uint8_t pin_storage_openpgp_pw3_retries(void)
bool pin_storage_openpgp_verify_pw1(const char *pin)
void pin_storage_openpgp_init(void)
bool pin_storage_get_fido2_hash(uint8_t *hash_out)
bool pin_storage_openpgp_verify_pw3(const char *pin)
bool pin_storage_openpgp_change_pw1(const char *new_pin)
bool pin_storage_openpgp_pw3_blocked(void)
void pin_storage_openpgp_reset_pw3_retries(void)