]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - common/legic_prng.c
FIX: lf hitag : Mea culpa, simulation should not have reader_field on. thanks to...
[proxmark3-svn] / common / legic_prng.c
index 16e55331cba8e6cac5db9099868ae0208c5e5e2a..df711aa10f2b5c58e74a2dae619e25958dff6a32 100644 (file)
@@ -7,9 +7,11 @@
 //-----------------------------------------------------------------------------
 
 #include "legic_prng.h"
-// a is 7bit
-// b is 
-// c is a counter
+// the prng is a muxed value from two lsfr a, b
+// a is 7bit lsfr
+// b is 8bit lsfr
+// c keeps track on which step the prng is.
+// legic_prng_get_bit() = gets a bit muxed from a and b. 
 struct lfsr {
        uint8_t  a;
        uint8_t  b;
Impressum, Datenschutz