X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/ad5bc8cc8c0a6573d6b2c7bc58bf94f7ab66ad4c..da1f16d6ef6f9433b9a5a3475541ebbf45c1ba72:/common/legic_prng.c?ds=sidebyside diff --git a/common/legic_prng.c b/common/legic_prng.c index 16e55331..df711aa1 100644 --- a/common/legic_prng.c +++ b/common/legic_prng.c @@ -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;