blob: d02021e4ce13b2e9d6a781cfebb4a3e662fd80f2 [file] [log] [blame]
piotrfaacc722014-07-20 23:48:32 +02001/*
ptrkrysik8038b2e2014-12-15 23:10:48 +01002 The Hacker's Choice - http://www.thc.org
3 Part of THC's GSM SCANNER PROJECT
4*/
5
piotrfaacc722014-07-20 23:48:32 +02006
7
8#ifndef INCLUDED_FIRE_CRC_H
9#define INCLUDED_FIRE_CRC_H
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
15typedef 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
23int FC_init(FC_CTX *ctx, unsigned int crc_size, unsigned int data_size);
24int FC_check_crc(FC_CTX *ctx, unsigned char *input_bits, unsigned char *control_data);
25
26#ifdef __cplusplus
27}
28#endif
29
30#endif