From: Martin Holst Swende Date: Mon, 30 Jun 2014 09:23:14 +0000 (+0200) Subject: Only documentation and minor changes X-Git-Tag: v2.0.0-rc1~88^2~1 X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/9e28ee9f14e844ab073edca54404eda3cd5d2369 Only documentation and minor changes --- diff --git a/client/cmdhficlass.c b/client/cmdhficlass.c index 0650eef9..7156b118 100644 --- a/client/cmdhficlass.c +++ b/client/cmdhficlass.c @@ -491,6 +491,7 @@ int CmdHFiClassReader_Dump(const char *Cmd) //calc h2 hash2(KEY, keytable); + printarr_human_readable("keytable", keytable, 128); } @@ -533,13 +534,21 @@ int CmdHFiClassReader_Dump(const char *Cmd) permutekey_rev(key_sel,key_sel_p); used_key = key_sel_p; }else{ + //Perhaps this should also be permuted to std format? + // Something like the code below? I have no std system + // to test this with /Martin + + //uint8_t key_sel_p[8] = { 0 }; + //permutekey_rev(KEY,key_sel_p); + //used_key = key_sel_p; + used_key = KEY; } - printvar("CC:",CCNR,8); printvar("Used key",used_key,8); diversifyKey(CSN,used_key, div_key); printvar("Div key", div_key, 8); + printvar("CC_NR:",CCNR,12); doMAC(CCNR,12,div_key, MAC); printvar("MAC", MAC, 4);