|
CDC Badge OS
Firmware for the CDC Badge v1.0 hardware security key
|
C-shim exposing badge PIN operations to C-style modules. More...
Go to the source code of this file.
C-shim exposing badge PIN operations to C-style modules.
Definition in file pin_storage_c.cpp.
| bool pin_storage_fido2_available | ( | void | ) |
Definition at line 86 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(), client_pin_get_pin_uv_auth_token(), ctap2_config(), and ctap2_large_blobs().
| bool pin_storage_get_fido2_hash | ( | uint8_t * | hash_out | ) |
Definition at line 93 of file pin_storage_c.cpp.
References cdc::core::PinManager::instance().
Referenced by client_pin_get_pin_token().
| uint8_t pin_storage_get_min_pin_floor | ( | void | ) |
Definition at line 109 of file pin_storage_c.cpp.
References cdc::core::PinManager::instance(), and cdc::core::PinManager::minPinLengthFloor().
| bool pin_storage_is_set | ( | void | ) |
Definition at line 80 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 apply_kdf_do(), 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 apply_kdf_do(), 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 63 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 47 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 67 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 51 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 71 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 55 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 59 of file pin_storage_c.cpp.
References cdc::core::PinManager::instance(), and cdc::core::PinManager::resetPW3Retries().
| bool pin_storage_openpgp_set_pw1_raw | ( | const uint8_t * | data, |
| size_t | len ) |
Definition at line 39 of file pin_storage_c.cpp.
References cdc::core::PinManager::instance(), and cdc::core::PinManager::setPW1Raw().
Referenced by apply_kdf_do(), cmd_change_reference_data(), and cmd_reset_retry_counter().
| bool pin_storage_openpgp_set_pw3_raw | ( | const uint8_t * | data, |
| size_t | len ) |
Definition at line 43 of file pin_storage_c.cpp.
References cdc::core::PinManager::instance(), and cdc::core::PinManager::setPW3Raw().
Referenced by apply_kdf_do(), and cmd_change_reference_data().
| 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_pw1_raw | ( | const uint8_t * | data, |
| size_t | len ) |
Definition at line 31 of file pin_storage_c.cpp.
References cdc::core::PinManager::instance(), and cdc::core::PinManager::verifyPW1Raw().
Referenced by cmd_change_reference_data(), and cmd_verify().
| 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_openpgp_verify_pw3_raw | ( | const uint8_t * | data, |
| size_t | len ) |
Definition at line 35 of file pin_storage_c.cpp.
References cdc::core::PinManager::instance(), and cdc::core::PinManager::verifyPW3Raw().
Referenced by cmd_change_reference_data(), and cmd_verify().
| void pin_storage_set_min_pin_floor | ( | uint8_t | min_len | ) |
Definition at line 105 of file pin_storage_c.cpp.
References cdc::core::PinManager::instance(), and cdc::core::PinManager::setMinPinLengthFloor().
Referenced by ctap2_config(), fido2_factory_reset(), and cdc::mod_fido2::Fido2Module::start().
| bool pin_storage_verify_fido2_hash | ( | const uint8_t * | hash_in | ) |
Definition at line 99 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().