74 return pm.getBadgePinHash(hash);
80 return pm.getBadgePinHash(hash_out);
86 return pm.verifyBadgePinHash(hash_in);
bool verifyPW1(const char *pin)
OpenPGP PW1 (user PIN) workflow.
void resetPW1Retries()
Resets PW1 retry counter to maximum.
bool setPW3(const char *newPin)
Sets PW3 directly and refreshes salt/hash material.
uint8_t getPW1Retries() const
static constexpr uint8_t BADGE_HASH_SIZE
static constexpr const char * DEFAULT_PW1
void resetPW3Retries()
Resets PW3 retry counter to maximum.
static constexpr const char * DEFAULT_PW3
bool isPW1Blocked() const
uint8_t getPW3Retries() const
static PinManager & instance()
Returns singleton PIN manager instance.
bool isPW3Blocked() const
bool setPW1(const char *newPin)
Sets PW1 directly and refreshes salt/hash material.
bool init()
Initializes PIN state from secure storage or defaults.
bool verifyPW3(const char *pin)
OpenPGP PW3 (admin PIN) workflow.
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)