fix: mfkey32, cut and paste error?

This commit is contained in:
iceman1001 2019-03-17 13:51:47 +01:00
parent 5583cfbc70
commit c9cb16d428

View file

@ -95,7 +95,7 @@ bool mfkey32(nonces_t data, uint64_t *outputkey) {
uint8_t counter = 0;
uint32_t p640 = prng_successor(data.nonce, 64);
uint32_t p641 = prng_successor(data.nonce2, 64);
s = lfsr_recovery32(data.ar ^ p640, 0);
for (t = s; t->odd | t->even; ++t) {
@ -105,7 +105,7 @@ bool mfkey32(nonces_t data, uint64_t *outputkey) {
crypto1_get_lfsr(t, &key);
crypto1_word(t, data.cuid ^ data.nonce, 0);
crypto1_word(t, data.nr2, 1);
if (data.ar2 == (crypto1_word(t, 0, 0) ^ p641)) {
if (data.ar2 == (crypto1_word(t, 0, 0) ^ p640)) {
outkey = key;
counter++;
if (counter == 20) break;