From c6aa14efb703ea224bd2d5ba374f2810fd105a09 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Tue, 16 Apr 2019 16:07:25 +0200 Subject: [PATCH] style --- client/cmdanalyse.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/client/cmdanalyse.c b/client/cmdanalyse.c index 2f669d7e5..525c8a9a7 100644 --- a/client/cmdanalyse.c +++ b/client/cmdanalyse.c @@ -222,10 +222,7 @@ static uint16_t calcBSDchecksum4(uint8_t *bytes, uint8_t len, uint32_t mask) { // measuring LFSR maximum length static int CmdAnalyseLfsr(const char *Cmd) { - uint16_t start_state = 0; /* Any nonzero start state will work. */ - uint16_t lfsr = start_state; - //uint32_t period = 0; - + uint16_t lfsr, start_state = 0; /* Any nonzero start state will work. */ uint8_t iv = param_get8ex(Cmd, 0, 0, 16); uint8_t find = param_get8ex(Cmd, 1, 0, 16); @@ -233,11 +230,9 @@ static int CmdAnalyseLfsr(const char *Cmd) { PrintAndLogEx(NORMAL, " bit# | lfsr | ^0x40 | 0x%02X ^ lfsr \n", find); for (uint8_t i = 0x01; i < 0x30; i += 1) { - //period = 0; legic_prng_init(iv); legic_prng_forward(i); lfsr = legic_prng_get_bits(12); - PrintAndLogEx(NORMAL, " %02X | %03X | %03X | %03X \n", i, lfsr, 0x40 ^ lfsr, find ^ lfsr); } return 0;