+ PrintAndLog("| %02x |%08x| %01x | %01x |%01x,%01x,%01x,%01x,%01x,%01x,%01x,%01x|",
+ i << 5, nr_diff, ks3x[i], ks3x[i]^5,
+ par[i][0], par[i][1], par[i][2], par[i][3],
+ par[i][4], par[i][5], par[i][6], par[i][7]);
+
+ }
+ PrintAndLog("+----+--------+---+-----+---------------+");
+
+ clock_t t1 = clock();
+
+ state = lfsr_common_prefix(nr, rr, ks3x, par);
+ lfsr_rollback_word(state, uid ^ nt, 0);
+ crypto1_get_lfsr(state, key);
+ crypto1_destroy(state);
+
+ t1 = clock() - t1;
+ if ( t1 > 0 ) PrintAndLog("Time in nonce2key: %.0f ticks", (float)t1);
+ return 0;
+}
+
+int compar_intA(const void * a, const void * b) {