Merged two iclass-reader functions into one to remove duplicated code, update loclass library with hash2 algo

This commit is contained in:
Martin Holst Swende 2014-06-29 23:34:24 +02:00
parent d2d0af8ca6
commit aa41c6058a
6 changed files with 262 additions and 164 deletions

View file

@ -118,7 +118,6 @@ typedef struct {
#define CMD_SIMULATE_TAG_ICLASS 0x0393
#define CMD_READER_ICLASS 0x0394
#define CMD_READER_ICLASS_REPLAY 0x0395
#define CMD_ICLASS_ISO14443A_GETPUBLIC 0x0396
#define CMD_ICLASS_ISO14443A_WRITE 0x0397
// For measurements of the antenna tuning
@ -165,6 +164,8 @@ typedef struct {
#define FLAG_NR_AR_ATTACK 0x08
//Iclass reader flags
#define FLAG_ICLASS_READER_ONLY_ONCE 0x01
// CMD_DEVICE_INFO response packet has flags in arg[0], flag definitions:
/* Whether a bootloader that understands the common_area is present */