ADD: Started a "collect nonces" concept to be able to analyse the tag generated nonces.

This commit is contained in:
iceman1001 2015-04-24 18:41:49 +02:00
commit add0504dea
6 changed files with 81 additions and 5 deletions

View file

@ -365,9 +365,9 @@ int mifare_classic_writeblock(struct Crypto1State *pcs, uint32_t uid, uint8_t bl
{
// variables
uint16_t len, i;
uint32_t pos;
uint8_t par[3] = {0}; // enough for 18 Bytes to send
byte_t res;
uint32_t pos = 0;
uint8_t par[3] = {0x00}; // enough for 18 Bytes to send
byte_t res = 0;
uint8_t d_block[18], d_block_enc[18];
uint8_t receivedAnswer[MAX_MIFARE_FRAME_SIZE];