diff --git a/src/openpgp/cmd_terminate_df.c b/src/openpgp/cmd_terminate_df.c index b69071d..a1eee5e 100644 --- a/src/openpgp/cmd_terminate_df.c +++ b/src/openpgp/cmd_terminate_df.c @@ -32,6 +32,6 @@ int cmd_terminate_df() { return SW_WRONG_LENGTH(); } initialize_flash(true); - scan_files(); + scan_files_openpgp(); return SW_OK(); } diff --git a/src/openpgp/openpgp.c b/src/openpgp/openpgp.c index ed89ace..6927f81 100644 --- a/src/openpgp/openpgp.c +++ b/src/openpgp/openpgp.c @@ -99,7 +99,7 @@ void select_file(file_t *pe) { } } -void scan_files() { +void scan_files_openpgp() { scan_flash(); file_t *ef; if ((ef = search_by_fid(EF_FULL_AID, NULL, SPECIFY_ANY))) { @@ -288,7 +288,7 @@ void init_openpgp() { algo_aut = EF_ALGO_PRIV3; pk_dec = EF_PK_DEC; pk_aut = EF_PK_AUT; - scan_files(); + scan_files_openpgp(); //cmd_select(); } diff --git a/src/openpgp/openpgp.h b/src/openpgp/openpgp.h index 316a61f..a04ba0d 100644 --- a/src/openpgp/openpgp.h +++ b/src/openpgp/openpgp.h @@ -73,7 +73,7 @@ extern mbedtls_ecp_group_id get_ec_group_id_from_attr(const uint8_t *algo, size_ extern int reset_sig_count(); extern uint16_t algo_dec, algo_aut, pk_dec, pk_aut; extern bool wait_button_pressed_fid(uint16_t fid); -extern void scan_files(); +extern void scan_files_openpgp(); extern int load_aes_key(uint8_t *aes_key, file_t *fkey); extern int inc_sig_count(); extern int dek_encrypt(uint8_t *data, size_t len);