90 return pm.getBadgePinHash(hash);
96 return pm.getBadgePinHash(hash_out);
102 return pm.verifyBadgePinHash(hash_in);
bool verifyPW1(const char *pin)
OpenPGP PW1 (user PIN) workflow.
bool setPW3Raw(const uint8_t *data, size_t len)
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
void setMinPinLengthFloor(uint8_t minLen)
Sets the minimum badge-PIN length floor enforced on changes.
bool isPW1Blocked() const
bool verifyPW3Raw(const uint8_t *data, size_t len)
OpenPGP KDF-DO path: PW3 reference is a host-supplied pre-hash.
bool setPW1Raw(const uint8_t *data, size_t len)
uint8_t getPW3Retries() const
static PinManager & instance()
Returns singleton PIN manager instance.
uint8_t minPinLengthFloor() const
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.
bool verifyPW1Raw(const uint8_t *data, size_t len)
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)
uint8_t pin_storage_get_min_pin_floor(void)
bool pin_storage_openpgp_set_pw1_raw(const uint8_t *data, size_t len)
bool pin_storage_openpgp_verify_pw3_raw(const uint8_t *data, size_t len)
bool pin_storage_openpgp_change_pw3(const char *new_pin)
void pin_storage_set_min_pin_floor(uint8_t min_len)
uint8_t pin_storage_openpgp_pw3_retries(void)
bool pin_storage_openpgp_verify_pw1_raw(const uint8_t *data, size_t len)
bool pin_storage_openpgp_verify_pw1(const char *pin)
void pin_storage_openpgp_init(void)
bool pin_storage_openpgp_set_pw3_raw(const uint8_t *data, size_t len)
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)