]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/cmdhflegic.h
Renamed the calccrc8 functions and command.
[proxmark3-svn] / client / cmdhflegic.h
index 7da1be61120b913fe7af33c8e2f0850b7537fdf2..e7a4c9cd4e1e999f4c3c3db87e32f44486975fed 100644 (file)
@@ -1,9 +1,54 @@
+//-----------------------------------------------------------------------------
+// Copyright (C) 2010 iZsh <izsh at fail0verflow.com>
+//
+// 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 Legic commands
+//-----------------------------------------------------------------------------
+
 #ifndef CMDHFLEGIC_H__
 #define CMDHFLEGIC_H__
 
+#include <stdio.h>
+#include <string.h>
+#include "proxmark3.h"
+#include "data.h"
+#include "ui.h"
+#include "cmdparser.h"
+#include "cmdmain.h"
+#include "util.h"
+#include "crc.h"
+#include "legic_prng.h"
+#include "legic.h" // legic_card_select_t struct
+
 int CmdHFLegic(const char *Cmd);
 
-int CmdLegicRFRead(const char *Cmd);
-int CmdLegicDecode(const char *Cmd);
+int CmdLegicInfo(const char *Cmd);
+int CmdLegicRdmem(const char *Cmd);
+int CmdLegicLoad(const char *Cmd);
+int CmdLegicSave(const char *Cmd);
+int CmdLegicRfSim(const char *Cmd);
+int CmdLegicRfWrite(const char *Cmd);
+int CmdLegicCalcCrc(const char *Cmd);
+int CmdLegicDump(const char *Cmd);
+int CmdLegicReader(const char *Cmd);
+int CmdLegicELoad(const char *Cmd);
+int CmdLegicESave(const char *Cmd);
+
+int HFLegicReader(const char *Cmd, bool verbose);
+int legic_print_type(uint32_t tagtype, uint8_t spaces);
+int legic_get_type(legic_card_select_t *card);
+void legic_chk_iv(uint32_t *iv);
+void legic_seteml(uint8_t *src, uint32_t offset, uint32_t numofbytes);
 
+int usage_legic_calccrc(void);
+int usage_legic_load(void);
+int usage_legic_rdmem(void);
+int usage_legic_sim(void);
+int usage_legic_write(void);
+int usage_legic_reader(void);
+int usage_legic_info(void);
+int usage_legic_dump(void);
 #endif
Impressum, Datenschutz