GNU Radio's GSM Package
fire_crc.h
Go to the documentation of this file.
1 /*
2  The Hacker's Choice - http://www.thc.org
3  Part of THC's GSM SCANNER PROJECT
4 */
5 
6 
7 
8 #ifndef INCLUDED_FIRE_CRC_H
9 #define INCLUDED_FIRE_CRC_H
10 
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14 
15 typedef struct
16 {
17  unsigned int crc_size;
18  unsigned int data_size;
19  unsigned int syn_start;
20  int syndrome_reg[40];
21 } FC_CTX;
22 
23 int FC_init(FC_CTX *ctx, unsigned int crc_size, unsigned int data_size);
24 int FC_check_crc(FC_CTX *ctx, unsigned char *input_bits, unsigned char *control_data);
25 
26 #ifdef __cplusplus
27 }
28 #endif
29 
30 #endif
Definition: fire_crc.h:15
int FC_init(FC_CTX *ctx, unsigned int crc_size, unsigned int data_size)
unsigned int crc_size
Definition: fire_crc.h:17
unsigned int data_size
Definition: fire_crc.h:18
unsigned int syn_start
Definition: fire_crc.h:19
int FC_check_crc(FC_CTX *ctx, unsigned char *input_bits, unsigned char *control_data)