]> cvs.zerfleddert.de Git - proxmark3-svn/blob - client/cmdhficlass.h
ADD: some defines to make headerfiles behave better.
[proxmark3-svn] / client / cmdhficlass.h
1 //-----------------------------------------------------------------------------
2 // Copyright (C) 2010 iZsh <izsh at fail0verflow.com>
3 // Copyright (C) 2011 Gerhard de Koning Gans
4 //
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
7 // the license.
8 //-----------------------------------------------------------------------------
9 // High frequency iClass support
10 //-----------------------------------------------------------------------------
11
12 #ifndef CMDHFICLASS_H__
13 #define CMDHFICLASS_H__
14
15 #include <stdio.h>
16 #include <stdlib.h>
17 #include <string.h>
18 #include <sys/stat.h>
19 #include "iso14443crc.h" // Can also be used for iClass, using 0xE012 as CRC-type
20 #include "data.h"
21 #include "proxmark3.h"
22 #include "ui.h"
23 #include "cmdparser.h"
24 #include "common.h"
25 #include "util.h"
26 #include "cmdmain.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"
34 #include "usb_cmd.h"
35 #include "cmdhfmfu.h"
36 #include "cmdhf.h"
37 #include "protocols.h" // picopass structs,
38
39 int CmdHFiClass(const char *Cmd);
40
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);
63 #endif
Impressum, Datenschutz