|
CDC Badge OS
Firmware for the CDC Badge v1.0 hardware security key
|
#include <stdbool.h>#include <stdint.h>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) |
| bool pin_storage_fido2_available | ( | void | ) |
Definition at line 70 of file pin_storage_c.cpp.
References cdc::core::PinManager::BADGE_HASH_SIZE, and cdc::core::PinManager::instance().
Referenced by client_pin_get_pin_token(), and client_pin_get_pin_uv_auth_token().
| 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().
| bool pin_storage_is_set | ( | void | ) |
Definition at line 64 of file pin_storage_c.cpp.
References cdc::core::PinManager::instance().
| bool pin_storage_openpgp_change_pw1 | ( | const char * | new_pin | ) |
Definition at line 23 of file pin_storage_c.cpp.
References cdc::core::PinManager::instance(), and cdc::core::PinManager::setPW1().
Referenced by cmd_change_reference_data(), cmd_reset_retry_counter(), and cdc::mod_gpg::gpg_change_pw1().
| bool pin_storage_openpgp_change_pw3 | ( | const char * | new_pin | ) |
Definition at line 27 of file pin_storage_c.cpp.
References cdc::core::PinManager::instance(), and cdc::core::PinManager::setPW3().
Referenced by cmd_change_reference_data(), and cdc::mod_gpg::gpg_change_pw3().
| 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().
| bool pin_storage_openpgp_pw1_blocked | ( | void | ) |
Definition at line 47 of file pin_storage_c.cpp.
References cdc::core::PinManager::instance(), and cdc::core::PinManager::isPW1Blocked().
Referenced by cmd_terminate_df(), cmd_verify(), and cdc::mod_gpg::gpg_blocked_pw1().
| uint8_t pin_storage_openpgp_pw1_retries | ( | void | ) |
Definition at line 31 of file pin_storage_c.cpp.
References cdc::core::PinManager::getPW1Retries(), and cdc::core::PinManager::instance().
Referenced by build_do_app_related(), cmd_change_reference_data(), cmd_get_data(), cmd_verify(), and cdc::mod_gpg::gpg_retries_pw1().
| bool pin_storage_openpgp_pw3_blocked | ( | void | ) |
Definition at line 51 of file pin_storage_c.cpp.
References cdc::core::PinManager::instance(), and cdc::core::PinManager::isPW3Blocked().
Referenced by cmd_terminate_df(), cmd_verify(), and cdc::mod_gpg::gpg_blocked_pw3().
| uint8_t pin_storage_openpgp_pw3_retries | ( | void | ) |
Definition at line 35 of file pin_storage_c.cpp.
References cdc::core::PinManager::getPW3Retries(), and cdc::core::PinManager::instance().
Referenced by build_do_app_related(), cmd_change_reference_data(), cmd_get_data(), cmd_verify(), and cdc::mod_gpg::gpg_retries_pw3().
| bool pin_storage_openpgp_reset | ( | void | ) |
Definition at line 55 of file pin_storage_c.cpp.
References cdc::core::PinManager::DEFAULT_PW1, cdc::core::PinManager::DEFAULT_PW3, and cdc::core::PinManager::instance().
Referenced by openpgp_factory_reset().
| void pin_storage_openpgp_reset_pw1_retries | ( | void | ) |
Definition at line 39 of file pin_storage_c.cpp.
References cdc::core::PinManager::instance(), and cdc::core::PinManager::resetPW1Retries().
Referenced by cmd_reset_retry_counter().
| void pin_storage_openpgp_reset_pw3_retries | ( | void | ) |
Definition at line 43 of file pin_storage_c.cpp.
References cdc::core::PinManager::instance(), and cdc::core::PinManager::resetPW3Retries().
| bool pin_storage_openpgp_verify_pw1 | ( | const char * | pin | ) |
Definition at line 15 of file pin_storage_c.cpp.
References cdc::core::PinManager::instance(), and cdc::core::PinManager::verifyPW1().
Referenced by cmd_change_reference_data(), cmd_verify(), and cdc::mod_gpg::gpg_verify_pw1().
| bool pin_storage_openpgp_verify_pw3 | ( | const char * | pin | ) |
Definition at line 19 of file pin_storage_c.cpp.
References cdc::core::PinManager::instance(), and cdc::core::PinManager::verifyPW3().
Referenced by cmd_change_reference_data(), cmd_verify(), and cdc::mod_gpg::gpg_verify_pw3().
| bool pin_storage_verify_fido2_hash | ( | const uint8_t * | hash_in | ) |
Definition at line 83 of file pin_storage_c.cpp.
References cdc::core::PinManager::instance().
Referenced by client_pin_get_pin_token(), and client_pin_get_pin_uv_auth_token().