]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/nonce2key/crapto1.c
FIX: "hf mf hardnested" when "key found" exting the do-while loop doesn't need to...
[proxmark3-svn] / client / nonce2key / crapto1.c
index 9f349e174082b6d45f1efda057dc6261ff943fad..9f6f7f6b0725f1d56fba255007d842ff3fae9b36 100644 (file)
@@ -1,4 +1,4 @@
-1/*  crapto1.c\r
+/*  crapto1.c\r
 \r
     This program is free software; you can redistribute it and/or\r
     modify it under the terms of the GNU General Public License\r
@@ -471,14 +471,14 @@ static struct Crypto1State* check_pfx_parity_ex(uint32_t prefix, uint32_t odd, u
        \r
        uint32_t c = 0;\r
 \r
-       sl.odd = odd ^ fastfwd[1][c];\r
-       sl.even = even ^ fastfwd[0][c];\r
+       sl->odd = odd ^ fastfwd[1][c];\r
+       sl->even = even ^ fastfwd[0][c];\r
        \r
-       lfsr_rollback_bit(&sl, 0, 0);\r
-       lfsr_rollback_bit(&sl, 0, 0);\r
-       lfsr_rollback_bit(&sl, 0, 0);\r
-       lfsr_rollback_word(&sl, 0, 0);\r
-       lfsr_rollback_word(&sl, prefix | c << 5, 1);\r
+       lfsr_rollback_bit(sl, 0, 0);\r
+       lfsr_rollback_bit(sl, 0, 0);\r
+       lfsr_rollback_bit(sl, 0, 0);\r
+       lfsr_rollback_word(sl, 0, 0);\r
+       lfsr_rollback_word(sl, prefix | c << 5, 1);\r
        \r
        return ++sl;\r
 }\r
Impressum, Datenschutz