#include "mifare.h"
#include "cmdhfmfu.h"
#include "nonce2key/nonce2key.h"
+#include "cmdhf.h"
#define llx PRIx64
int CmdHF14AList(const char *Cmd)
{
- PrintAndLog("Deprecated command, use 'hf list 14a' instead");
+ //PrintAndLog("Deprecated command, use 'hf list 14a' instead");
+ CmdHFList("14a");
return 0;
}
if(topazmode)
c.arg[0] |= ISO14A_TOPAZMODE;
-
+
// Max buffer is USB_CMD_DATA_SIZE
+ datalen = (datalen > USB_CMD_DATA_SIZE) ? USB_CMD_DATA_SIZE : datalen;
+
c.arg[1] = (datalen & 0xFFFF) | (numbits << 16);
memcpy(c.d.asBytes,data,datalen);