2011-05-18 20:33:32 +08:00
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// Copyright (C) 2010 iZsh <izsh at fail0verflow.com>
|
|
|
|
// Copyright (C) 2011 Gerhard de Koning Gans
|
|
|
|
//
|
|
|
|
// This code is licensed to you under the terms of the GNU GPL, version 2 or,
|
|
|
|
// at your option, any later version. See the LICENSE.txt file for the text of
|
|
|
|
// the license.
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// High frequency iClass support
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
#ifndef CMDHFICLASS_H__
|
|
|
|
#define CMDHFICLASS_H__
|
|
|
|
|
|
|
|
int CmdHFiClass(const char *Cmd);
|
|
|
|
|
2015-07-22 02:26:46 +08:00
|
|
|
int CmdHFiClassCalcNewKey(const char *Cmd);
|
|
|
|
int CmdHFiClassCloneTag(const char *Cmd);
|
|
|
|
int CmdHFiClassDecrypt(const char *Cmd);
|
|
|
|
int CmdHFiClassEncryptBlk(const char *Cmd);
|
|
|
|
int CmdHFiClassELoad(const char *Cmd);
|
2011-05-18 20:33:32 +08:00
|
|
|
int CmdHFiClassList(const char *Cmd);
|
2015-05-13 04:45:48 +08:00
|
|
|
int HFiClassReader(const char *Cmd, bool loop, bool verbose);
|
2012-06-28 21:38:40 +08:00
|
|
|
int CmdHFiClassReader(const char *Cmd);
|
2015-07-22 02:26:46 +08:00
|
|
|
int CmdHFiClassReader_Dump(const char *Cmd);
|
2014-04-15 18:47:01 +08:00
|
|
|
int CmdHFiClassReader_Replay(const char *Cmd);
|
2015-07-21 01:41:40 +08:00
|
|
|
int CmdHFiClassReadKeyFile(const char *filename);
|
2015-07-22 02:26:46 +08:00
|
|
|
int CmdHFiClassReadTagFile(const char *Cmd);
|
2015-07-21 01:41:40 +08:00
|
|
|
int CmdHFiClass_ReadBlock(const char *Cmd);
|
|
|
|
int CmdHFiClass_TestMac(const char *Cmd);
|
2015-07-22 02:26:46 +08:00
|
|
|
int CmdHFiClassManageKeys(const char *Cmd);
|
|
|
|
int CmdHFiClass_loclass(const char *Cmd);
|
|
|
|
int CmdHFiClassSnoop(const char *Cmd);
|
|
|
|
int CmdHFiClassSim(const char *Cmd);
|
|
|
|
int CmdHFiClassWriteKeyFile(const char *Cmd);
|
|
|
|
int CmdHFiClass_WriteBlock(const char *Cmd);
|
|
|
|
void printIclassDumpContents(uint8_t *iclass_dump, uint8_t startblock, uint8_t endblock, size_t filesize);
|
|
|
|
void HFiClassCalcDivKey(uint8_t *CSN, uint8_t *KEY, uint8_t *div_key, bool elite);
|
2011-05-18 20:33:32 +08:00
|
|
|
#endif
|