CDC Badge OS
Firmware for the CDC Badge v1.0 hardware security key
Loading...
Searching...
No Matches
pin_storage_c.cpp File Reference

C-shim exposing badge PIN operations to C-style modules. More...

Go to the source code of this file.

Functions

void pin_storage_openpgp_init (void)
bool pin_storage_openpgp_verify_pw1 (const char *pin)
bool pin_storage_openpgp_verify_pw3 (const char *pin)
bool pin_storage_openpgp_change_pw1 (const char *new_pin)
bool pin_storage_openpgp_change_pw3 (const char *new_pin)
uint8_t pin_storage_openpgp_pw1_retries (void)
uint8_t pin_storage_openpgp_pw3_retries (void)
void pin_storage_openpgp_reset_pw1_retries (void)
void pin_storage_openpgp_reset_pw3_retries (void)
bool pin_storage_openpgp_pw1_blocked (void)
bool pin_storage_openpgp_pw3_blocked (void)
bool pin_storage_openpgp_reset (void)
bool pin_storage_is_set (void)
bool pin_storage_fido2_available (void)
bool pin_storage_get_fido2_hash (uint8_t *hash_out)
bool pin_storage_verify_fido2_hash (const uint8_t *hash_in)

Detailed Description

C-shim exposing badge PIN operations to C-style modules.

Definition in file pin_storage_c.cpp.

Function Documentation

◆ pin_storage_fido2_available()

bool pin_storage_fido2_available ( void )

◆ pin_storage_get_fido2_hash()

bool pin_storage_get_fido2_hash ( uint8_t * hash_out)

Definition at line 77 of file pin_storage_c.cpp.

References cdc::core::PinManager::instance().

Referenced by client_pin_get_pin_token().

◆ pin_storage_is_set()

bool pin_storage_is_set ( void )

Definition at line 64 of file pin_storage_c.cpp.

References cdc::core::PinManager::instance().

◆ pin_storage_openpgp_change_pw1()

bool pin_storage_openpgp_change_pw1 ( const char * new_pin)

◆ pin_storage_openpgp_change_pw3()

bool pin_storage_openpgp_change_pw3 ( const char * new_pin)

◆ pin_storage_openpgp_init()

void pin_storage_openpgp_init ( void )

Definition at line 11 of file pin_storage_c.cpp.

References cdc::core::PinManager::init(), and cdc::core::PinManager::instance().

Referenced by openpgp_init().

◆ pin_storage_openpgp_pw1_blocked()

bool pin_storage_openpgp_pw1_blocked ( void )

◆ pin_storage_openpgp_pw1_retries()

◆ pin_storage_openpgp_pw3_blocked()

bool pin_storage_openpgp_pw3_blocked ( void )

◆ pin_storage_openpgp_pw3_retries()

◆ pin_storage_openpgp_reset()

bool pin_storage_openpgp_reset ( void )

◆ pin_storage_openpgp_reset_pw1_retries()

void pin_storage_openpgp_reset_pw1_retries ( void )

◆ pin_storage_openpgp_reset_pw3_retries()

void pin_storage_openpgp_reset_pw3_retries ( void )

◆ pin_storage_openpgp_verify_pw1()

bool pin_storage_openpgp_verify_pw1 ( const char * pin)

◆ pin_storage_openpgp_verify_pw3()

bool pin_storage_openpgp_verify_pw3 ( const char * pin)

◆ pin_storage_verify_fido2_hash()

bool pin_storage_verify_fido2_hash ( const uint8_t * hash_in)