mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
Merge pull request #2621 from Antiklesys/master
Fixed keygen bug in legrec
This commit is contained in:
commit
917427cb8c
1 changed files with 1 additions and 1 deletions
|
@ -2314,9 +2314,9 @@ void iClass_Recover(iclass_recover_req_t *msg) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (msg->test) {
|
|
||||||
//Step3 Calculate New Key (Optimised Algo V2)
|
//Step3 Calculate New Key (Optimised Algo V2)
|
||||||
generate_single_key_block_inverted_opt(zero_key, index, genkeyblock);
|
generate_single_key_block_inverted_opt(zero_key, index, genkeyblock);
|
||||||
|
if (msg->test) {
|
||||||
memcpy(genkeyblock, zero_key, PICOPASS_BLOCK_SIZE);
|
memcpy(genkeyblock, zero_key, PICOPASS_BLOCK_SIZE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue