]> git.zerfleddert.de Git - proxmark3-svn/commitdiff
CHG: minor change initializing array.
authoriceman1001 <iceman@iuse.se>
Tue, 19 Jan 2016 15:59:06 +0000 (16:59 +0100)
committericeman1001 <iceman@iuse.se>
Tue, 19 Jan 2016 15:59:06 +0000 (16:59 +0100)
armsrc/mifareutil.c

index f155a92d7fc0575237af8f722f2befca97010396..84477a2b046c29da292e3a8675da213c639c4324 100644 (file)
@@ -145,7 +145,11 @@ int mifare_classic_authex(struct Crypto1State *pcs, uint32_t uid, uint8_t blockN
        uint32_t pos;\r
        uint8_t tmp4[4];\r
        uint8_t par[1] = {0x00};\r
-       byte_t nr[4];\r
+\r
+       // "random" reader nonce:\r
+       byte_t nr[4] = {0x55, 0x41, 0x49, 0x92};\r
+       //byte_t nr[4] = {0x01, 0x01, 0x01, 0x01};\r
+       \r
        uint32_t nt, ntpp; // Supplied tag nonce\r
        \r
        uint8_t mf_nr_ar[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 };\r
@@ -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);  \r
        if (len != 4) return 1;\r
        \r
-       // "random" reader nonce:\r
-       nr[0] = 0x55;\r
-       nr[1] = 0x41;\r
-       nr[2] = 0x49;\r
-       nr[3] = 0x92; \r
-       \r
        // Save the tag nonce (nt)\r
        nt = bytes_to_num(receivedAnswer, 4);\r
 \r
Impressum, Datenschutz