6 * Description: Implementation of the A5/1 stream cipher algorithm, as used in GSM.
7 * ! Warning, this is weak crypto !
22 /* 3-Bit word parity lookup table (Byte)
35 #define PARITY_LOOKUP 0x96
38 /* we are wasting one byte here but this allows a much faster implementation */
39 uint8_t r1[3], r2[3], r3[3]; /* the three regs, 19,22,23 bit in length */
43 void a5_1_init(a5_1_ctx_t *c, void* key, uint8_t keylength_b, void* iv, uint8_t ivlength_b);
44 uint8_t a5_1_clock(a5_1_ctx_t *c);
45 uint8_t a5_1_gen(a5_1_ctx_t *c);