Rename scan_files to scan_files_openpgp
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
@@ -32,6 +32,6 @@ int cmd_terminate_df() {
|
|||||||
return SW_WRONG_LENGTH();
|
return SW_WRONG_LENGTH();
|
||||||
}
|
}
|
||||||
initialize_flash(true);
|
initialize_flash(true);
|
||||||
scan_files();
|
scan_files_openpgp();
|
||||||
return SW_OK();
|
return SW_OK();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -99,7 +99,7 @@ void select_file(file_t *pe) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void scan_files() {
|
void scan_files_openpgp() {
|
||||||
scan_flash();
|
scan_flash();
|
||||||
file_t *ef;
|
file_t *ef;
|
||||||
if ((ef = search_by_fid(EF_FULL_AID, NULL, SPECIFY_ANY))) {
|
if ((ef = search_by_fid(EF_FULL_AID, NULL, SPECIFY_ANY))) {
|
||||||
@@ -288,7 +288,7 @@ void init_openpgp() {
|
|||||||
algo_aut = EF_ALGO_PRIV3;
|
algo_aut = EF_ALGO_PRIV3;
|
||||||
pk_dec = EF_PK_DEC;
|
pk_dec = EF_PK_DEC;
|
||||||
pk_aut = EF_PK_AUT;
|
pk_aut = EF_PK_AUT;
|
||||||
scan_files();
|
scan_files_openpgp();
|
||||||
//cmd_select();
|
//cmd_select();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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 int reset_sig_count();
|
||||||
extern uint16_t algo_dec, algo_aut, pk_dec, pk_aut;
|
extern uint16_t algo_dec, algo_aut, pk_dec, pk_aut;
|
||||||
extern bool wait_button_pressed_fid(uint16_t fid);
|
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 load_aes_key(uint8_t *aes_key, file_t *fkey);
|
||||||
extern int inc_sig_count();
|
extern int inc_sig_count();
|
||||||
extern int dek_encrypt(uint8_t *data, size_t len);
|
extern int dek_encrypt(uint8_t *data, size_t len);
|
||||||
|
|||||||
Reference in New Issue
Block a user