X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/31cf80487727e43b6a7e75416a4a1c25d2c4dc8c..4ab54914e3e9e24f1d04694ea0d8926c576cf905:/client/nonce2key/crapto1.c diff --git a/client/nonce2key/crapto1.c b/client/nonce2key/crapto1.c index 9f349e17..6980909c 100644 --- a/client/nonce2key/crapto1.c +++ b/client/nonce2key/crapto1.c @@ -471,14 +471,14 @@ static struct Crypto1State* check_pfx_parity_ex(uint32_t prefix, uint32_t odd, u uint32_t c = 0; - sl.odd = odd ^ fastfwd[1][c]; - sl.even = even ^ fastfwd[0][c]; + sl->odd = odd ^ fastfwd[1][c]; + sl->even = even ^ fastfwd[0][c]; - lfsr_rollback_bit(&sl, 0, 0); - lfsr_rollback_bit(&sl, 0, 0); - lfsr_rollback_bit(&sl, 0, 0); - lfsr_rollback_word(&sl, 0, 0); - lfsr_rollback_word(&sl, prefix | c << 5, 1); + lfsr_rollback_bit(sl, 0, 0); + lfsr_rollback_bit(sl, 0, 0); + lfsr_rollback_bit(sl, 0, 0); + lfsr_rollback_word(sl, 0, 0); + lfsr_rollback_word(sl, prefix | c << 5, 1); return ++sl; }