X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/31cf80487727e43b6a7e75416a4a1c25d2c4dc8c..a47ded5b54e19b779bc4260466dcd093c2695d63:/client/nonce2key/crapto1.c diff --git a/client/nonce2key/crapto1.c b/client/nonce2key/crapto1.c index 9f349e17..9f6f7f6b 100644 --- a/client/nonce2key/crapto1.c +++ b/client/nonce2key/crapto1.c @@ -1,4 +1,4 @@ -1/* crapto1.c +/* crapto1.c This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License @@ -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; }