From 66b030290aa8a26812e602444bdc7d22b205dcbe Mon Sep 17 00:00:00 2001 From: Antiklesys Date: Fri, 19 Jul 2024 18:42:37 +0800 Subject: [PATCH] Update iclass.c Changed more variables to lowercase --- armsrc/iclass.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/armsrc/iclass.c b/armsrc/iclass.c index 6e112429a..fee90f0c6 100644 --- a/armsrc/iclass.c +++ b/armsrc/iclass.c @@ -2254,20 +2254,20 @@ Xorring the index of iterations against those decimal numbers allows us to retri while (bits_found == -1){ //Step3 Calculate New Key - uint8_t GenKeyBlock[PICOPASS_BLOCK_SIZE]; - uint8_t GenKeyBlock_old[PICOPASS_BLOCK_SIZE]; + uint8_t genkeyblock[PICOPASS_BLOCK_SIZE]; + uint8_t genkeyblock_old[PICOPASS_BLOCK_SIZE]; uint8_t xorkeyblock[PICOPASS_BLOCK_SIZE]; - generate_single_key_block_inverted(zero_key, index, GenKeyBlock); + generate_single_key_block_inverted(zero_key, index, genkeyblock); //NOTE BEFORE UPDATING THE KEY WE NEED TO KEEP IN MIND KEYS ARE XORRED //xor the new key against the previously generated key so that we only update the difference if(index != 0){ - generate_single_key_block_inverted(zero_key, index - 1, GenKeyBlock_old); + generate_single_key_block_inverted(zero_key, index - 1, genkeyblock_old); for (int i = 0; i < 8 ; i++) { - xorkeyblock[i] = GenKeyBlock[i] ^ GenKeyBlock_old[i]; + xorkeyblock[i] = genkeyblock[i] ^ genkeyblock_old[i]; } }else{ - memcpy(xorkeyblock, GenKeyBlock, PICOPASS_BLOCK_SIZE); + memcpy(xorkeyblock, genkeyblock, PICOPASS_BLOCK_SIZE); } //Step4 Calculate New Mac