From: iceman1001 Date: Tue, 19 Jan 2016 15:59:06 +0000 (+0100) Subject: CHG: minor change initializing array. X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/7d5169a0e97575732aa971121193a9eb4f8fae57?ds=sidebyside CHG: minor change initializing array. --- diff --git a/armsrc/mifareutil.c b/armsrc/mifareutil.c index f155a92d..84477a2b 100644 --- a/armsrc/mifareutil.c +++ b/armsrc/mifareutil.c @@ -145,7 +145,11 @@ int mifare_classic_authex(struct Crypto1State *pcs, uint32_t uid, uint8_t blockN uint32_t pos; uint8_t tmp4[4]; uint8_t par[1] = {0x00}; - byte_t nr[4]; + + // "random" reader nonce: + byte_t nr[4] = {0x55, 0x41, 0x49, 0x92}; + //byte_t nr[4] = {0x01, 0x01, 0x01, 0x01}; + uint32_t nt, ntpp; // Supplied tag nonce uint8_t mf_nr_ar[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 }; @@ -157,12 +161,6 @@ int mifare_classic_authex(struct Crypto1State *pcs, uint32_t uid, uint8_t blockN if (MF_DBGLEVEL >= 4) Dbprintf("rand tag nonce len: %x", len); if (len != 4) return 1; - // "random" reader nonce: - nr[0] = 0x55; - nr[1] = 0x41; - nr[2] = 0x49; - nr[3] = 0x92; - // Save the tag nonce (nt) nt = bytes_to_num(receivedAnswer, 4);