mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-23 22:55:37 -07:00
Add Key display on enum
This commit is contained in:
parent
4cd426dd04
commit
5fc922f6f9
1 changed files with 16 additions and 1 deletions
|
@ -1103,7 +1103,22 @@ static int handler_desfire_signature(uint8_t *signature, size_t *signature_len)
|
||||||
static int desfire_print_keysetting(uint8_t key_settings, uint8_t num_keys) {
|
static int desfire_print_keysetting(uint8_t key_settings, uint8_t num_keys) {
|
||||||
|
|
||||||
PrintAndLogEx(SUCCESS, " AID Key settings : 0x%02x", key_settings);
|
PrintAndLogEx(SUCCESS, " AID Key settings : 0x%02x", key_settings);
|
||||||
PrintAndLogEx(SUCCESS, " Max number of keys in AID : %d", num_keys & 0x3F);
|
// 2 MSB denotes
|
||||||
|
const char *str = " Max key number and type : %d, " _YELLOW_("%s");
|
||||||
|
switch (num_keys >> 6) {
|
||||||
|
case 0:
|
||||||
|
PrintAndLogEx(SUCCESS, str, num_keys & 0x3F, "(3)DES");
|
||||||
|
break;
|
||||||
|
case 1:
|
||||||
|
PrintAndLogEx(SUCCESS, str, num_keys & 0x3F, "3K3DES");
|
||||||
|
break;
|
||||||
|
case 2:
|
||||||
|
PrintAndLogEx(SUCCESS, str, num_keys & 0x3F, "AES");
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
//PrintAndLogEx(SUCCESS, " Max number of keys in AID : %d", num_keys & 0x3F);
|
||||||
PrintAndLogEx(INFO, "-------------------------------------------------------------");
|
PrintAndLogEx(INFO, "-------------------------------------------------------------");
|
||||||
PrintAndLogEx(SUCCESS, " Changekey Access rights");
|
PrintAndLogEx(SUCCESS, " Changekey Access rights");
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue