VSDC path sketch
This commit is contained in:
@@ -731,9 +731,9 @@ int CmdEMVExec(const char *cmd) {
|
||||
|
||||
enum TransactionType TrType = TT_MSD;
|
||||
if (arg_get_lit(7))
|
||||
TrType = TT_QVSDCMCHIP;
|
||||
TrType = TT_QVSDCMCHIP;
|
||||
if (arg_get_lit(8))
|
||||
TrType = TT_CDA;
|
||||
TrType = TT_CDA;
|
||||
if (arg_get_lit(9))
|
||||
TrType = TT_VSDC;
|
||||
|
||||
@@ -1130,6 +1130,13 @@ int CmdEMVExec(const char *cmd) {
|
||||
}
|
||||
}
|
||||
|
||||
// VSDC
|
||||
if (GetCardPSVendor(AID, AIDlen) == CV_VISA && (TrType == TT_VSDC)){
|
||||
PrintAndLogEx(NORMAL, "\n--> VSDC transaction.");
|
||||
|
||||
|
||||
}
|
||||
|
||||
DropField();
|
||||
|
||||
// Destroy TLV's
|
||||
|
||||
@@ -785,7 +785,7 @@ int trDDA(EMVCommandChannel channel, bool decodeTLV, struct tlvdb *tlv) {
|
||||
struct tlvdb *dac_db = emv_pki_recover_dac(issuer_pk, tlv, sda_tlv);
|
||||
if (dac_db) {
|
||||
const struct tlv *dac_tlv = tlvdb_get(dac_db, 0x9f45, NULL);
|
||||
PrintAndLogEx(NORMAL, "SDA verified OK. (Data Authentication Code: %02hhx:%02hhx)\n", dac_tlv->value[0], dac_tlv->value[1]);
|
||||
PrintAndLogEx(NORMAL, "SDAD verified OK. (Data Authentication Code: %02hhx:%02hhx)\n", dac_tlv->value[0], dac_tlv->value[1]);
|
||||
tlvdb_add(tlv, dac_db);
|
||||
} else {
|
||||
PrintAndLogEx(WARNING, "Error: SSAD verify error");
|
||||
|
||||
Reference in New Issue
Block a user