summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSylvain Munaut <tnt@246tNt.com>2012-03-01 19:54:02 +0100
committerSylvain Munaut <tnt@246tNt.com>2012-03-02 23:39:19 +0100
commit2dafed51e5be1819b783d0e201ea7e3bce7a353f (patch)
treee34bb4702e3ca1bf91d8c91fe1f566f022985f60
parenta9efc12ccd6ee20752d21ce0deaff457ef9fe0b0 (diff)
gsm/a5: Rewrite equation doc with proper numbering
No idea where I copied the original from but here we use the other notation. (matches wikipedia and sources) Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
-rw-r--r--src/gsm/a5.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gsm/a5.c b/src/gsm/a5.c
index e330c75..34f271a 100644
--- a/src/gsm/a5.c
+++ b/src/gsm/a5.c
@@ -89,10 +89,10 @@ osmo_a5(int n, const uint8_t *key, uint32_t fn, ubit_t *dl, ubit_t *ul)
#define A5_R3_MASK ((1<<A5_R3_LEN)-1)
#define A5_R4_MASK ((1<<A5_R4_LEN)-1)
-#define A5_R1_TAPS 0x072000 /* x^19 + x^5 + x^2 + x + 1 */
-#define A5_R2_TAPS 0x300000 /* x^22 + x + 1 */
-#define A5_R3_TAPS 0x700080 /* x^23 + x^15 + x^2 + x + 1 */
-#define A5_R4_TAPS 0x010800 /* x^17 + x^5 + 1 */
+#define A5_R1_TAPS 0x072000 /* x^19 + x^18 + x^17 + x^14 + 1 */
+#define A5_R2_TAPS 0x300000 /* x^22 + x^21 + 1 */
+#define A5_R3_TAPS 0x700080 /* x^23 + x^22 + x^21 + x^8 + 1 */
+#define A5_R4_TAPS 0x010800 /* x^17 + x^12 + 1 */
/*! \brief Computes parity of a 32-bit word
* \param[in] x 32 bit word