diff --git a/client/loclass/ikeys.c b/client/loclass/ikeys.c index 2f3a6c067..339ea91f7 100644 --- a/client/loclass/ikeys.c +++ b/client/loclass/ikeys.c @@ -422,7 +422,7 @@ typedef struct { uint8_t div_key[8]; } Testcase; -static int testDES(Testcase testcase, mbedtls_des_context ctx_enc, mbedtls_des_context ctx_dec) { +static int testDES(Testcase testcase) { uint8_t des_encrypted_csn[8] = {0}; uint8_t decrypted[8] = {0}; uint8_t div_key[8] = {0}; @@ -562,7 +562,7 @@ static int testKeyDiversificationWithMasterkeyTestcases() { PrintAndLogEx(INFO, "Testing encryption/decryption"); for (i = 0; memcmp(testcases + i, empty, 8); i++) - error += testDES(testcases[i], ctx_enc, ctx_dec); + error += testDES(testcases[i]); if (error) PrintAndLogEx(FAILED, "%d errors occurred (%d testcases)", error, i);