ikeys: "declaration shadows a variable in the global scope" warning

This commit is contained in:
Philippe Teuwen 2019-10-26 20:37:48 +02:00
parent 6c048c5026
commit 900184b600

View file

@ -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);