fix test sequence

This commit is contained in:
iceman1001 2022-06-13 07:27:05 +02:00
commit f4011f3283

View file

@ -2510,12 +2510,12 @@ noValidKeyFound:
for (current_sector_i = 0; current_sector_i < sector_cnt; current_sector_i++) { for (current_sector_i = 0; current_sector_i < sector_cnt; current_sector_i++) {
for (current_key_type_i = 0; current_key_type_i < 2; current_key_type_i++) { for (current_key_type_i = 0; current_key_type_i < 2; current_key_type_i++) {
if (has_staticnonce == NONCE_STATIC)
goto tryStaticnested;
// If the key is already known, just skip it // If the key is already known, just skip it
if (e_sector[current_sector_i].foundKey[current_key_type_i] == 0) { if (e_sector[current_sector_i].foundKey[current_key_type_i] == 0) {
if (has_staticnonce == NONCE_STATIC)
goto tryStaticnested;
// Try the found keys are reused // Try the found keys are reused
if (bytes_to_num(tmp_key, 6) != 0) { if (bytes_to_num(tmp_key, 6) != 0) {
// <!> The fast check --> mfCheckKeys_fast(sector_cnt, true, true, 2, 1, tmp_key, e_sector, false); // <!> The fast check --> mfCheckKeys_fast(sector_cnt, true, true, 2, 1, tmp_key, e_sector, false);