mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 13:23:51 -07:00
remove debugging code
This commit is contained in:
parent
23eca8fecc
commit
b997a78bca
1 changed files with 5 additions and 2 deletions
|
@ -79,6 +79,7 @@ static void PrintChannel(Iso7816CommandChannel channel) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
static int emv_calc_cvv(const uint8_t *pan, size_t panlen, const uint8_t *expiry, const uint8_t *servicecode, const uint8_t *atc) {
|
static int emv_calc_cvv(const uint8_t *pan, size_t panlen, const uint8_t *expiry, const uint8_t *servicecode, const uint8_t *atc) {
|
||||||
|
|
||||||
uint8_t key[16] = {0};
|
uint8_t key[16] = {0};
|
||||||
|
@ -118,7 +119,7 @@ static int emv_calc_cvv(const uint8_t *pan, size_t panlen, const uint8_t *expiry
|
||||||
PrintAndLogEx(INFO, "key... %s", sprint_hex_inrow(key, sizeof(key)));
|
PrintAndLogEx(INFO, "key... %s", sprint_hex_inrow(key, sizeof(key)));
|
||||||
PrintAndLogEx(INFO, "d..... %s", sprint_hex_inrow(d, sizeof(d)));
|
PrintAndLogEx(INFO, "d..... %s", sprint_hex_inrow(d, sizeof(d)));
|
||||||
|
|
||||||
/*
|
|
||||||
mbedtls_des3_context ctx3;
|
mbedtls_des3_context ctx3;
|
||||||
mbedtls_des3_init(&ctx3);
|
mbedtls_des3_init(&ctx3);
|
||||||
mbedtls_des3_set2key_enc(&ctx3, key);
|
mbedtls_des3_set2key_enc(&ctx3, key);
|
||||||
|
@ -131,9 +132,11 @@ static int emv_calc_cvv(const uint8_t *pan, size_t panlen, const uint8_t *expiry
|
||||||
memset(encrypted, 0, sizeof(encrypted));
|
memset(encrypted, 0, sizeof(encrypted));
|
||||||
des3_encrypt(encrypted, d, key, 2);
|
des3_encrypt(encrypted, d, key, 2);
|
||||||
PrintAndLogEx(INFO, "enc... %s", sprint_hex_inrow(encrypted, sizeof(encrypted)));
|
PrintAndLogEx(INFO, "enc... %s", sprint_hex_inrow(encrypted, sizeof(encrypted)));
|
||||||
*/
|
|
||||||
return PM3_SUCCESS;
|
return PM3_SUCCESS;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
static size_t logtemplate_calculate_len(const struct tlv *tlv, size_t data_len) {
|
static size_t logtemplate_calculate_len(const struct tlv *tlv, size_t data_len) {
|
||||||
if (!tlv)
|
if (!tlv)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue