]>
cvs.zerfleddert.de Git - proxmark3-svn/blob - client/cmdhficlass.h
1 //-----------------------------------------------------------------------------
2 // Copyright (C) 2010 iZsh <izsh at fail0verflow.com>
3 // Copyright (C) 2011 Gerhard de Koning Gans
5 // This code is licensed to you under the terms of the GNU GPL, version 2 or,
6 // at your option, any later version. See the LICENSE.txt file for the text of
8 //-----------------------------------------------------------------------------
9 // High frequency iClass support
10 //-----------------------------------------------------------------------------
12 #ifndef CMDHFICLASS_H__
13 #define CMDHFICLASS_H__
19 #include "iso14443crc.h" // Can also be used for iClass, using 0xE012 as CRC-type
21 #include "proxmark3.h"
23 #include "cmdparser.h"
27 #include "loclass/des.h"
28 #include "loclass/cipherutils.h"
29 #include "loclass/cipher.h"
30 #include "loclass/ikeys.h"
31 #include "loclass/elite_crack.h"
32 #include "loclass/fileutils.h"
33 #include "protocols.h"
37 #include "protocols.h" // picopass structs,
39 int CmdHFiClass(const char *Cmd
);
41 int CmdHFiClassCalcNewKey(const char *Cmd
);
42 int CmdHFiClassCloneTag(const char *Cmd
);
43 int CmdHFiClassDecrypt(const char *Cmd
);
44 int CmdHFiClassEncryptBlk(const char *Cmd
);
45 int CmdHFiClassELoad(const char *Cmd
);
46 int CmdHFiClassList(const char *Cmd
);
47 int HFiClassReader(const char *Cmd
, bool loop
, bool verbose
);
48 int CmdHFiClassReader(const char *Cmd
);
49 int CmdHFiClassReader_Dump(const char *Cmd
);
50 int CmdHFiClassReader_Replay(const char *Cmd
);
51 int CmdHFiClassReadKeyFile(const char *filename
);
52 int CmdHFiClassReadTagFile(const char *Cmd
);
53 int CmdHFiClass_ReadBlock(const char *Cmd
);
54 int CmdHFiClass_TestMac(const char *Cmd
);
55 int CmdHFiClassManageKeys(const char *Cmd
);
56 int CmdHFiClass_loclass(const char *Cmd
);
57 int CmdHFiClassSnoop(const char *Cmd
);
58 int CmdHFiClassSim(const char *Cmd
);
59 int CmdHFiClassWriteKeyFile(const char *Cmd
);
60 int CmdHFiClass_WriteBlock(const char *Cmd
);
61 void printIclassDumpContents(uint8_t *iclass_dump
, uint8_t startblock
, uint8_t endblock
, size_t filesize
);
62 void HFiClassCalcDivKey(uint8_t *CSN
, uint8_t *KEY
, uint8_t *div_key
, bool elite
);