ADD: analyse nuid - generates NUID 4byte from a UID 7byte. Mifare Classic Ev1 has this option as a activation sequences. This NUID is also used for authenticate (cuid), not the block0 data.

ref: http://www.gorferay.com/mifare-and-handling-of-uids/
This commit is contained in:
iceman1001 2017-03-10 09:48:36 +01:00
commit 905c55de2b
4 changed files with 71 additions and 7 deletions

View file

@ -8,7 +8,7 @@
#include "iso14443crc.h"
static unsigned short UpdateCrc14443(unsigned char ch, unsigned short *lpwCrc)
unsigned short UpdateCrc14443(unsigned char ch, unsigned short *lpwCrc)
{
ch = (ch ^ (unsigned char) ((*lpwCrc) & 0x00FF));
ch = (ch ^ (ch << 4));