2018-07-05 16:48:24 +08:00
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// Copyright (C) 2018 iceman
|
|
|
|
//
|
|
|
|
// 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.
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// Proxmark3 RDV40 Smartcard module commands
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
#ifndef CMDSMARTCARD_H__
|
|
|
|
#define CMDSMARTCARD_H__
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <ctype.h>
|
|
|
|
#include "proxmark3.h"
|
|
|
|
#include "ui.h"
|
|
|
|
#include "cmdparser.h"
|
|
|
|
#include "common.h"
|
|
|
|
#include "util.h"
|
2019-03-10 06:35:06 +08:00
|
|
|
#include "loclass/fileutils.h" // saveFile
|
|
|
|
#include "comms.h" // getfromdevice
|
|
|
|
#include "emv/emvcore.h" // decodeTVL
|
|
|
|
#include "emv/apduinfo.h" // APDUcode description
|
|
|
|
#include "emv/dump.h" // dump_buffer
|
2019-03-15 08:54:43 +08:00
|
|
|
#include "crypto/libpcrypto.h" // sha512hash
|
2018-07-05 16:48:24 +08:00
|
|
|
|
2019-04-06 06:38:22 +08:00
|
|
|
int CmdSmartcard(const char *Cmd);
|
2018-07-05 16:48:24 +08:00
|
|
|
|
2019-04-06 06:38:22 +08:00
|
|
|
bool smart_select(bool silent, smart_card_atr_t *atr);
|
|
|
|
int ExchangeAPDUSC(uint8_t *datain, int datainlen, bool activateCard, bool leaveSignalON, uint8_t *dataout, int maxdataoutlen, int *dataoutlen);
|
2018-12-05 23:27:28 +08:00
|
|
|
|
2019-03-12 07:12:26 +08:00
|
|
|
#endif
|