mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-14 03:03:14 +08:00
chg: removed a useless clearing of key_count. From @matrix 090682764b
This commit is contained in:
parent
6804338201
commit
97f86b7a61
1 changed files with 0 additions and 2 deletions
|
@ -97,7 +97,6 @@ int nonce2key_ex(uint8_t blockno, uint8_t keytype, uint32_t uid, uint32_t nt, ui
|
|||
state = lfsr_common_prefix_ex(nr, ks3x);
|
||||
|
||||
if (!state) {
|
||||
key_count = 0;
|
||||
PrintAndLog("Failed getting states");
|
||||
return 1;
|
||||
}
|
||||
|
@ -117,7 +116,6 @@ int nonce2key_ex(uint8_t blockno, uint8_t keytype, uint32_t uid, uint32_t nt, ui
|
|||
|
||||
// first call to this function. clear all other stuff and set new found states.
|
||||
if (last_keylist == NULL) {
|
||||
key_count = 0;
|
||||
free(last_keylist);
|
||||
last_keylist = state_s;
|
||||
PrintAndLog("parity is all zero, testing special attack. First call, this attack needs at least two calls. Hold on...");
|
||||
|
|
Loading…
Reference in a new issue