@@ -1251,7 +1251,7 @@ static int felica_request_service_key_versions(uint8_t flags, const uint8_t *idm
12511251 uint8_t data [1 + 1 + 8 + 1 + (FELICA_REQUEST_SERVICE_DISCOVERY_BATCH_SIZE * 2 )] = {0 };
12521252 uint16_t datalen = 0 ;
12531253 int ret = felica_build_request_service_payload (FELICA_REQSRV_REQ , idm , node_codes_le , node_count ,
1254- data , sizeof (data ), & datalen );
1254+ data , sizeof (data ), & datalen );
12551255 if (ret != PM3_SUCCESS ) {
12561256 return ret ;
12571257 }
@@ -1306,7 +1306,7 @@ static int felica_request_service_v2_key_versions(uint8_t flags, const uint8_t *
13061306 uint8_t data [1 + 1 + 8 + 1 + (FELICA_REQUEST_SERVICE_DISCOVERY_BATCH_SIZE * 2 )] = {0 };
13071307 uint16_t datalen = 0 ;
13081308 int ret = felica_build_request_service_payload (FELICA_REQSRV2_REQ , idm , node_codes_le , node_count ,
1309- data , sizeof (data ), & datalen );
1309+ data , sizeof (data ), & datalen );
13101310 if (ret != PM3_SUCCESS ) {
13111311 return ret ;
13121312 }
@@ -1357,14 +1357,14 @@ static int felica_request_service_v2_key_versions(uint8_t flags, const uint8_t *
13571357
13581358 for (size_t i = 0 ; i < returned_nodes ; i ++ ) {
13591359 key_versions_out -> aes_key_versions_le [i ] = (uint16_t )resp .data .asBytes [offset + i * 2 ] |
1360- ((uint16_t )resp .data .asBytes [offset + i * 2 + 1 ] << 8 );
1360+ ((uint16_t )resp .data .asBytes [offset + i * 2 + 1 ] << 8 );
13611361 }
13621362 offset += aes_bytes ;
13631363
13641364 if (has_des_key_versions ) {
13651365 for (size_t i = 0 ; i < returned_nodes ; i ++ ) {
13661366 key_versions_out -> des_key_versions_le [i ] = (uint16_t )resp .data .asBytes [offset + i * 2 ] |
1367- ((uint16_t )resp .data .asBytes [offset + i * 2 + 1 ] << 8 );
1367+ ((uint16_t )resp .data .asBytes [offset + i * 2 + 1 ] << 8 );
13681368 }
13691369 }
13701370
@@ -3564,7 +3564,7 @@ static bool felica_discover_nodes_with_read_without_encryption(uint8_t *flags,
35643564 uint32_t * discovered_count ,
35653565 int * stop_status ) {
35663566 return felica_discover_nodes_with_read_without_encryption_ex (flags , idm , retry_count , NULL ,
3567- visitor , ctx , discovered_count , stop_status );
3567+ visitor , ctx , discovered_count , stop_status );
35683568}
35693569
35703570static const char * felica_node_discovery_method_cli_name (felica_node_discovery_method_t method ) {
@@ -3629,7 +3629,7 @@ static int felica_discover_nodes(const uint8_t *idm,
36293629 bool discovered = false;
36303630 if (info -> method == FELICA_NODE_DISCOVERY_READ_WITHOUT_ENCRYPTION ) {
36313631 discovered = felica_discover_nodes_with_read_without_encryption_ex (flags , idm , retry_count , pmm ,
3632- visitor , ctx , & discovered_count , & stop_status );
3632+ visitor , ctx , & discovered_count , & stop_status );
36333633 } else {
36343634 discovered = info -> run (flags , idm , retry_count , visitor , ctx , & discovered_count , & stop_status );
36353635 }
@@ -4291,7 +4291,7 @@ static int felica_dump_collect_key_versions_v2(felica_dump_system_t *system, uin
42914291
42924292 felica_request_service_v2_key_versions_t versions ;
42934293 int ret = felica_request_service_v2_key_versions (flags , system -> idm , batch_codes , batch_count ,
4294- retry_count , & versions );
4294+ retry_count , & versions );
42954295 if (ret != PM3_SUCCESS ) {
42964296 return ret ;
42974297 }
@@ -4336,7 +4336,7 @@ static int felica_dump_collect_key_versions_v1(felica_dump_system_t *system, uin
43364336
43374337 size_t returned_nodes = 0 ;
43384338 int ret = felica_request_service_key_versions (flags , system -> idm , batch_codes , batch_count ,
4339- retry_count , key_versions , & returned_nodes );
4339+ retry_count , key_versions , & returned_nodes );
43404340 if (ret != PM3_SUCCESS ) {
43414341 return ret ;
43424342 }
@@ -4772,7 +4772,7 @@ static int CmdHFFelicaAuthentication1(const char *Cmd) {
47724772 PrintAndLogEx (ERR , "response code does not match" );
47734773 return PM3_ERFTRANS ;
47744774 }
4775-
4775+
47764776 PrintAndLogEx (SUCCESS , "Auth1 response:" );
47774777 PrintAndLogEx (SUCCESS , "IDm... %s" , sprint_hex (auth1_response .frame_response .IDm , sizeof (auth1_response .frame_response .IDm )));
47784778 PrintAndLogEx (SUCCESS , "M2C... %s" , sprint_hex (auth1_response .m2c , sizeof (auth1_response .m2c )));
@@ -5646,7 +5646,7 @@ static int CmdHFFelicaDump(const char *Cmd) {
56465646 uint32_t public_service_count = 0 ;
56475647 felica_dump_system_t * dump_system = & dump_systems [dump_system_count ];
56485648 const int ret = felica_dump_single_system (& discovered_systems .systems [i ], dump_system ,
5649- retry_count , & discovered_nodes , & service_count , & public_service_count );
5649+ retry_count , & discovered_nodes , & service_count , & public_service_count );
56505650
56515651 if (ret == PM3_EOPABORTED ) {
56525652 DropField ();
@@ -6840,7 +6840,7 @@ static int CmdHFFelicaSim(const char *Cmd) {
68406840 arg_param_begin ,
68416841 arg_str1 ("f" , "file" , "<fn>" , "JSON dump file" ),
68426842 arg_str0 (NULL , "read-without-encryption-error-location-indication" ,
6843- "<mask|index|flag>" , "Read Without Encryption error location indication (default: mask)" ),
6843+ "<mask|index|flag>" , "Read Without Encryption error location indication (default: mask)" ),
68446844 arg_lit0 ("v" , "verbose" , "verbose output" ),
68456845 arg_param_end
68466846 };
0 commit comments