Rename scan_files to scan_files_openpgp

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos
2025-05-24 14:25:21 +02:00
parent 4480e29ecc
commit 68ac692de6
3 changed files with 4 additions and 4 deletions

View File

@@ -32,6 +32,6 @@ int cmd_terminate_df() {
return SW_WRONG_LENGTH();
}
initialize_flash(true);
scan_files();
scan_files_openpgp();
return SW_OK();
}

View File

@@ -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();
}

View File

@@ -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);