// variables\r
byte_t isOK = 0;\r
byte_t dataoutbuf[16];\r
- uint8_t uid[8];\r
+ uint8_t uid[10];\r
uint32_t cuid;\r
struct Crypto1State mpcs = {0, 0};\r
struct Crypto1State *pcs;\r
// variables\r
byte_t isOK = 0;\r
byte_t dataoutbuf[16 * 4];\r
- uint8_t uid[8];\r
+ uint8_t uid[10];\r
uint32_t cuid;\r
struct Crypto1State mpcs = {0, 0};\r
struct Crypto1State *pcs;\r
\r
// variables\r
byte_t isOK = 0;\r
- uint8_t uid[8];\r
+ uint8_t uid[10];\r
uint32_t cuid;\r
struct Crypto1State mpcs = {0, 0};\r
struct Crypto1State *pcs;\r
// variables\r
int rtr, i, j, m, len;\r
int davg, dmin, dmax;\r
- uint8_t uid[8];\r
+ uint8_t uid[10];\r
uint32_t cuid, nt1, nt2, nttmp, nttest, par, ks1;\r
uint8_t par_array[4];\r
nestedVector nvector[NES_MAX_INFO + 1][11];\r
}\r
\r
LED_B_ON();\r
-// SpinDelay(100);\r
cmd_send(CMD_ACK,0,ncount,targetBlockNo + (targetKeyType * 0x100),buf,48);\r
// UsbSendPacket((uint8_t *)&ack, sizeof(UsbCommand));\r
LED_B_OFF();\r
// memset(ack.d.asBytes, 0x00, sizeof(ack.d.asBytes));\r
\r
LED_B_ON();\r
-// SpinDelay(300);\r
// UsbSendPacket((uint8_t *)&ack, sizeof(UsbCommand));\r
cmd_send(CMD_ACK,1,0,0,0,0);\r
LED_B_OFF();\r
// variables\r
int i;\r
byte_t isOK = 0;\r
- uint8_t uid[8];\r
+ uint8_t uid[10];\r
uint32_t cuid;\r
struct Crypto1State mpcs = {0, 0};\r
struct Crypto1State *pcs;\r
// variables\r
byte_t dataoutbuf[16];\r
byte_t dataoutbuf2[16];\r
- uint8_t uid[8];\r
+ uint8_t uid[10];\r
\r
// clear trace\r
iso14a_clear_trace();\r
\r
// variables\r
byte_t isOK = 0;\r
- uint8_t uid[8];\r
+ uint8_t uid[10];\r
uint8_t d_block[18];\r
uint32_t cuid;\r
\r
- memset(uid, 0x00, 8);\r
+ memset(uid, 0x00, 10);\r
uint8_t* receivedAnswer = mifare_get_bigbufptr();\r
\r
if (workFlags & 0x08) {\r
// if (isOK) memcpy(ack.d.asBytes, uid, 4);\r
\r
// add trace trailer\r
- memset(uid, 0x44, 4);\r
- LogTrace(uid, 4, 0, 0, TRUE);\r
+ /**\r
+ * Removed by Martin, the uid is overwritten with 0x44, \r
+ * which can 't be intended. \r
+ *\r
+ * memset(uid, 0x44, 4);\r
+ * LogTrace(uid, 4, 0, 0, TRUE);\r
+ **/\r
+ \r
\r
LED_B_ON();\r
cmd_send(CMD_ACK,isOK,0,0,uid,4);\r
// if (isOK) memcpy(ack.d.asBytes, data, 18);\r
\r
// add trace trailer\r
- memset(data, 0x44, 4);\r
- LogTrace(data, 4, 0, 0, TRUE);\r
-\r
+ /*\r
+ * Removed by Martin, this piece of overwrites the 'data' variable \r
+ * which is sent two lines down, and is obviously not correct. \r
+ * \r
+ * memset(data, 0x44, 4);\r
+ * LogTrace(data, 4, 0, 0, TRUE);\r
+ */\r
LED_B_ON();\r
cmd_send(CMD_ACK,isOK,0,0,data,18);\r
// UsbSendPacket((uint8_t *)&ack, sizeof(UsbCommand));\r